google-apis-vision_v1p2beta1 0.3.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/vision_v1p2beta1.rb +1 -1
- data/lib/google/apis/vision_v1p2beta1/classes.rb +236 -237
- data/lib/google/apis/vision_v1p2beta1/gem_version.rb +3 -3
- metadata +14 -8
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 0474f785044dd49ac7b0b2a022e791c9d8e8c7d74125852bad69f352d981b6cf
         | 
| 4 | 
            +
              data.tar.gz: ec06bacc61bd24d724210247f722ff26968cd2b11d2bc2d79bbaa98471bb5693
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: b0097dde8856cd79f083207611edb86cbb763a4fec939ef4c6b34998e5200631d41f311d661bd3e0e7ef738d22ec5534723e94bfc6c16ce1bf5bfb725d863ddc
         | 
| 7 | 
            +
              data.tar.gz: 25986992575badb0c42d6b3da5a4ae82602fce7068211bf20069b2de240cb041bb0acea03f7d5092e257d44585f767ac3377c11d046c6e2b84a15859f85c053c
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,5 +1,26 @@ | |
| 1 1 | 
             
            # Release history for google-apis-vision_v1p2beta1
         | 
| 2 2 |  | 
| 3 | 
            +
            ### v0.8.0 (2021-06-29)
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            * Regenerated using generator version 0.4.0
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            ### v0.7.0 (2021-06-24)
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            * Regenerated using generator version 0.3.0
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            ### v0.6.0 (2021-05-20)
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            * Unspecified changes
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            ### v0.5.0 (2021-04-27)
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            * Regenerated from discovery document revision 20210423
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            ### v0.4.0 (2021-03-18)
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            * Regenerated from discovery document revision 20210317
         | 
| 22 | 
            +
            * Regenerated using generator version 0.2.0
         | 
| 23 | 
            +
             | 
| 3 24 | 
             
            ### v0.3.0 (2021-03-04)
         | 
| 4 25 |  | 
| 5 26 | 
             
            * Unspecified changes
         | 
| @@ -31,7 +31,7 @@ module Google | |
| 31 31 | 
             
                  # This is NOT the gem version.
         | 
| 32 32 | 
             
                  VERSION = 'V1p2beta1'
         | 
| 33 33 |  | 
| 34 | 
            -
                  #  | 
| 34 | 
            +
                  # See, edit, configure, and delete your Google Cloud Platform data
         | 
| 35 35 | 
             
                  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
         | 
| 36 36 |  | 
| 37 37 | 
             
                  # Apply machine learning models to understand and label images
         | 
| @@ -358,61 +358,60 @@ module Google | |
| 358 358 |  | 
| 359 359 | 
             
                  # Represents a color in the RGBA color space. This representation is designed
         | 
| 360 360 | 
             
                  # for simplicity of conversion to/from color representations in various
         | 
| 361 | 
            -
                  # languages over compactness | 
| 362 | 
            -
                  # be trivially provided to the constructor of  | 
| 363 | 
            -
                  # also be trivially provided to UIColor's  | 
| 361 | 
            +
                  # languages over compactness. For example, the fields of this representation can
         | 
| 362 | 
            +
                  # be trivially provided to the constructor of `java.awt.Color` in Java; it can
         | 
| 363 | 
            +
                  # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
         | 
| 364 364 | 
             
                  # method in iOS; and, with just a little work, it can be easily formatted into a
         | 
| 365 | 
            -
                  # CSS  | 
| 365 | 
            +
                  # CSS `rgba()` string in JavaScript. This reference page doesn't carry
         | 
| 366 366 | 
             
                  # information about the absolute color space that should be used to interpret
         | 
| 367 367 | 
             
                  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
         | 
| 368 | 
            -
                  # applications  | 
| 369 | 
            -
                  #  | 
| 370 | 
            -
                  #  | 
| 371 | 
            -
                  #  | 
| 372 | 
            -
                  #  | 
| 373 | 
            -
                  # protocolor. | 
| 374 | 
            -
                  #  | 
| 375 | 
            -
                  #  | 
| 376 | 
            -
                  # float | 
| 377 | 
            -
                  # float | 
| 378 | 
            -
                  #  | 
| 379 | 
            -
                  #  | 
| 380 | 
            -
                  #  | 
| 381 | 
            -
                  #  | 
| 382 | 
            -
                  #  | 
| 383 | 
            -
                  #  | 
| 384 | 
            -
                  #  | 
| 385 | 
            -
                  #  | 
| 386 | 
            -
                  #  | 
| 387 | 
            -
                  #  | 
| 388 | 
            -
                  #  | 
| 389 | 
            -
                  #  | 
| 390 | 
            -
                  #  | 
| 391 | 
            -
                  #  | 
| 392 | 
            -
                  #  | 
| 368 | 
            +
                  # applications should assume the sRGB color space. When color equality needs to
         | 
| 369 | 
            +
                  # be decided, implementations, unless documented otherwise, treat two colors as
         | 
| 370 | 
            +
                  # equal if all their red, green, blue, and alpha values each differ by at most
         | 
| 371 | 
            +
                  # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
         | 
| 372 | 
            +
                  # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
         | 
| 373 | 
            +
                  # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
         | 
| 374 | 
            +
                  # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
         | 
| 375 | 
            +
                  # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
         | 
| 376 | 
            +
                  # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
         | 
| 377 | 
            +
                  # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
         | 
| 378 | 
            +
                  # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
         | 
| 379 | 
            +
                  # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
         | 
| 380 | 
            +
                  # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
         | 
| 381 | 
            +
                  # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
         | 
| 382 | 
            +
                  # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
         | 
| 383 | 
            +
                  # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
         | 
| 384 | 
            +
                  # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
         | 
| 385 | 
            +
                  # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
         | 
| 386 | 
            +
                  # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
         | 
| 387 | 
            +
                  # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
         | 
| 388 | 
            +
                  # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
         | 
| 389 | 
            +
                  # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
         | 
| 390 | 
            +
                  # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
         | 
| 391 | 
            +
                  # autorelease]; return result; ` // ... Example (JavaScript): // ... var
         | 
| 392 | 
            +
                  # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
         | 
| 393 393 | 
             
                  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
         | 
| 394 394 | 
             
                  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
         | 
| 395 395 | 
             
                  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
         | 
| 396 | 
            -
                  #  | 
| 396 | 
            +
                  # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
         | 
| 397 397 | 
             
                  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
         | 
| 398 | 
            -
                  # ', alphaFrac, ')'].join(''); `; var  | 
| 399 | 
            -
                  # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
         | 
| 400 | 
            -
                  #  | 
| 401 | 
            -
                  #  | 
| 402 | 
            -
                  #  | 
| 403 | 
            -
                  #  | 
| 398 | 
            +
                  # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
         | 
| 399 | 
            +
                  # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
         | 
| 400 | 
            +
                  # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
         | 
| 401 | 
            +
                  # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
         | 
| 402 | 
            +
                  # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
         | 
| 403 | 
            +
                  # / ...
         | 
| 404 404 | 
             
                  class Color
         | 
| 405 405 | 
             
                    include Google::Apis::Core::Hashable
         | 
| 406 406 |  | 
| 407 407 | 
             
                    # The fraction of this color that should be applied to the pixel. That is, the
         | 
| 408 | 
            -
                    # final pixel color is defined by the equation: pixel color = alpha * (this
         | 
| 409 | 
            -
                    # color) + (1.0 - alpha) * (background color) This means that a value of 1.0
         | 
| 408 | 
            +
                    # final pixel color is defined by the equation: `pixel color = alpha * (this
         | 
| 409 | 
            +
                    # color) + (1.0 - alpha) * (background color)` This means that a value of 1.0
         | 
| 410 410 | 
             
                    # corresponds to a solid color, whereas a value of 0.0 corresponds to a
         | 
| 411 411 | 
             
                    # completely transparent color. This uses a wrapper message rather than a simple
         | 
| 412 412 | 
             
                    # float scalar so that it is possible to distinguish between a default value and
         | 
| 413 | 
            -
                    # the value being unset. If omitted, this color object is  | 
| 414 | 
            -
                    #  | 
| 415 | 
            -
                    # 0).
         | 
| 413 | 
            +
                    # the value being unset. If omitted, this color object is rendered as a solid
         | 
| 414 | 
            +
                    # color (as if the alpha value had been explicitly given a value of 1.0).
         | 
| 416 415 | 
             
                    # Corresponds to the JSON property `alpha`
         | 
| 417 416 | 
             
                    # @return [Float]
         | 
| 418 417 | 
             
                    attr_accessor :alpha
         | 
| @@ -452,49 +451,49 @@ module Google | |
| 452 451 |  | 
| 453 452 | 
             
                    # Represents a color in the RGBA color space. This representation is designed
         | 
| 454 453 | 
             
                    # for simplicity of conversion to/from color representations in various
         | 
| 455 | 
            -
                    # languages over compactness | 
| 456 | 
            -
                    # be trivially provided to the constructor of  | 
| 457 | 
            -
                    # also be trivially provided to UIColor's  | 
| 454 | 
            +
                    # languages over compactness. For example, the fields of this representation can
         | 
| 455 | 
            +
                    # be trivially provided to the constructor of `java.awt.Color` in Java; it can
         | 
| 456 | 
            +
                    # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
         | 
| 458 457 | 
             
                    # method in iOS; and, with just a little work, it can be easily formatted into a
         | 
| 459 | 
            -
                    # CSS  | 
| 458 | 
            +
                    # CSS `rgba()` string in JavaScript. This reference page doesn't carry
         | 
| 460 459 | 
             
                    # information about the absolute color space that should be used to interpret
         | 
| 461 460 | 
             
                    # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
         | 
| 462 | 
            -
                    # applications  | 
| 463 | 
            -
                    #  | 
| 464 | 
            -
                    #  | 
| 465 | 
            -
                    #  | 
| 466 | 
            -
                    #  | 
| 467 | 
            -
                    # protocolor. | 
| 468 | 
            -
                    #  | 
| 469 | 
            -
                    #  | 
| 470 | 
            -
                    # float | 
| 471 | 
            -
                    # float | 
| 472 | 
            -
                    #  | 
| 473 | 
            -
                    #  | 
| 474 | 
            -
                    #  | 
| 475 | 
            -
                    #  | 
| 476 | 
            -
                    #  | 
| 477 | 
            -
                    #  | 
| 478 | 
            -
                    #  | 
| 479 | 
            -
                    #  | 
| 480 | 
            -
                    #  | 
| 481 | 
            -
                    #  | 
| 482 | 
            -
                    #  | 
| 483 | 
            -
                    #  | 
| 484 | 
            -
                    #  | 
| 485 | 
            -
                    #  | 
| 486 | 
            -
                    #  | 
| 461 | 
            +
                    # applications should assume the sRGB color space. When color equality needs to
         | 
