diff --git a/api_names_out.yaml b/api_names_out.yaml index 22f0d8297..a7d68a5df 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -91968,6 +91968,8 @@ "/vision:v1/GoogleCloudVisionV1p1beta1Block/paragraphs/paragraph": paragraph "/vision:v1/GoogleCloudVisionV1p1beta1Block/property": property "/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly": google_cloud_vision_v1p1beta1_bounding_poly +"/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices": normalized_vertices +"/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex "/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices": vertices "/vision:v1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices/vertex": vertex "/vision:v1/GoogleCloudVisionV1p1beta1ColorInfo": google_cloud_vision_v1p1beta1_color_info @@ -92036,6 +92038,9 @@ "/vision:v1/GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation/score": score "/vision:v1/GoogleCloudVisionV1p1beta1LocationInfo": google_cloud_vision_v1p1beta1_location_info "/vision:v1/GoogleCloudVisionV1p1beta1LocationInfo/latLng": lat_lng +"/vision:v1/GoogleCloudVisionV1p1beta1NormalizedVertex": google_cloud_vision_v1p1beta1_normalized_vertex +"/vision:v1/GoogleCloudVisionV1p1beta1NormalizedVertex/x": x +"/vision:v1/GoogleCloudVisionV1p1beta1NormalizedVertex/y": y "/vision:v1/GoogleCloudVisionV1p1beta1OperationMetadata": google_cloud_vision_v1p1beta1_operation_metadata "/vision:v1/GoogleCloudVisionV1p1beta1OperationMetadata/createTime": create_time "/vision:v1/GoogleCloudVisionV1p1beta1OperationMetadata/state": state @@ -93086,6 +93091,8 @@ "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Block/paragraphs/paragraph": paragraph "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Block/property": property "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BoundingPoly": google_cloud_vision_v1p1beta1_bounding_poly +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices": normalized_vertices +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices": vertices "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices/vertex": vertex "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1ColorInfo": google_cloud_vision_v1p1beta1_color_info @@ -93177,6 +93184,9 @@ "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation/score": score "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LocationInfo": google_cloud_vision_v1p1beta1_location_info "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LocationInfo/latLng": lat_lng +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1NormalizedVertex": google_cloud_vision_v1p1beta1_normalized_vertex +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1NormalizedVertex/x": x +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1NormalizedVertex/y": y "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OperationMetadata": google_cloud_vision_v1p1beta1_operation_metadata "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OperationMetadata/createTime": create_time "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OperationMetadata/state": state @@ -94095,6 +94105,8 @@ "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Block/paragraphs/paragraph": paragraph "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1Block/property": property "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly": google_cloud_vision_v1p1beta1_bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices": normalized_vertices +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices": vertices "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1BoundingPoly/vertices/vertex": vertex "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1ColorInfo": google_cloud_vision_v1p1beta1_color_info @@ -94163,6 +94175,9 @@ "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation/score": score "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1LocationInfo": google_cloud_vision_v1p1beta1_location_info "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1LocationInfo/latLng": lat_lng +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1NormalizedVertex": google_cloud_vision_v1p1beta1_normalized_vertex +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1NormalizedVertex/x": x +"/vision:v1p2beta1/GoogleCloudVisionV1p1beta1NormalizedVertex/y": y "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OperationMetadata": google_cloud_vision_v1p1beta1_operation_metadata "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OperationMetadata/createTime": create_time "/vision:v1p2beta1/GoogleCloudVisionV1p1beta1OperationMetadata/state": state diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index a36b64e24..8ab8a7e0b 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20181105' + REVISION = '20181107' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index b607247cd..8af6ada16 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -527,7 +527,11 @@ module Google # A message that is published by publishers and consumed by subscribers. The # message must contain either a non-empty data field or at least one attribute. - # See Quotas and limits + # Note that client libraries represent this object differently + # depending on the language. See the corresponding + # client + # library documentation for more information. See + # Quotas and limits # for more information about message limits. class Message include Google::Apis::Core::Hashable @@ -676,7 +680,11 @@ module Google # A message that is published by publishers and consumed by subscribers. The # message must contain either a non-empty data field or at least one attribute. - # See Quotas and limits + # Note that client libraries represent this object differently + # depending on the language. See the corresponding + # client + # library documentation for more information. See + # Quotas and limits # for more information about message limits. # Corresponds to the JSON property `message` # @return [Google::Apis::PubsubV1::Message] diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb index 21307cf6c..7fda9e8c9 100644 --- a/generated/google/apis/toolresults_v1beta3.rb +++ b/generated/google/apis/toolresults_v1beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/test-lab/ module ToolresultsV1beta3 VERSION = 'V1beta3' - REVISION = '20181015' + REVISION = '20181112' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/toolresults_v1beta3/classes.rb b/generated/google/apis/toolresults_v1beta3/classes.rb index a99a436db..9d8263bd8 100644 --- a/generated/google/apis/toolresults_v1beta3/classes.rb +++ b/generated/google/apis/toolresults_v1beta3/classes.rb @@ -544,16 +544,17 @@ module Google class Execution include Google::Apis::Core::Hashable - # A Timestamp represents a point in time independent of any time zone or - # calendar, represented as seconds and fractions of seconds at nanosecond - # resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian - # Calendar which extends the Gregorian calendar backwards to year one. It is - # encoded assuming all minutes are 60 seconds long, i.e. leap seconds are " - # smeared" so that no leap second table is needed for interpretation. Range is - # from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to - # that range, we ensure that we can convert to and from RFC 3339 date strings. - # See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339. - # txt). + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at nanosecond + # resolution. The count is relative to an epoch at UTC midnight on January 1, + # 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar + # backwards to year one. + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear smear]( + # https://developers.google.com/time/smear). + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC 3339] + # (https://www.ietf.org/rfc/rfc3339.txt) date strings. # # Examples # Example 1: Compute Timestamp from POSIX `time()`. # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); @@ -600,16 +601,17 @@ module Google # @return [Google::Apis::ToolresultsV1beta3::Timestamp] attr_accessor :completion_time - # A Timestamp represents a point in time independent of any time zone or - # calendar, represented as seconds and fractions of seconds at nanosecond - # resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian - # Calendar which extends the Gregorian calendar backwards to year one. It is - # encoded assuming all minutes are 60 seconds long, i.e. leap seconds are " - # smeared" so that no leap second table is needed for interpretation. Range is - # from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to - # that range, we ensure that we can convert to and from RFC 3339 date strings. - # See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339. - # txt). + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at nanosecond + # resolution. The count is relative to an epoch at UTC midnight on January 1, + # 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar + # backwards to year one. + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear smear]( + # https://developers.google.com/time/smear). + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC 3339] + # (https://www.ietf.org/rfc/rfc3339.txt) date strings. # # Examples # Example 1: Compute Timestamp from POSIX `time()`. # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); @@ -1397,16 +1399,17 @@ module Google class PerfSample include Google::Apis::Core::Hashable - # A Timestamp represents a point in time independent of any time zone or - # calendar, represented as seconds and fractions of seconds at nanosecond - # resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian - # Calendar which extends the Gregorian calendar backwards to year one. It is - # encoded assuming all minutes are 60 seconds long, i.e. leap seconds are " - # smeared" so that no leap second table is needed for interpretation. Range is - # from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to - # that range, we ensure that we can convert to and from RFC 3339 date strings. - # See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339. - # txt). + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at nanosecond + # resolution. The count is relative to an epoch at UTC midnight on January 1, + # 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar + # backwards to year one. + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear smear]( + # https://developers.google.com/time/smear). + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC 3339] + # (https://www.ietf.org/rfc/rfc3339.txt) date strings. # # Examples # Example 1: Compute Timestamp from POSIX `time()`. # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); @@ -1807,16 +1810,17 @@ module Google class Step include Google::Apis::Core::Hashable - # A Timestamp represents a point in time independent of any time zone or - # calendar, represented as seconds and fractions of seconds at nanosecond - # resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian - # Calendar which extends the Gregorian calendar backwards to year one. It is - # encoded assuming all minutes are 60 seconds long, i.e. leap seconds are " - # smeared" so that no leap second table is needed for interpretation. Range is - # from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to - # that range, we ensure that we can convert to and from RFC 3339 date strings. - # See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339. - # txt). + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at nanosecond + # resolution. The count is relative to an epoch at UTC midnight on January 1, + # 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar + # backwards to year one. + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear smear]( + # https://developers.google.com/time/smear). + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC 3339] + # (https://www.ietf.org/rfc/rfc3339.txt) date strings. # # Examples # Example 1: Compute Timestamp from POSIX `time()`. # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); @@ -1863,16 +1867,17 @@ module Google # @return [Google::Apis::ToolresultsV1beta3::Timestamp] attr_accessor :completion_time - # A Timestamp represents a point in time independent of any time zone or - # calendar, represented as seconds and fractions of seconds at nanosecond - # resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian - # Calendar which extends the Gregorian calendar backwards to year one. It is - # encoded assuming all minutes are 60 seconds long, i.e. leap seconds are " - # smeared" so that no leap second table is needed for interpretation. Range is - # from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to - # that range, we ensure that we can convert to and from RFC 3339 date strings. - # See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339. - # txt). + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at nanosecond + # resolution. The count is relative to an epoch at UTC midnight on January 1, + # 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar + # backwards to year one. + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear smear]( + # https://developers.google.com/time/smear). + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC 3339] + # (https://www.ietf.org/rfc/rfc3339.txt) date strings. # # Examples # Example 1: Compute Timestamp from POSIX `time()`. # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); @@ -2501,16 +2506,17 @@ module Google end end - # A Timestamp represents a point in time independent of any time zone or - # calendar, represented as seconds and fractions of seconds at nanosecond - # resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian - # Calendar which extends the Gregorian calendar backwards to year one. It is - # encoded assuming all minutes are 60 seconds long, i.e. leap seconds are " - # smeared" so that no leap second table is needed for interpretation. Range is - # from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to - # that range, we ensure that we can convert to and from RFC 3339 date strings. - # See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339. - # txt). + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at nanosecond + # resolution. The count is relative to an epoch at UTC midnight on January 1, + # 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar + # backwards to year one. + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear smear]( + # https://developers.google.com/time/smear). + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC 3339] + # (https://www.ietf.org/rfc/rfc3339.txt) date strings. # # Examples # Example 1: Compute Timestamp from POSIX `time()`. # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); @@ -2676,16 +2682,17 @@ module Google class ToolOutputReference include Google::Apis::Core::Hashable - # A Timestamp represents a point in time independent of any time zone or - # calendar, represented as seconds and fractions of seconds at nanosecond - # resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian - # Calendar which extends the Gregorian calendar backwards to year one. It is - # encoded assuming all minutes are 60 seconds long, i.e. leap seconds are " - # smeared" so that no leap second table is needed for interpretation. Range is - # from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to - # that range, we ensure that we can convert to and from RFC 3339 date strings. - # See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339. - # txt). + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at nanosecond + # resolution. The count is relative to an epoch at UTC midnight on January 1, + # 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar + # backwards to year one. + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear smear]( + # https://developers.google.com/time/smear). + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC 3339] + # (https://www.ietf.org/rfc/rfc3339.txt) date strings. # # Examples # Example 1: Compute Timestamp from POSIX `time()`. # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index 2eb874168..5e34b95a3 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20181031' + REVISION = '20181112' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb index 5a2bc3ecf..8ca5068f2 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -1469,6 +1469,11 @@ module Google class GoogleCloudVisionV1p1beta1BoundingPoly include Google::Apis::Core::Hashable + # The bounding polygon normalized vertices. + # Corresponds to the JSON property `normalizedVertices` + # @return [Array] + attr_accessor :normalized_vertices + # The bounding polygon vertices. # Corresponds to the JSON property `vertices` # @return [Array] @@ -1480,6 +1485,7 @@ module Google # Update properties of this object def update!(**args) + @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices) @vertices = args[:vertices] if args.key?(:vertices) end end @@ -2093,6 +2099,33 @@ module Google end end + # A vertex represents a 2D point in the image. + # NOTE: the normalized vertex coordinates are relative to the original image + # and range from 0 to 1. + class GoogleCloudVisionV1p1beta1NormalizedVertex + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + # Contains metadata for the BatchAnnotateImages operation. class GoogleCloudVisionV1p1beta1OperationMetadata include Google::Apis::Core::Hashable diff --git a/generated/google/apis/vision_v1/representations.rb b/generated/google/apis/vision_v1/representations.rb index 18b63dadc..f52d004e6 100644 --- a/generated/google/apis/vision_v1/representations.rb +++ b/generated/google/apis/vision_v1/representations.rb @@ -310,6 +310,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1NormalizedVertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1OperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1685,6 +1691,8 @@ module Google class GoogleCloudVisionV1p1beta1BoundingPoly # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1NormalizedVertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1NormalizedVertex::Representation + collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Vertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Vertex::Representation end @@ -1836,6 +1844,14 @@ module Google end end + class GoogleCloudVisionV1p1beta1NormalizedVertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + class GoogleCloudVisionV1p1beta1OperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/vision_v1p1beta1.rb b/generated/google/apis/vision_v1p1beta1.rb index 845c23c3d..0cec8a586 100644 --- a/generated/google/apis/vision_v1p1beta1.rb +++ b/generated/google/apis/vision_v1p1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20181031' + REVISION = '20181112' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1p1beta1/classes.rb b/generated/google/apis/vision_v1p1beta1/classes.rb index bd267ef7d..106978c46 100644 --- a/generated/google/apis/vision_v1p1beta1/classes.rb +++ b/generated/google/apis/vision_v1p1beta1/classes.rb @@ -1356,6 +1356,11 @@ module Google class GoogleCloudVisionV1p1beta1BoundingPoly include Google::Apis::Core::Hashable + # The bounding polygon normalized vertices. + # Corresponds to the JSON property `normalizedVertices` + # @return [Array] + attr_accessor :normalized_vertices + # The bounding polygon vertices. # Corresponds to the JSON property `vertices` # @return [Array] @@ -1367,6 +1372,7 @@ module Google # Update properties of this object def update!(**args) + @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices) @vertices = args[:vertices] if args.key?(:vertices) end end @@ -2193,6 +2199,33 @@ module Google end end + # A vertex represents a 2D point in the image. + # NOTE: the normalized vertex coordinates are relative to the original image + # and range from 0 to 1. + class GoogleCloudVisionV1p1beta1NormalizedVertex + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + # Contains metadata for the BatchAnnotateImages operation. class GoogleCloudVisionV1p1beta1OperationMetadata include Google::Apis::Core::Hashable diff --git a/generated/google/apis/vision_v1p1beta1/representations.rb b/generated/google/apis/vision_v1p1beta1/representations.rb index 9c7ff0cef..88e17d02c 100644 --- a/generated/google/apis/vision_v1p1beta1/representations.rb +++ b/generated/google/apis/vision_v1p1beta1/representations.rb @@ -316,6 +316,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1NormalizedVertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1OperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1572,6 +1578,8 @@ module Google class GoogleCloudVisionV1p1beta1BoundingPoly # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1NormalizedVertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1NormalizedVertex::Representation + collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Vertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Vertex::Representation end @@ -1781,6 +1789,14 @@ module Google end end + class GoogleCloudVisionV1p1beta1NormalizedVertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + class GoogleCloudVisionV1p1beta1OperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/vision_v1p2beta1.rb b/generated/google/apis/vision_v1p2beta1.rb index 5f0937ff4..f7615825b 100644 --- a/generated/google/apis/vision_v1p2beta1.rb +++ b/generated/google/apis/vision_v1p2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p2beta1 VERSION = 'V1p2beta1' - REVISION = '20181031' + REVISION = '20181112' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1p2beta1/classes.rb b/generated/google/apis/vision_v1p2beta1/classes.rb index 9bd1b560c..dce68c729 100644 --- a/generated/google/apis/vision_v1p2beta1/classes.rb +++ b/generated/google/apis/vision_v1p2beta1/classes.rb @@ -1229,6 +1229,11 @@ module Google class GoogleCloudVisionV1p1beta1BoundingPoly include Google::Apis::Core::Hashable + # The bounding polygon normalized vertices. + # Corresponds to the JSON property `normalizedVertices` + # @return [Array] + attr_accessor :normalized_vertices + # The bounding polygon vertices. # Corresponds to the JSON property `vertices` # @return [Array] @@ -1240,6 +1245,7 @@ module Google # Update properties of this object def update!(**args) + @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices) @vertices = args[:vertices] if args.key?(:vertices) end end @@ -1853,6 +1859,33 @@ module Google end end + # A vertex represents a 2D point in the image. + # NOTE: the normalized vertex coordinates are relative to the original image + # and range from 0 to 1. + class GoogleCloudVisionV1p1beta1NormalizedVertex + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + # Contains metadata for the BatchAnnotateImages operation. class GoogleCloudVisionV1p1beta1OperationMetadata include Google::Apis::Core::Hashable diff --git a/generated/google/apis/vision_v1p2beta1/representations.rb b/generated/google/apis/vision_v1p2beta1/representations.rb index 317b3191b..ae18c79b1 100644 --- a/generated/google/apis/vision_v1p2beta1/representations.rb +++ b/generated/google/apis/vision_v1p2beta1/representations.rb @@ -250,6 +250,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1NormalizedVertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1OperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1522,6 +1528,8 @@ module Google class GoogleCloudVisionV1p1beta1BoundingPoly # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1NormalizedVertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1NormalizedVertex::Representation + collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Vertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Vertex::Representation end @@ -1673,6 +1681,14 @@ module Google end end + class GoogleCloudVisionV1p1beta1NormalizedVertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + class GoogleCloudVisionV1p1beta1OperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation