diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index 5c9e671df..35252a1b5 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://developers.google.com/authorized-buyers/apis/reference/rest/ module Adexchangebuyer2V2beta1 VERSION = 'V2beta1' - REVISION = '20191017' + REVISION = '20191111' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/cloudbilling_v1.rb b/generated/google/apis/cloudbilling_v1.rb index 6939e1a44..40c8eeaa6 100644 --- a/generated/google/apis/cloudbilling_v1.rb +++ b/generated/google/apis/cloudbilling_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/billing/ module CloudbillingV1 VERSION = 'V1' - REVISION = '20191005' + REVISION = '20191111' # 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/cloudbilling_v1/classes.rb b/generated/google/apis/cloudbilling_v1/classes.rb index abbf5c386..cc56f0f89 100644 --- a/generated/google/apis/cloudbilling_v1/classes.rb +++ b/generated/google/apis/cloudbilling_v1/classes.rb @@ -244,6 +244,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example,`alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` diff --git a/generated/google/apis/docs_v1.rb b/generated/google/apis/docs_v1.rb index c9441c674..c61f340d2 100644 --- a/generated/google/apis/docs_v1.rb +++ b/generated/google/apis/docs_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/docs/ module DocsV1 VERSION = 'V1' - REVISION = '20191029' + REVISION = '20191106' # View and manage your Google Docs documents AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents' diff --git a/generated/google/apis/docs_v1/classes.rb b/generated/google/apis/docs_v1/classes.rb index c9db631e3..3b8a6219e 100644 --- a/generated/google/apis/docs_v1/classes.rb +++ b/generated/google/apis/docs_v1/classes.rb @@ -365,8 +365,7 @@ module Google end # Creates a Footer. The new footer will be - # applied to SectionStyle or the - # DocumentStyle. + # applied to the DocumentStyle. # If a footer of the specified type already exists then a 400 bad request error # will be returned. class CreateFooterRequest @@ -407,8 +406,7 @@ module Google end # Creates a Header. The new header will be - # applied to SectionStyle or the - # DocumentStyle. + # applied to the DocumentStyle. # If a header of the specified type already exists then a 400 bad request error # will be returned. class CreateHeaderRequest @@ -3842,8 +3840,7 @@ module Google include Google::Apis::Core::Hashable # Creates a Footer. The new footer will be - # applied to SectionStyle or the - # DocumentStyle. + # applied to the DocumentStyle. # If a footer of the specified type already exists then a 400 bad request error # will be returned. # Corresponds to the JSON property `createFooter` @@ -3851,8 +3848,7 @@ module Google attr_accessor :create_footer # Creates a Header. The new header will be - # applied to SectionStyle or the - # DocumentStyle. + # applied to the DocumentStyle. # If a header of the specified type already exists then a 400 bad request error # will be returned. # Corresponds to the JSON property `createHeader` diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index 931c485dc..d8f9f4b00 100644 --- a/generated/google/apis/healthcare_v1beta1.rb +++ b/generated/google/apis/healthcare_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1beta1 VERSION = 'V1beta1' - REVISION = '20191021' + REVISION = '20191107' # 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/healthcare_v1beta1/classes.rb b/generated/google/apis/healthcare_v1beta1/classes.rb index 46de11ebb..bde86a7fb 100644 --- a/generated/google/apis/healthcare_v1beta1/classes.rb +++ b/generated/google/apis/healthcare_v1beta1/classes.rb @@ -944,8 +944,8 @@ module Google # field[x]) we use two separate components. For example, # "deceasedAge.unit" is matched by "Deceased.Age.unit". # Supported types are: AdministrativeGenderCode, Code, Date, DateTime, - # Decimal, HumanName, Id, LanguageCode, Markdown, MimeTypeCode, Oid, - # String, Uri, Uuid, Xhtml. + # Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, + # Xhtml. # Corresponds to the JSON property `paths` # @return [Array] attr_accessor :paths diff --git a/generated/google/apis/securitycenter_v1.rb b/generated/google/apis/securitycenter_v1.rb index 6cab75822..debb7f52d 100644 --- a/generated/google/apis/securitycenter_v1.rb +++ b/generated/google/apis/securitycenter_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1 VERSION = 'V1' - REVISION = '20191101' + REVISION = '20191108' # 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/securitycenter_v1/classes.rb b/generated/google/apis/securitycenter_v1/classes.rb index 4143203c7..60d8b4124 100644 --- a/generated/google/apis/securitycenter_v1/classes.rb +++ b/generated/google/apis/securitycenter_v1/classes.rb @@ -257,6 +257,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example,`alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -1029,6 +1046,12 @@ module Google # @return [Google::Apis::SecuritycenterV1::Finding] attr_accessor :finding + # Information related to the Google Cloud Platform (GCP) resource that is + # associated with this finding. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::SecuritycenterV1::Resource] + attr_accessor :resource + # State change of the finding between the points in time. # Corresponds to the JSON property `stateChange` # @return [String] @@ -1041,6 +1064,7 @@ module Google # Update properties of this object def update!(**args) @finding = args[:finding] if args.key?(:finding) + @resource = args[:resource] if args.key?(:resource) @state_change = args[:state_change] if args.key?(:state_change) end end @@ -1307,6 +1331,51 @@ module Google end end + # Information related to the Google Cloud Platform (GCP) resource that is + # associated with this finding. + class Resource + include Google::Apis::Core::Hashable + + # The full resource name of the resource. See: + # https://cloud.google.com/apis/design/resource_names#full_resource_name + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The human readable name of resource's parent. + # Corresponds to the JSON property `parentDisplayName` + # @return [String] + attr_accessor :parent_display_name + + # The full resource name of resource's parent. + # Corresponds to the JSON property `parentName` + # @return [String] + attr_accessor :parent_name + + # The human readable name of project that the resource belongs to. + # Corresponds to the JSON property `projectDisplayName` + # @return [String] + attr_accessor :project_display_name + + # The full resource name of project that the resource belongs to. + # Corresponds to the JSON property `projectName` + # @return [String] + attr_accessor :project_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) + @parent_name = args[:parent_name] if args.key?(:parent_name) + @project_display_name = args[:project_display_name] if args.key?(:project_display_name) + @project_name = args[:project_name] if args.key?(:project_name) + end + end + # Request message for running asset discovery for an organization. class RunAssetDiscoveryRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/securitycenter_v1/representations.rb b/generated/google/apis/securitycenter_v1/representations.rb index c0792e44b..636c7332e 100644 --- a/generated/google/apis/securitycenter_v1/representations.rb +++ b/generated/google/apis/securitycenter_v1/representations.rb @@ -184,6 +184,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RunAssetDiscoveryRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -450,6 +456,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1::Finding, decorator: Google::Apis::SecuritycenterV1::Finding::Representation + property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1::Resource, decorator: Google::Apis::SecuritycenterV1::Resource::Representation + property :state_change, as: 'stateChange' end end @@ -506,6 +514,17 @@ module Google end end + class Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parent_display_name, as: 'parentDisplayName' + property :parent_name, as: 'parentName' + property :project_display_name, as: 'projectDisplayName' + property :project_name, as: 'projectName' + end + end + class RunAssetDiscoveryRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/securitycenter_v1beta1.rb b/generated/google/apis/securitycenter_v1beta1.rb index 5bf14c55a..c43d5c96b 100644 --- a/generated/google/apis/securitycenter_v1beta1.rb +++ b/generated/google/apis/securitycenter_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1beta1 VERSION = 'V1beta1' - REVISION = '20191101' + REVISION = '20191108' # 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/securitycenter_v1beta1/classes.rb b/generated/google/apis/securitycenter_v1beta1/classes.rb index d08791826..a83ee1356 100644 --- a/generated/google/apis/securitycenter_v1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1beta1/classes.rb @@ -249,6 +249,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example,`alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -1404,8 +1421,8 @@ module Google # @return [String] attr_accessor :description - # The source’s display name. - # A source’s display name must be unique amongst its siblings, for example, + # The source's display name. + # A source's display name must be unique amongst its siblings, for example, # two sources with the same parent can't share the same display name. # The display name must have a length between 1 and 64 characters # (inclusive). diff --git a/generated/google/apis/videointelligence_v1.rb b/generated/google/apis/videointelligence_v1.rb index 6937703ee..9a72c7b20 100644 --- a/generated/google/apis/videointelligence_v1.rb +++ b/generated/google/apis/videointelligence_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1 VERSION = 'V1' - REVISION = '20191028' + REVISION = '20191109' # 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/videointelligence_v1/classes.rb b/generated/google/apis/videointelligence_v1/classes.rb index c1e19aac1..e73fa557d 100644 --- a/generated/google/apis/videointelligence_v1/classes.rb +++ b/generated/google/apis/videointelligence_v1/classes.rb @@ -3710,6 +3710,87 @@ module Google end end + # Celebrity definition. + class GoogleCloudVideointelligenceV1p3beta1Celebrity + include Google::Apis::Core::Hashable + + # Textual description of additional information about the celebrity, if + # applicable. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The celebrity name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the celebrity. Have the format + # `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. + # kg-mid is the id in Google knowledge graph, which is unique for the + # celebrity. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + + # Celebrity recognition annotation per video. + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + include Google::Apis::Core::Hashable + + # The tracks detected from the input video, including recognized celebrities + # and other detected faces in the video. + # Corresponds to the JSON property `celebrityTracks` + # @return [Array] + attr_accessor :celebrity_tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity_tracks = args[:celebrity_tracks] if args.key?(:celebrity_tracks) + end + end + + # The annotation result of a celebrity face track. RecognizedCelebrity field + # could be empty if the face track does not have any matched celebrities. + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + include Google::Apis::Core::Hashable + + # Top N match of the celebrities for the face in this track. + # Corresponds to the JSON property `celebrities` + # @return [Array] + attr_accessor :celebrities + + # A track of an object instance. + # Corresponds to the JSON property `faceTrack` + # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Track] + attr_accessor :face_track + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrities = args[:celebrities] if args.key?(:celebrities) + @face_track = args[:face_track] if args.key?(:face_track) + end + end + # A generic detected attribute represented by name in string format. class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute include Google::Apis::Core::Hashable @@ -4125,6 +4206,31 @@ module Google end end + # The recognized celebrity with confidence score. + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + include Google::Apis::Core::Hashable + + # Celebrity definition. + # Corresponds to the JSON property `celebrity` + # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Celebrity] + attr_accessor :celebrity + + # Recognition confidence. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity = args[:celebrity] if args.key?(:celebrity) + @confidence = args[:confidence] if args.key?(:confidence) + end + end + # Alternative hypotheses (a.k.a. n-best list). class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative include Google::Apis::Core::Hashable @@ -4505,6 +4611,11 @@ module Google class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults include Google::Apis::Core::Hashable + # Celebrity recognition annotation per video. + # Corresponds to the JSON property `celebrityRecognitionAnnotations` + # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation] + attr_accessor :celebrity_recognition_annotations + # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is # used by [gRPC](https://github.com/grpc). Each `Status` message contains @@ -4603,6 +4714,7 @@ module Google # Update properties of this object def update!(**args) + @celebrity_recognition_annotations = args[:celebrity_recognition_annotations] if args.key?(:celebrity_recognition_annotations) @error = args[:error] if args.key?(:error) @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) diff --git a/generated/google/apis/videointelligence_v1/representations.rb b/generated/google/apis/videointelligence_v1/representations.rb index b73a08527..d347c3d5a 100644 --- a/generated/google/apis/videointelligence_v1/representations.rb +++ b/generated/google/apis/videointelligence_v1/representations.rb @@ -616,6 +616,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1Celebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute class Representation < Google::Apis::Core::JsonRepresentation; end @@ -694,6 +712,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1842,6 +1866,33 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1Celebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :celebrity_tracks, as: 'celebrityTracks', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack::Representation + + end + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :celebrities, as: 'celebrities', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity::Representation + + property :face_track, as: 'faceTrack', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1968,6 +2019,15 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity, as: 'celebrity', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Celebrity, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Celebrity::Representation + + property :confidence, as: 'confidence' + end + end + class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2081,6 +2141,8 @@ module Google class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults # @private class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity_recognition_annotations, as: 'celebrityRecognitionAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation::Representation + property :error, as: 'error', class: Google::Apis::VideointelligenceV1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1::GoogleRpcStatus::Representation property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation::Representation diff --git a/generated/google/apis/videointelligence_v1beta2.rb b/generated/google/apis/videointelligence_v1beta2.rb index 8b8ab1c74..696eabe18 100644 --- a/generated/google/apis/videointelligence_v1beta2.rb +++ b/generated/google/apis/videointelligence_v1beta2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1beta2 VERSION = 'V1beta2' - REVISION = '20191028' + REVISION = '20191109' # 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/videointelligence_v1beta2/classes.rb b/generated/google/apis/videointelligence_v1beta2/classes.rb index c9b5d8cc9..948f95036 100644 --- a/generated/google/apis/videointelligence_v1beta2/classes.rb +++ b/generated/google/apis/videointelligence_v1beta2/classes.rb @@ -3710,6 +3710,87 @@ module Google end end + # Celebrity definition. + class GoogleCloudVideointelligenceV1p3beta1Celebrity + include Google::Apis::Core::Hashable + + # Textual description of additional information about the celebrity, if + # applicable. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The celebrity name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the celebrity. Have the format + # `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. + # kg-mid is the id in Google knowledge graph, which is unique for the + # celebrity. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + + # Celebrity recognition annotation per video. + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + include Google::Apis::Core::Hashable + + # The tracks detected from the input video, including recognized celebrities + # and other detected faces in the video. + # Corresponds to the JSON property `celebrityTracks` + # @return [Array] + attr_accessor :celebrity_tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity_tracks = args[:celebrity_tracks] if args.key?(:celebrity_tracks) + end + end + + # The annotation result of a celebrity face track. RecognizedCelebrity field + # could be empty if the face track does not have any matched celebrities. + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + include Google::Apis::Core::Hashable + + # Top N match of the celebrities for the face in this track. + # Corresponds to the JSON property `celebrities` + # @return [Array] + attr_accessor :celebrities + + # A track of an object instance. + # Corresponds to the JSON property `faceTrack` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Track] + attr_accessor :face_track + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrities = args[:celebrities] if args.key?(:celebrities) + @face_track = args[:face_track] if args.key?(:face_track) + end + end + # A generic detected attribute represented by name in string format. class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute include Google::Apis::Core::Hashable @@ -4125,6 +4206,31 @@ module Google end end + # The recognized celebrity with confidence score. + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + include Google::Apis::Core::Hashable + + # Celebrity definition. + # Corresponds to the JSON property `celebrity` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Celebrity] + attr_accessor :celebrity + + # Recognition confidence. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity = args[:celebrity] if args.key?(:celebrity) + @confidence = args[:confidence] if args.key?(:confidence) + end + end + # Alternative hypotheses (a.k.a. n-best list). class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative include Google::Apis::Core::Hashable @@ -4505,6 +4611,11 @@ module Google class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults include Google::Apis::Core::Hashable + # Celebrity recognition annotation per video. + # Corresponds to the JSON property `celebrityRecognitionAnnotations` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation] + attr_accessor :celebrity_recognition_annotations + # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is # used by [gRPC](https://github.com/grpc). Each `Status` message contains @@ -4603,6 +4714,7 @@ module Google # Update properties of this object def update!(**args) + @celebrity_recognition_annotations = args[:celebrity_recognition_annotations] if args.key?(:celebrity_recognition_annotations) @error = args[:error] if args.key?(:error) @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) diff --git a/generated/google/apis/videointelligence_v1beta2/representations.rb b/generated/google/apis/videointelligence_v1beta2/representations.rb index d5fb0e776..6090f9846 100644 --- a/generated/google/apis/videointelligence_v1beta2/representations.rb +++ b/generated/google/apis/videointelligence_v1beta2/representations.rb @@ -616,6 +616,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1Celebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute class Representation < Google::Apis::Core::JsonRepresentation; end @@ -694,6 +712,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1824,6 +1848,33 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1Celebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :celebrity_tracks, as: 'celebrityTracks', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack::Representation + + end + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :celebrities, as: 'celebrities', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity::Representation + + property :face_track, as: 'faceTrack', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1950,6 +2001,15 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity, as: 'celebrity', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Celebrity, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Celebrity::Representation + + property :confidence, as: 'confidence' + end + end + class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2063,6 +2123,8 @@ module Google class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults # @private class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity_recognition_annotations, as: 'celebrityRecognitionAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation::Representation + property :error, as: 'error', class: Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus::Representation property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation::Representation diff --git a/generated/google/apis/videointelligence_v1p1beta1.rb b/generated/google/apis/videointelligence_v1p1beta1.rb index 3524684ef..23bd29160 100644 --- a/generated/google/apis/videointelligence_v1p1beta1.rb +++ b/generated/google/apis/videointelligence_v1p1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20191028' + REVISION = '20191109' # 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/videointelligence_v1p1beta1/classes.rb b/generated/google/apis/videointelligence_v1p1beta1/classes.rb index b7847d52d..5c1a861fd 100644 --- a/generated/google/apis/videointelligence_v1p1beta1/classes.rb +++ b/generated/google/apis/videointelligence_v1p1beta1/classes.rb @@ -3710,6 +3710,87 @@ module Google end end + # Celebrity definition. + class GoogleCloudVideointelligenceV1p3beta1Celebrity + include Google::Apis::Core::Hashable + + # Textual description of additional information about the celebrity, if + # applicable. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The celebrity name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the celebrity. Have the format + # `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. + # kg-mid is the id in Google knowledge graph, which is unique for the + # celebrity. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + + # Celebrity recognition annotation per video. + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + include Google::Apis::Core::Hashable + + # The tracks detected from the input video, including recognized celebrities + # and other detected faces in the video. + # Corresponds to the JSON property `celebrityTracks` + # @return [Array] + attr_accessor :celebrity_tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity_tracks = args[:celebrity_tracks] if args.key?(:celebrity_tracks) + end + end + + # The annotation result of a celebrity face track. RecognizedCelebrity field + # could be empty if the face track does not have any matched celebrities. + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + include Google::Apis::Core::Hashable + + # Top N match of the celebrities for the face in this track. + # Corresponds to the JSON property `celebrities` + # @return [Array] + attr_accessor :celebrities + + # A track of an object instance. + # Corresponds to the JSON property `faceTrack` + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1Track] + attr_accessor :face_track + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrities = args[:celebrities] if args.key?(:celebrities) + @face_track = args[:face_track] if args.key?(:face_track) + end + end + # A generic detected attribute represented by name in string format. class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute include Google::Apis::Core::Hashable @@ -4125,6 +4206,31 @@ module Google end end + # The recognized celebrity with confidence score. + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + include Google::Apis::Core::Hashable + + # Celebrity definition. + # Corresponds to the JSON property `celebrity` + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity] + attr_accessor :celebrity + + # Recognition confidence. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity = args[:celebrity] if args.key?(:celebrity) + @confidence = args[:confidence] if args.key?(:confidence) + end + end + # Alternative hypotheses (a.k.a. n-best list). class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative include Google::Apis::Core::Hashable @@ -4505,6 +4611,11 @@ module Google class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults include Google::Apis::Core::Hashable + # Celebrity recognition annotation per video. + # Corresponds to the JSON property `celebrityRecognitionAnnotations` + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation] + attr_accessor :celebrity_recognition_annotations + # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is # used by [gRPC](https://github.com/grpc). Each `Status` message contains @@ -4603,6 +4714,7 @@ module Google # Update properties of this object def update!(**args) + @celebrity_recognition_annotations = args[:celebrity_recognition_annotations] if args.key?(:celebrity_recognition_annotations) @error = args[:error] if args.key?(:error) @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) diff --git a/generated/google/apis/videointelligence_v1p1beta1/representations.rb b/generated/google/apis/videointelligence_v1p1beta1/representations.rb index 8647458e8..7fc00a3ce 100644 --- a/generated/google/apis/videointelligence_v1p1beta1/representations.rb +++ b/generated/google/apis/videointelligence_v1p1beta1/representations.rb @@ -616,6 +616,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1Celebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute class Representation < Google::Apis::Core::JsonRepresentation; end @@ -694,6 +712,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1824,6 +1848,33 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1Celebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :celebrity_tracks, as: 'celebrityTracks', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack::Representation + + end + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :celebrities, as: 'celebrities', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity::Representation + + property :face_track, as: 'faceTrack', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1950,6 +2001,15 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity, as: 'celebrity', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity::Representation + + property :confidence, as: 'confidence' + end + end + class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2063,6 +2123,8 @@ module Google class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults # @private class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity_recognition_annotations, as: 'celebrityRecognitionAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation::Representation + property :error, as: 'error', class: Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus::Representation property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation::Representation diff --git a/generated/google/apis/videointelligence_v1p2beta1.rb b/generated/google/apis/videointelligence_v1p2beta1.rb index 355a3d908..01081dcb8 100644 --- a/generated/google/apis/videointelligence_v1p2beta1.rb +++ b/generated/google/apis/videointelligence_v1p2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1p2beta1 VERSION = 'V1p2beta1' - REVISION = '20191028' + REVISION = '20191109' # 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/videointelligence_v1p2beta1/classes.rb b/generated/google/apis/videointelligence_v1p2beta1/classes.rb index 9ce7182e4..30dc5789a 100644 --- a/generated/google/apis/videointelligence_v1p2beta1/classes.rb +++ b/generated/google/apis/videointelligence_v1p2beta1/classes.rb @@ -3710,6 +3710,87 @@ module Google end end + # Celebrity definition. + class GoogleCloudVideointelligenceV1p3beta1Celebrity + include Google::Apis::Core::Hashable + + # Textual description of additional information about the celebrity, if + # applicable. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The celebrity name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the celebrity. Have the format + # `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. + # kg-mid is the id in Google knowledge graph, which is unique for the + # celebrity. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + + # Celebrity recognition annotation per video. + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + include Google::Apis::Core::Hashable + + # The tracks detected from the input video, including recognized celebrities + # and other detected faces in the video. + # Corresponds to the JSON property `celebrityTracks` + # @return [Array] + attr_accessor :celebrity_tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity_tracks = args[:celebrity_tracks] if args.key?(:celebrity_tracks) + end + end + + # The annotation result of a celebrity face track. RecognizedCelebrity field + # could be empty if the face track does not have any matched celebrities. + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + include Google::Apis::Core::Hashable + + # Top N match of the celebrities for the face in this track. + # Corresponds to the JSON property `celebrities` + # @return [Array] + attr_accessor :celebrities + + # A track of an object instance. + # Corresponds to the JSON property `faceTrack` + # @return [Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Track] + attr_accessor :face_track + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrities = args[:celebrities] if args.key?(:celebrities) + @face_track = args[:face_track] if args.key?(:face_track) + end + end + # A generic detected attribute represented by name in string format. class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute include Google::Apis::Core::Hashable @@ -4125,6 +4206,31 @@ module Google end end + # The recognized celebrity with confidence score. + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + include Google::Apis::Core::Hashable + + # Celebrity definition. + # Corresponds to the JSON property `celebrity` + # @return [Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity] + attr_accessor :celebrity + + # Recognition confidence. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity = args[:celebrity] if args.key?(:celebrity) + @confidence = args[:confidence] if args.key?(:confidence) + end + end + # Alternative hypotheses (a.k.a. n-best list). class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative include Google::Apis::Core::Hashable @@ -4505,6 +4611,11 @@ module Google class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults include Google::Apis::Core::Hashable + # Celebrity recognition annotation per video. + # Corresponds to the JSON property `celebrityRecognitionAnnotations` + # @return [Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation] + attr_accessor :celebrity_recognition_annotations + # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is # used by [gRPC](https://github.com/grpc). Each `Status` message contains @@ -4603,6 +4714,7 @@ module Google # Update properties of this object def update!(**args) + @celebrity_recognition_annotations = args[:celebrity_recognition_annotations] if args.key?(:celebrity_recognition_annotations) @error = args[:error] if args.key?(:error) @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) diff --git a/generated/google/apis/videointelligence_v1p2beta1/representations.rb b/generated/google/apis/videointelligence_v1p2beta1/representations.rb index b50312a62..fe049511f 100644 --- a/generated/google/apis/videointelligence_v1p2beta1/representations.rb +++ b/generated/google/apis/videointelligence_v1p2beta1/representations.rb @@ -616,6 +616,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1Celebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute class Representation < Google::Apis::Core::JsonRepresentation; end @@ -694,6 +712,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1824,6 +1848,33 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1Celebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :celebrity_tracks, as: 'celebrityTracks', class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack, decorator: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack::Representation + + end + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :celebrities, as: 'celebrities', class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity, decorator: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity::Representation + + property :face_track, as: 'faceTrack', class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1950,6 +2001,15 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity, as: 'celebrity', class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity, decorator: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity::Representation + + property :confidence, as: 'confidence' + end + end + class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2063,6 +2123,8 @@ module Google class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults # @private class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity_recognition_annotations, as: 'celebrityRecognitionAnnotations', class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation, decorator: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation::Representation + property :error, as: 'error', class: Google::Apis::VideointelligenceV1p2beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1p2beta1::GoogleRpcStatus::Representation property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation::Representation diff --git a/generated/google/apis/videointelligence_v1p3beta1.rb b/generated/google/apis/videointelligence_v1p3beta1.rb index 2844de4a1..798bd2faf 100644 --- a/generated/google/apis/videointelligence_v1p3beta1.rb +++ b/generated/google/apis/videointelligence_v1p3beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1p3beta1 VERSION = 'V1p3beta1' - REVISION = '20191028' + REVISION = '20191109' # 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/videointelligence_v1p3beta1/classes.rb b/generated/google/apis/videointelligence_v1p3beta1/classes.rb index 40b7978e1..419313c5f 100644 --- a/generated/google/apis/videointelligence_v1p3beta1/classes.rb +++ b/generated/google/apis/videointelligence_v1p3beta1/classes.rb @@ -3376,6 +3376,87 @@ module Google end end + # Celebrity definition. + class GoogleCloudVideointelligenceV1p3beta1Celebrity + include Google::Apis::Core::Hashable + + # Textual description of additional information about the celebrity, if + # applicable. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The celebrity name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the celebrity. Have the format + # `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. + # kg-mid is the id in Google knowledge graph, which is unique for the + # celebrity. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + + # Celebrity recognition annotation per video. + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + include Google::Apis::Core::Hashable + + # The tracks detected from the input video, including recognized celebrities + # and other detected faces in the video. + # Corresponds to the JSON property `celebrityTracks` + # @return [Array] + attr_accessor :celebrity_tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity_tracks = args[:celebrity_tracks] if args.key?(:celebrity_tracks) + end + end + + # The annotation result of a celebrity face track. RecognizedCelebrity field + # could be empty if the face track does not have any matched celebrities. + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + include Google::Apis::Core::Hashable + + # Top N match of the celebrities for the face in this track. + # Corresponds to the JSON property `celebrities` + # @return [Array] + attr_accessor :celebrities + + # A track of an object instance. + # Corresponds to the JSON property `faceTrack` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track] + attr_accessor :face_track + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrities = args[:celebrities] if args.key?(:celebrities) + @face_track = args[:face_track] if args.key?(:face_track) + end + end + # A generic detected attribute represented by name in string format. class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute include Google::Apis::Core::Hashable @@ -3893,6 +3974,31 @@ module Google end end + # The recognized celebrity with confidence score. + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + include Google::Apis::Core::Hashable + + # Celebrity definition. + # Corresponds to the JSON property `celebrity` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity] + attr_accessor :celebrity + + # Recognition confidence. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @celebrity = args[:celebrity] if args.key?(:celebrity) + @confidence = args[:confidence] if args.key?(:confidence) + end + end + # Config for SHOT_CHANGE_DETECTION. class GoogleCloudVideointelligenceV1p3beta1ShotChangeDetectionConfig include Google::Apis::Core::Hashable @@ -4448,6 +4554,11 @@ module Google class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults include Google::Apis::Core::Hashable + # Celebrity recognition annotation per video. + # Corresponds to the JSON property `celebrityRecognitionAnnotations` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation] + attr_accessor :celebrity_recognition_annotations + # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is # used by [gRPC](https://github.com/grpc). Each `Status` message contains @@ -4546,6 +4657,7 @@ module Google # Update properties of this object def update!(**args) + @celebrity_recognition_annotations = args[:celebrity_recognition_annotations] if args.key?(:celebrity_recognition_annotations) @error = args[:error] if args.key?(:error) @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) diff --git a/generated/google/apis/videointelligence_v1p3beta1/representations.rb b/generated/google/apis/videointelligence_v1p3beta1/representations.rb index 959f0d06e..ec1526433 100644 --- a/generated/google/apis/videointelligence_v1p3beta1/representations.rb +++ b/generated/google/apis/videointelligence_v1p3beta1/representations.rb @@ -568,6 +568,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1Celebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute class Representation < Google::Apis::Core::JsonRepresentation; end @@ -664,6 +682,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1ShotChangeDetectionConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1741,6 +1765,33 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1Celebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :celebrity_tracks, as: 'celebrityTracks', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack::Representation + + end + end + + class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :celebrities, as: 'celebrities', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity::Representation + + property :face_track, as: 'faceTrack', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1892,6 +1943,15 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity, as: 'celebrity', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity::Representation + + property :confidence, as: 'confidence' + end + end + class GoogleCloudVideointelligenceV1p3beta1ShotChangeDetectionConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2043,6 +2103,8 @@ module Google class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults # @private class Representation < Google::Apis::Core::JsonRepresentation + property :celebrity_recognition_annotations, as: 'celebrityRecognitionAnnotations', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation::Representation + property :error, as: 'error', class: Google::Apis::VideointelligenceV1p3beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleRpcStatus::Representation property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation::Representation