| 462 | 
            +
                    # be decided, implementations, unless documented otherwise, treat two colors as
         | 
| 463 | 
            +
                    # equal if all their red, green, blue, and alpha values each differ by at most
         | 
| 464 | 
            +
                    # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
         | 
| 465 | 
            +
                    # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
         | 
| 466 | 
            +
                    # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
         | 
| 467 | 
            +
                    # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
         | 
| 468 | 
            +
                    # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
         | 
| 469 | 
            +
                    # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
         | 
| 470 | 
            +
                    # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
         | 
| 471 | 
            +
                    # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
         | 
| 472 | 
            +
                    # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
         | 
| 473 | 
            +
                    # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
         | 
| 474 | 
            +
                    # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
         | 
| 475 | 
            +
                    # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
         | 
| 476 | 
            +
                    # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
         | 
| 477 | 
            +
                    # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
         | 
| 478 | 
            +
                    # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
         | 
| 479 | 
            +
                    # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
         | 
| 480 | 
            +
                    # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
         | 
| 481 | 
            +
                    # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
         | 
| 482 | 
            +
                    # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
         | 
| 483 | 
            +
                    # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
         | 
| 484 | 
            +
                    # autorelease]; return result; ` // ... Example (JavaScript): // ... var
         | 
| 485 | 
            +
                    # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
         | 
| 487 486 | 
             
                    # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
         | 
| 488 487 | 
             
                    # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
         | 
| 489 488 | 
             
                    # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
         | 
| 490 | 
            -
                    #  | 
| 489 | 
            +
                    # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
         | 
| 491 490 | 
             
                    # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
         | 
| 492 | 
            -
                    # ', alphaFrac, ')'].join(''); `; var  | 
| 493 | 
            -
                    # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
         | 
| 494 | 
            -
                    #  | 
| 495 | 
            -
                    #  | 
| 496 | 
            -
                    #  | 
| 497 | 
            -
                    #  | 
| 491 | 
            +
                    # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
         | 
| 492 | 
            +
                    # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
         | 
| 493 | 
            +
                    # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
         | 
| 494 | 
            +
                    # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
         | 
| 495 | 
            +
                    # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
         | 
| 496 | 
            +
                    # / ...
         | 
| 498 497 | 
             
                    # Corresponds to the JSON property `color`
         | 
| 499 498 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::Color]
         | 
| 500 499 | 
             
                    attr_accessor :color
         | 
| @@ -1152,49 +1151,49 @@ module Google | |
| 1152 1151 |  | 
| 1153 1152 | 
             
                    # Represents a color in the RGBA color space. This representation is designed
         | 
| 1154 1153 | 
             
                    # for simplicity of conversion to/from color representations in various
         | 
| 1155 | 
            -
                    # languages over compactness | 
| 1156 | 
            -
                    # be trivially provided to the constructor of  | 
| 1157 | 
            -
                    # also be trivially provided to UIColor's  | 
| 1154 | 
            +
                    # languages over compactness. For example, the fields of this representation can
         | 
| 1155 | 
            +
                    # be trivially provided to the constructor of `java.awt.Color` in Java; it can
         | 
| 1156 | 
            +
                    # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
         | 
| 1158 1157 | 
             
                    # method in iOS; and, with just a little work, it can be easily formatted into a
         | 
| 1159 | 
            -
                    # CSS  | 
| 1158 | 
            +
                    # CSS `rgba()` string in JavaScript. This reference page doesn't carry
         | 
| 1160 1159 | 
             
                    # information about the absolute color space that should be used to interpret
         | 
| 1161 1160 | 
             
                    # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
         | 
| 1162 | 
            -
                    # applications  | 
| 1163 | 
            -
                    #  | 
| 1164 | 
            -
                    #  | 
| 1165 | 
            -
                    #  | 
| 1166 | 
            -
                    #  | 
| 1167 | 
            -
                    # protocolor. | 
| 1168 | 
            -
                    #  | 
| 1169 | 
            -
                    #  | 
| 1170 | 
            -
                    # float | 
| 1171 | 
            -
                    # float | 
| 1172 | 
            -
                    #  | 
| 1173 | 
            -
                    #  | 
| 1174 | 
            -
                    #  | 
| 1175 | 
            -
                    #  | 
| 1176 | 
            -
                    #  | 
| 1177 | 
            -
                    #  | 
| 1178 | 
            -
                    #  | 
| 1179 | 
            -
                    #  | 
| 1180 | 
            -
                    #  | 
| 1181 | 
            -
                    #  | 
| 1182 | 
            -
                    #  | 
| 1183 | 
            -
                    #  | 
| 1184 | 
            -
                    #  | 
| 1185 | 
            -
                    #  | 
| 1186 | 
            -
                    #  | 
| 1161 | 
            +
                    # applications should assume the sRGB color space. When color equality needs to
         | 
| 1162 | 
            +
                    # be decided, implementations, unless documented otherwise, treat two colors as
         | 
| 1163 | 
            +
                    # equal if all their red, green, blue, and alpha values each differ by at most
         | 
| 1164 | 
            +
                    # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
         | 
| 1165 | 
            +
                    # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
         | 
| 1166 | 
            +
                    # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
         | 
| 1167 | 
            +
                    # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
         | 
| 1168 | 
            +
                    # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
         | 
| 1169 | 
            +
                    # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
         | 
| 1170 | 
            +
                    # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
         | 
| 1171 | 
            +
                    # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
         | 
| 1172 | 
            +
                    # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
         | 
| 1173 | 
            +
                    # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
         | 
| 1174 | 
            +
                    # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
         | 
| 1175 | 
            +
                    # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
         | 
| 1176 | 
            +
                    # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
         | 
| 1177 | 
            +
                    # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
         | 
| 1178 | 
            +
                    # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
         | 
| 1179 | 
            +
                    # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
         | 
| 1180 | 
            +
                    # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
         | 
| 1181 | 
            +
                    # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
         | 
| 1182 | 
            +
                    # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
         | 
| 1183 | 
            +
                    # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
         | 
| 1184 | 
            +
                    # autorelease]; return result; ` // ... Example (JavaScript): // ... var
         | 
| 1185 | 
            +
                    # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
         | 
| 1187 1186 | 
             
                    # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
         | 
| 1188 1187 | 
             
                    # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
         | 
| 1189 1188 | 
             
                    # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
         | 
| 1190 | 
            -
                    #  | 
| 1189 | 
            +
                    # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
         | 
| 1191 1190 | 
             
                    # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
         | 
| 1192 | 
            -
                    # ', alphaFrac, ')'].join(''); `; var  | 
| 1193 | 
            -
                    # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
         | 
| 1194 | 
            -
                    #  | 
| 1195 | 
            -
                    #  | 
| 1196 | 
            -
                    #  | 
| 1197 | 
            -
                    #  | 
| 1191 | 
            +
                    # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
         | 
| 1192 | 
            +
                    # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
         | 
| 1193 | 
            +
                    # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
         | 
| 1194 | 
            +
                    # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
         | 
| 1195 | 
            +
                    # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
         | 
| 1196 | 
            +
                    # / ...
         | 
| 1198 1197 | 
             
                    # Corresponds to the JSON property `color`
         | 
| 1199 1198 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::Color]
         | 
| 1200 1199 | 
             
                    attr_accessor :color
         | 
| @@ -1692,8 +1691,8 @@ module Google | |
| 1692 1691 |  | 
| 1693 1692 | 
             
                    # An object that represents a latitude/longitude pair. This is expressed as a
         | 
| 1694 1693 | 
             
                    # pair of doubles to represent degrees latitude and degrees longitude. Unless
         | 
| 1695 | 
            -
                    # specified otherwise, this must conform to the WGS84 standard. Values | 
| 1696 | 
            -
                    # within normalized ranges.
         | 
| 1694 | 
            +
                    # specified otherwise, this object must conform to the WGS84 standard. Values
         | 
| 1695 | 
            +
                    # must be within normalized ranges.
         | 
| 1697 1696 | 
             
                    # Corresponds to the JSON property `latLng`
         | 
| 1698 1697 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::LatLng]
         | 
| 1699 1698 | 
             
                    attr_accessor :lat_lng
         | 
| @@ -3146,49 +3145,49 @@ module Google | |
| 3146 3145 |  | 
| 3147 3146 | 
             
                    # Represents a color in the RGBA color space. This representation is designed
         | 
| 3148 3147 | 
             
                    # for simplicity of conversion to/from color representations in various
         | 
| 3149 | 
            -
                    # languages over compactness | 
| 3150 | 
            -
                    # be trivially provided to the constructor of  | 
| 3151 | 
            -
                    # also be trivially provided to UIColor's  | 
| 3148 | 
            +
                    # languages over compactness. For example, the fields of this representation can
         | 
| 3149 | 
            +
                    # be trivially provided to the constructor of `java.awt.Color` in Java; it can
         | 
| 3150 | 
            +
                    # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
         | 
| 3152 3151 | 
             
                    # method in iOS; and, with just a little work, it can be easily formatted into a
         | 
| 3153 | 
            -
                    # CSS  | 
| 3152 | 
            +
                    # CSS `rgba()` string in JavaScript. This reference page doesn't carry
         | 
| 3154 3153 | 
             
                    # information about the absolute color space that should be used to interpret
         | 
| 3155 3154 | 
             
                    # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
         | 
| 3156 | 
            -
                    # applications  | 
| 3157 | 
            -
                    #  | 
| 3158 | 
            -
                    #  | 
| 3159 | 
            -
                    #  | 
| 3160 | 
            -
                    #  | 
| 3161 | 
            -
                    # protocolor. | 
| 3162 | 
            -
                    #  | 
| 3163 | 
            -
                    #  | 
| 3164 | 
            -
                    # float | 
| 3165 | 
            -
                    # float | 
| 3166 | 
            -
                    #  | 
| 3167 | 
            -
                    #  | 
| 3168 | 
            -
                    #  | 
| 3169 | 
            -
                    #  | 
| 3170 | 
            -
                    #  | 
| 3171 | 
            -
                    #  | 
| 3172 | 
            -
                    #  | 
| 3173 | 
            -
                    #  | 
| 3174 | 
            -
                    #  | 
| 3175 | 
            -
                    #  | 
| 3176 | 
            -
                    #  | 
| 3177 | 
            -
                    #  | 
| 3178 | 
            -
                    #  | 
| 3179 | 
            -
                    #  | 
| 3180 | 
            -
                    #  | 
| 3155 | 
            +
                    # applications should assume the sRGB color space. When color equality needs to
         | 
| 3156 | 
            +
                    # be decided, implementations, unless documented otherwise, treat two colors as
         | 
| 3157 | 
            +
                    # equal if all their red, green, blue, and alpha values each differ by at most
         | 
| 3158 | 
            +
                    # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
         | 
| 3159 | 
            +
                    # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
         | 
| 3160 | 
            +
                    # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
         | 
| 3161 | 
            +
                    # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
         | 
| 3162 | 
            +
                    # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
         | 
| 3163 | 
            +
                    # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
         | 
| 3164 | 
            +
                    # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
         | 
| 3165 | 
            +
                    # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
         | 
| 3166 | 
            +
                    # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
         | 
| 3167 | 
            +
                    # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
         | 
| 3168 | 
            +
                    # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
         | 
| 3169 | 
            +
                    # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
         | 
| 3170 | 
            +
                    # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
         | 
| 3171 | 
            +
                    # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
         | 
| 3172 | 
            +
                    # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
         | 
| 3173 | 
            +
                    # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
         | 
| 3174 | 
            +
                    # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
         | 
| 3175 | 
            +
                    # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
         | 
| 3176 | 
            +
                    # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
         | 
| 3177 | 
            +
                    # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
         | 
| 3178 | 
            +
                    # autorelease]; return result; ` // ... Example (JavaScript): // ... var
         | 
| 3179 | 
            +
                    # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
         | 
| 3181 3180 | 
             
                    # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
         | 
| 3182 3181 | 
             
                    # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
         | 
| 3183 3182 | 
             
                    # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
         | 
| 3184 | 
            -
                    #  | 
| 3183 | 
            +
                    # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
         | 
| 3185 3184 | 
             
                    # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
         | 
| 3186 | 
            -
                    # ', alphaFrac, ')'].join(''); `; var  | 
| 3187 | 
            -
                    # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
         | 
| 3188 | 
            -
                    #  | 
| 3189 | 
            -
                    #  | 
| 3190 | 
            -
                    #  | 
| 3191 | 
            -
                    #  | 
| 3185 | 
            +
                    # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
         | 
| 3186 | 
            +
                    # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
         | 
| 3187 | 
            +
                    # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
         | 
| 3188 | 
            +
                    # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
         | 
| 3189 | 
            +
                    # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
         | 
| 3190 | 
            +
                    # / ...
         | 
| 3192 3191 | 
             
                    # Corresponds to the JSON property `color`
         | 
| 3193 3192 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::Color]
         | 
| 3194 3193 | 
             
                    attr_accessor :color
         | 
| @@ -3824,16 +3823,16 @@ module Google | |
| 3824 3823 |  | 
| 3825 3824 | 
             
                    # An object that represents a latitude/longitude pair. This is expressed as a
         | 
| 3826 3825 | 
             
                    # pair of doubles to represent degrees latitude and degrees longitude. Unless
         | 
| 3827 | 
            -
                    # specified otherwise, this must conform to the WGS84 standard. Values | 
| 3828 | 
            -
                    # within normalized ranges.
         | 
| 3826 | 
            +
                    # specified otherwise, this object must conform to the WGS84 standard. Values
         | 
| 3827 | 
            +
                    # must be within normalized ranges.
         | 
| 3829 3828 | 
             
                    # Corresponds to the JSON property `maxLatLng`
         | 
| 3830 3829 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::LatLng]
         | 
| 3831 3830 | 
             
                    attr_accessor :max_lat_lng
         | 
| 3832 3831 |  | 
| 3833 3832 | 
             
                    # An object that represents a latitude/longitude pair. This is expressed as a
         | 
| 3834 3833 | 
             
                    # pair of doubles to represent degrees latitude and degrees longitude. Unless
         | 
| 3835 | 
            -
                    # specified otherwise, this must conform to the WGS84 standard. Values | 
| 3836 | 
            -
                    # within normalized ranges.
         | 
| 3834 | 
            +
                    # specified otherwise, this object must conform to the WGS84 standard. Values
         | 
| 3835 | 
            +
                    # must be within normalized ranges.
         | 
| 3837 3836 | 
             
                    # Corresponds to the JSON property `minLatLng`
         | 
| 3838 3837 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::LatLng]
         | 
| 3839 3838 | 
             
                    attr_accessor :min_lat_lng
         | 
| @@ -3899,8 +3898,8 @@ module Google | |
| 3899 3898 |  | 
| 3900 3899 | 
             
                    # An object that represents a latitude/longitude pair. This is expressed as a
         | 
| 3901 3900 | 
             
                    # pair of doubles to represent degrees latitude and degrees longitude. Unless
         | 
| 3902 | 
            -
                    # specified otherwise, this must conform to the WGS84 standard. Values | 
| 3903 | 
            -
                    # within normalized ranges.
         | 
| 3901 | 
            +
                    # specified otherwise, this object must conform to the WGS84 standard. Values
         | 
| 3902 | 
            +
                    # must be within normalized ranges.
         | 
| 3904 3903 | 
             
                    # Corresponds to the JSON property `latLng`
         | 
| 3905 3904 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::LatLng]
         | 
| 3906 3905 | 
             
                    attr_accessor :lat_lng
         | 
| @@ -5206,49 +5205,49 @@ module Google | |
| 5206 5205 |  | 
| 5207 5206 | 
             
                    # Represents a color in the RGBA color space. This representation is designed
         | 
| 5208 5207 | 
             
                    # for simplicity of conversion to/from color representations in various
         | 
| 5209 | 
            -
                    # languages over compactness | 
| 5210 | 
            -
                    # be trivially provided to the constructor of  | 
| 5211 | 
            -
                    # also be trivially provided to UIColor's  | 
| 5208 | 
            +
                    # languages over compactness. For example, the fields of this representation can
         | 
| 5209 | 
            +
                    # be trivially provided to the constructor of `java.awt.Color` in Java; it can
         | 
| 5210 | 
            +
                    # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
         | 
| 5212 5211 | 
             
                    # method in iOS; and, with just a little work, it can be easily formatted into a
         | 
| 5213 | 
            -
                    # CSS  | 
| 5212 | 
            +
                    # CSS `rgba()` string in JavaScript. This reference page doesn't carry
         | 
| 5214 5213 | 
             
                    # information about the absolute color space that should be used to interpret
         | 
| 5215 5214 | 
             
                    # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
         | 
| 5216 | 
            -
                    # applications  | 
| 5217 | 
            -
                    #  | 
| 5218 | 
            -
                    #  | 
| 5219 | 
            -
                    #  | 
| 5220 | 
            -
                    #  | 
| 5221 | 
            -
                    # protocolor. | 
| 5222 | 
            -
                    #  | 
| 5223 | 
            -
                    #  | 
| 5224 | 
            -
                    # float | 
| 5225 | 
            -
                    # float | 
| 5226 | 
            -
                    #  | 
| 5227 | 
            -
                    #  | 
| 5228 | 
            -
                    #  | 
| 5229 | 
            -
                    #  | 
| 5230 | 
            -
                    #  | 
| 5231 | 
            -
                    #  | 
| 5232 | 
            -
                    #  | 
| 5233 | 
            -
                    #  | 
| 5234 | 
            -
                    #  | 
| 5235 | 
            -
                    #  | 
| 5236 | 
            -
                    #  | 
| 5237 | 
            -
                    #  | 
| 5238 | 
            -
                    #  | 
| 5239 | 
            -
                    #  | 
| 5240 | 
            -
                    #  | 
| 5215 | 
            +
                    # applications should assume the sRGB color space. When color equality needs to
         | 
| 5216 | 
            +
                    # be decided, implementations, unless documented otherwise, treat two colors as
         | 
| 5217 | 
            +
                    # equal if all their red, green, blue, and alpha values each differ by at most
         | 
| 5218 | 
            +
                    # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
         | 
| 5219 | 
            +
                    # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
         | 
| 5220 | 
            +
                    # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
         | 
| 5221 | 
            +
                    # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
         | 
| 5222 | 
            +
                    # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
         | 
| 5223 | 
            +
                    # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
         | 
| 5224 | 
            +
                    # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
         | 
| 5225 | 
            +
                    # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
         | 
| 5226 | 
            +
                    # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
         | 
| 5227 | 
            +
                    # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
         | 
| 5228 | 
            +
                    # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
         | 
| 5229 | 
            +
                    # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
         | 
| 5230 | 
            +
                    # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
         | 
| 5231 | 
            +
                    # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
         | 
| 5232 | 
            +
                    # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
         | 
| 5233 | 
            +
                    # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
         | 
| 5234 | 
            +
                    # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
         | 
| 5235 | 
            +
                    # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
         | 
| 5236 | 
            +
                    # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
         | 
| 5237 | 
            +
                    # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
         | 
| 5238 | 
            +
                    # autorelease]; return result; ` // ... Example (JavaScript): // ... var
         | 
| 5239 | 
            +
                    # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
         | 
| 5241 5240 | 
             
                    # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
         | 
| 5242 5241 | 
             
                    # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
         | 
| 5243 5242 | 
             
                    # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
         | 
| 5244 | 
            -
                    #  | 
| 5243 | 
            +
                    # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
         | 
| 5245 5244 | 
             
                    # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
         | 
| 5246 | 
            -
                    # ', alphaFrac, ')'].join(''); `; var  | 
| 5247 | 
            -
                    # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
         | 
| 5248 | 
            -
                    #  | 
| 5249 | 
            -
                    #  | 
| 5250 | 
            -
                    #  | 
| 5251 | 
            -
                    #  | 
| 5245 | 
            +
                    # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
         | 
| 5246 | 
            +
                    # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
         | 
| 5247 | 
            +
                    # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
         | 
| 5248 | 
            +
                    # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
         | 
| 5249 | 
            +
                    # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
         | 
| 5250 | 
            +
                    # / ...
         | 
| 5252 5251 | 
             
                    # Corresponds to the JSON property `color`
         | 
| 5253 5252 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::Color]
         | 
| 5254 5253 | 
             
                    attr_accessor :color
         | 
| @@ -5776,8 +5775,8 @@ module Google | |
| 5776 5775 |  | 
| 5777 5776 | 
             
                    # An object that represents a latitude/longitude pair. This is expressed as a
         | 
| 5778 5777 | 
             
                    # pair of doubles to represent degrees latitude and degrees longitude. Unless
         | 
| 5779 | 
            -
                    # specified otherwise, this must conform to the WGS84 standard. Values | 
| 5780 | 
            -
                    # within normalized ranges.
         | 
| 5778 | 
            +
                    # specified otherwise, this object must conform to the WGS84 standard. Values
         | 
| 5779 | 
            +
                    # must be within normalized ranges.
         | 
| 5781 5780 | 
             
                    # Corresponds to the JSON property `latLng`
         | 
| 5782 5781 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::LatLng]
         | 
| 5783 5782 | 
             
                    attr_accessor :lat_lng
         | 
| @@ -7100,49 +7099,49 @@ module Google | |
| 7100 7099 |  | 
| 7101 7100 | 
             
                    # Represents a color in the RGBA color space. This representation is designed
         | 
| 7102 7101 | 
             
                    # for simplicity of conversion to/from color representations in various
         | 
| 7103 | 
            -
                    # languages over compactness | 
| 7104 | 
            -
                    # be trivially provided to the constructor of  | 
| 7105 | 
            -
                    # also be trivially provided to UIColor's  | 
| 7102 | 
            +
                    # languages over compactness. For example, the fields of this representation can
         | 
| 7103 | 
            +
                    # be trivially provided to the constructor of `java.awt.Color` in Java; it can
         | 
| 7104 | 
            +
                    # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
         | 
| 7106 7105 | 
             
                    # method in iOS; and, with just a little work, it can be easily formatted into a
         | 
| 7107 | 
            -
                    # CSS  | 
| 7106 | 
            +
                    # CSS `rgba()` string in JavaScript. This reference page doesn't carry
         | 
| 7108 7107 | 
             
                    # information about the absolute color space that should be used to interpret
         | 
| 7109 7108 | 
             
                    # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
         | 
| 7110 | 
            -
                    # applications  | 
| 7111 | 
            -
                    #  | 
| 7112 | 
            -
                    #  | 
| 7113 | 
            -
                    #  | 
| 7114 | 
            -
                    #  | 
| 7115 | 
            -
                    # protocolor. | 
| 7116 | 
            -
                    #  | 
| 7117 | 
            -
                    #  | 
| 7118 | 
            -
                    # float | 
| 7119 | 
            -
                    # float | 
| 7120 | 
            -
                    #  | 
| 7121 | 
            -
                    #  | 
| 7122 | 
            -
                    #  | 
| 7123 | 
            -
                    #  | 
| 7124 | 
            -
                    #  | 
| 7125 | 
            -
                    #  | 
| 7126 | 
            -
                    #  | 
| 7127 | 
            -
                    #  | 
| 7128 | 
            -
                    #  | 
| 7129 | 
            -
                    #  | 
| 7130 | 
            -
                    #  | 
| 7131 | 
            -
                    #  | 
| 7132 | 
            -
                    #  | 
| 7133 | 
            -
                    #  | 
| 7134 | 
            -
                    #  | 
| 7109 | 
            +
                    # applications should assume the sRGB color space. When color equality needs to
         | 
| 7110 | 
            +
                    # be decided, implementations, unless documented otherwise, treat two colors as
         | 
| 7111 | 
            +
                    # equal if all their red, green, blue, and alpha values each differ by at most
         | 
| 7112 | 
            +
                    # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
         | 
| 7113 | 
            +
                    # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
         | 
| 7114 | 
            +
                    # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
         | 
| 7115 | 
            +
                    # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
         | 
| 7116 | 
            +
                    # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
         | 
| 7117 | 
            +
                    # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
         | 
| 7118 | 
            +
                    # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
         | 
| 7119 | 
            +
                    # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
         | 
| 7120 | 
            +
                    # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
         | 
| 7121 | 
            +
                    # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
         | 
| 7122 | 
            +
                    # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
         | 
| 7123 | 
            +
                    # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
         | 
| 7124 | 
            +
                    # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
         | 
| 7125 | 
            +
                    # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
         | 
| 7126 | 
            +
                    # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
         | 
| 7127 | 
            +
                    # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
         | 
| 7128 | 
            +
                    # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
         | 
| 7129 | 
            +
                    # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
         | 
| 7130 | 
            +
                    # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
         | 
| 7131 | 
            +
                    # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
         | 
| 7132 | 
            +
                    # autorelease]; return result; ` // ... Example (JavaScript): // ... var
         | 
| 7133 | 
            +
                    # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
         | 
| 7135 7134 | 
             
                    # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
         | 
| 7136 7135 | 
             
                    # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
         | 
| 7137 7136 | 
             
                    # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
         | 
| 7138 | 
            -
                    #  | 
| 7137 | 
            +
                    # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
         | 
| 7139 7138 | 
             
                    # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
         | 
| 7140 | 
            -
                    # ', alphaFrac, ')'].join(''); `; var  | 
| 7141 | 
            -
                    # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
         | 
| 7142 | 
            -
                    #  | 
| 7143 | 
            -
                    #  | 
| 7144 | 
            -
                    #  | 
| 7145 | 
            -
                    #  | 
| 7139 | 
            +
                    # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
         | 
| 7140 | 
            +
                    # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
         | 
| 7141 | 
            +
                    # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
         | 
| 7142 | 
            +
                    # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
         | 
| 7143 | 
            +
                    # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
         | 
| 7144 | 
            +
                    # / ...
         | 
| 7146 7145 | 
             
                    # Corresponds to the JSON property `color`
         | 
| 7147 7146 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::Color]
         | 
| 7148 7147 | 
             
                    attr_accessor :color
         | 
| @@ -7704,8 +7703,8 @@ module Google | |
| 7704 7703 |  | 
| 7705 7704 | 
             
                    # An object that represents a latitude/longitude pair. This is expressed as a
         | 
| 7706 7705 | 
             
                    # pair of doubles to represent degrees latitude and degrees longitude. Unless
         | 
| 7707 | 
            -
                    # specified otherwise, this must conform to the WGS84 standard. Values | 
| 7708 | 
            -
                    # within normalized ranges.
         | 
| 7706 | 
            +
                    # specified otherwise, this object must conform to the WGS84 standard. Values
         | 
| 7707 | 
            +
                    # must be within normalized ranges.
         | 
| 7709 7708 | 
             
                    # Corresponds to the JSON property `latLng`
         | 
| 7710 7709 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::LatLng]
         | 
| 7711 7710 | 
             
                    attr_accessor :lat_lng
         | 
| @@ -8856,8 +8855,8 @@ module Google | |
| 8856 8855 |  | 
| 8857 8856 | 
             
                  # An object that represents a latitude/longitude pair. This is expressed as a
         | 
| 8858 8857 | 
             
                  # pair of doubles to represent degrees latitude and degrees longitude. Unless
         | 
| 8859 | 
            -
                  # specified otherwise, this must conform to the WGS84 standard. Values | 
| 8860 | 
            -
                  # within normalized ranges.
         | 
| 8858 | 
            +
                  # specified otherwise, this object must conform to the WGS84 standard. Values
         | 
| 8859 | 
            +
                  # must be within normalized ranges.
         | 
| 8861 8860 | 
             
                  class LatLng
         | 
| 8862 8861 | 
             
                    include Google::Apis::Core::Hashable
         | 
| 8863 8862 |  | 
| @@ -8932,8 +8931,8 @@ module Google | |
| 8932 8931 |  | 
| 8933 8932 | 
             
                    # An object that represents a latitude/longitude pair. This is expressed as a
         | 
| 8934 8933 | 
             
                    # pair of doubles to represent degrees latitude and degrees longitude. Unless
         | 
| 8935 | 
            -
                    # specified otherwise, this must conform to the WGS84 standard. Values | 
| 8936 | 
            -
                    # within normalized ranges.
         | 
| 8934 | 
            +
                    # specified otherwise, this object must conform to the WGS84 standard. Values
         | 
| 8935 | 
            +
                    # must be within normalized ranges.
         | 
| 8937 8936 | 
             
                    # Corresponds to the JSON property `latLng`
         | 
| 8938 8937 | 
             
                    # @return [Google::Apis::VisionV1p2beta1::LatLng]
         | 
| 8939 8938 | 
             
                    attr_accessor :lat_lng
         | 
| @@ -16,13 +16,13 @@ module Google | |
| 16 16 | 
             
              module Apis
         | 
| 17 17 | 
             
                module VisionV1p2beta1
         | 
| 18 18 | 
             
                  # Version of the google-apis-vision_v1p2beta1 gem
         | 
| 19 | 
            -
                  GEM_VERSION = "0. | 
| 19 | 
            +
                  GEM_VERSION = "0.8.0"
         | 
| 20 20 |  | 
| 21 21 | 
             
                  # Version of the code generator used to generate this client
         | 
| 22 | 
            -
                  GENERATOR_VERSION = "0. | 
| 22 | 
            +
                  GENERATOR_VERSION = "0.4.0"
         | 
| 23 23 |  | 
| 24 24 | 
             
                  # Revision of the discovery document this client was generated from
         | 
| 25 | 
            -
                  REVISION = " | 
| 25 | 
            +
                  REVISION = "20210423"
         | 
| 26 26 | 
             
                end
         | 
| 27 27 | 
             
              end
         | 
| 28 28 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,29 +1,35 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-apis-vision_v1p2beta1
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.8.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Google LLC
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021- | 
| 11 | 
            +
            date: 2021-07-05 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: google-apis-core
         | 
| 15 15 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 16 | 
             
                requirements:
         | 
| 17 | 
            -
                - - " | 
| 17 | 
            +
                - - ">="
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: '0. | 
| 19 | 
            +
                    version: '0.4'
         | 
| 20 | 
            +
                - - "<"
         | 
| 21 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 22 | 
            +
                    version: 2.a
         | 
| 20 23 | 
             
              type: :runtime
         | 
| 21 24 | 
             
              prerelease: false
         | 
| 22 25 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 26 | 
             
                requirements:
         | 
| 24 | 
            -
                - - " | 
| 27 | 
            +
                - - ">="
         | 
| 28 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            +
                    version: '0.4'
         | 
| 30 | 
            +
                - - "<"
         | 
| 25 31 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version:  | 
| 32 | 
            +
                    version: 2.a
         | 
| 27 33 | 
             
            description: This is the simple REST client for Cloud Vision API V1p2beta1. Simple
         | 
| 28 34 | 
             
              REST clients are Ruby client libraries that provide access to Google services via
         | 
| 29 35 | 
             
              their HTTP REST API endpoints. These libraries are generated and updated automatically
         | 
| @@ -52,7 +58,7 @@ licenses: | |
| 52 58 | 
             
            metadata:
         | 
| 53 59 | 
             
              bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
         | 
| 54 60 | 
             
              changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-vision_v1p2beta1/CHANGELOG.md
         | 
| 55 | 
            -
              documentation_uri: https://googleapis.dev/ruby/google-apis-vision_v1p2beta1/v0. | 
| 61 | 
            +
              documentation_uri: https://googleapis.dev/ruby/google-apis-vision_v1p2beta1/v0.8.0
         | 
| 56 62 | 
             
              source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-vision_v1p2beta1
         | 
| 57 63 | 
             
            post_install_message: 
         | 
| 58 64 | 
             
            rdoc_options: []
         | 
| @@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 69 75 | 
             
                - !ruby/object:Gem::Version
         | 
| 70 76 | 
             
                  version: '0'
         | 
| 71 77 | 
             
            requirements: []
         | 
| 72 | 
            -
            rubygems_version: 3.2. | 
| 78 | 
            +
            rubygems_version: 3.2.17
         | 
| 73 79 | 
             
            signing_key: 
         | 
| 74 80 | 
             
            specification_version: 4
         | 
| 75 81 | 
             
            summary: Simple REST client for Cloud Vision API V1p2beta1
         |