diff --git a/generated/google/apis/cloudiot_v1.rb b/generated/google/apis/cloudiot_v1.rb
index 5e566b5ec..1c0af0a9c 100644
--- a/generated/google/apis/cloudiot_v1.rb
+++ b/generated/google/apis/cloudiot_v1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/iot
module CloudiotV1
VERSION = 'V1'
- REVISION = '20190702'
+ REVISION = '20190709'
# 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/cloudiot_v1/classes.rb b/generated/google/apis/cloudiot_v1/classes.rb
index cc30cb72a..a840ac621 100644
--- a/generated/google/apis/cloudiot_v1/classes.rb
+++ b/generated/google/apis/cloudiot_v1/classes.rb
@@ -82,7 +82,7 @@ module Google
# * `allAuthenticatedUsers`: A special identifier that represents anyone
# who is authenticated with a Google account or a service account.
# * `user:`emailid``: An email address that represents a specific Google
- # account. For example, `alice@gmail.com` .
+ # account. For example, `alice@example.com` .
# * `serviceAccount:`emailid``: An email address that represents a service
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group.
@@ -845,7 +845,7 @@ module Google
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
- # policy is overwritten blindly.
+ # policy is overwritten.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb
index 2045e7373..8024aa6ff 100644
--- a/generated/google/apis/people_v1.rb
+++ b/generated/google/apis/people_v1.rb
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/people/
module PeopleV1
VERSION = 'V1'
- REVISION = '20190611'
+ REVISION = '20190716'
# See, edit, download, and permanently delete your contacts
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb
index 1351fab20..04b21815d 100644
--- a/generated/google/apis/people_v1/classes.rb
+++ b/generated/google/apis/people_v1/classes.rb
@@ -514,6 +514,29 @@ module Google
end
end
+ # The response for deleteing a contact's photo.
+ class DeleteContactPhotoResponse
+ include Google::Apis::Core::Hashable
+
+ # Information about a person merged from various data sources such as the
+ # authenticated user's contacts and profile data.
+ # Most fields can have multiple items. The items in a field have no guaranteed
+ # order, but each non-empty field is guaranteed to have exactly one field with
+ # `metadata.primary` set to true.
+ # Corresponds to the JSON property `person`
+ # @return [Google::Apis::PeopleV1::Person]
+ attr_accessor :person
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @person = args[:person] if args.key?(:person)
+ end
+ end
+
# A read-only G Suite Domain membership.
class DomainMembership
include Google::Apis::Core::Hashable
@@ -2101,6 +2124,88 @@ module Google
end
end
+ # A request to update an existing contact's photo.
+ # All requests must have a valid photo format: JPEG or PNG.
+ class UpdateContactPhotoRequest
+ include Google::Apis::Core::Hashable
+
+ # **Optional.** Not specifying any fields will skip the post mutate read.
+ # A field mask to restrict which fields on the person are
+ # returned. Multiple fields can be specified by separating them with commas.
+ # Valid values are:
+ # * addresses
+ # * ageRanges
+ # * biographies
+ # * birthdays
+ # * braggingRights
+ # * coverPhotos
+ # * emailAddresses
+ # * events
+ # * genders
+ # * imClients
+ # * interests
+ # * locales
+ # * memberships
+ # * metadata
+ # * names
+ # * nicknames
+ # * occupations
+ # * organizations
+ # * phoneNumbers
+ # * photos
+ # * relations
+ # * relationshipInterests
+ # * relationshipStatuses
+ # * residences
+ # * sipAddresses
+ # * skills
+ # * taglines
+ # * urls
+ # * userDefined
+ # Corresponds to the JSON property `personFields`
+ # @return [String]
+ attr_accessor :person_fields
+
+ # Raw photo bytes
+ # Corresponds to the JSON property `photoBytes`
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
+ # @return [String]
+ attr_accessor :photo_bytes
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @person_fields = args[:person_fields] if args.key?(:person_fields)
+ @photo_bytes = args[:photo_bytes] if args.key?(:photo_bytes)
+ end
+ end
+
+ # The response for updating a contact's photo.
+ class UpdateContactPhotoResponse
+ include Google::Apis::Core::Hashable
+
+ # Information about a person merged from various data sources such as the
+ # authenticated user's contacts and profile data.
+ # Most fields can have multiple items. The items in a field have no guaranteed
+ # order, but each non-empty field is guaranteed to have exactly one field with
+ # `metadata.primary` set to true.
+ # Corresponds to the JSON property `person`
+ # @return [Google::Apis::PeopleV1::Person]
+ attr_accessor :person
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @person = args[:person] if args.key?(:person)
+ end
+ end
+
# A person's associated URLs.
class Url
include Google::Apis::Core::Hashable
diff --git a/generated/google/apis/people_v1/representations.rb b/generated/google/apis/people_v1/representations.rb
index a7894d5cd..c736ad878 100644
--- a/generated/google/apis/people_v1/representations.rb
+++ b/generated/google/apis/people_v1/representations.rb
@@ -100,6 +100,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class DeleteContactPhotoResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class DomainMembership
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -310,6 +316,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class UpdateContactPhotoRequest
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class UpdateContactPhotoResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class Url
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -457,6 +475,14 @@ module Google
end
end
+ class DeleteContactPhotoResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :person, as: 'person', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
+
+ end
+ end
+
class DomainMembership
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -886,6 +912,22 @@ module Google
end
end
+ class UpdateContactPhotoRequest
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :person_fields, as: 'personFields'
+ property :photo_bytes, :base64 => true, as: 'photoBytes'
+ end
+ end
+
+ class UpdateContactPhotoResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :person, as: 'person', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
+
+ end
+ end
+
class Url
# @private
class Representation < Google::Apis::Core::JsonRepresentation
diff --git a/generated/google/apis/people_v1/service.rb b/generated/google/apis/people_v1/service.rb
index 2bcdb0011..ce3d47664 100644
--- a/generated/google/apis/people_v1/service.rb
+++ b/generated/google/apis/people_v1/service.rb
@@ -354,6 +354,71 @@ module Google
execute_or_queue_command(command, &block)
end
+ # Delete a contact's photo.
+ # @param [String] resource_name
+ # The resource name of the contact whose photo will be deleted.
+ # @param [String] person_fields
+ # **Optional.** Not specifying any fields will skip the post mutate read.
+ # A field mask to restrict which fields on the person are
+ # returned. Multiple fields can be specified by separating them with commas.
+ # Valid values are:
+ # * addresses
+ # * ageRanges
+ # * biographies
+ # * birthdays
+ # * braggingRights
+ # * coverPhotos
+ # * emailAddresses
+ # * events
+ # * genders
+ # * imClients
+ # * interests
+ # * locales
+ # * memberships
+ # * metadata
+ # * names
+ # * nicknames
+ # * occupations
+ # * organizations
+ # * phoneNumbers
+ # * photos
+ # * relations
+ # * relationshipInterests
+ # * relationshipStatuses
+ # * residences
+ # * sipAddresses
+ # * skills
+ # * taglines
+ # * urls
+ # * userDefined
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::PeopleV1::DeleteContactPhotoResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::PeopleV1::DeleteContactPhotoResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def delete_person_contact_photo(resource_name, person_fields: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'v1/{+resourceName}:deleteContactPhoto', options)
+ command.response_representation = Google::Apis::PeopleV1::DeleteContactPhotoResponse::Representation
+ command.response_class = Google::Apis::PeopleV1::DeleteContactPhotoResponse
+ command.params['resourceName'] = resource_name unless resource_name.nil?
+ command.query['personFields'] = person_fields unless person_fields.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Provides information about a person by specifying a resource name. Use
# `people/me` to indicate the authenticated user.
#
@@ -582,6 +647,39 @@ module Google
execute_or_queue_command(command, &block)
end
+ # Update a contact's photo.
+ # @param [String] resource_name
+ # Person resource name
+ # @param [Google::Apis::PeopleV1::UpdateContactPhotoRequest] update_contact_photo_request_object
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::PeopleV1::UpdateContactPhotoResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::PeopleV1::UpdateContactPhotoResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def update_person_contact_photo(resource_name, update_contact_photo_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:patch, 'v1/{+resourceName}:updateContactPhoto', options)
+ command.request_representation = Google::Apis::PeopleV1::UpdateContactPhotoRequest::Representation
+ command.request_object = update_contact_photo_request_object
+ command.response_representation = Google::Apis::PeopleV1::UpdateContactPhotoResponse::Representation
+ command.response_class = Google::Apis::PeopleV1::UpdateContactPhotoResponse
+ command.params['resourceName'] = resource_name unless resource_name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Provides a list of the authenticated user's contacts merged with any
# connected profiles.
#
diff --git a/generated/google/apis/translate_v3beta1.rb b/generated/google/apis/translate_v3beta1.rb
index 9130fda91..1eb475f9d 100644
--- a/generated/google/apis/translate_v3beta1.rb
+++ b/generated/google/apis/translate_v3beta1.rb
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/translate/docs/quickstarts
module TranslateV3beta1
VERSION = 'V3beta1'
- REVISION = '20190704'
+ REVISION = '20190713'
# 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/translate_v3beta1/service.rb b/generated/google/apis/translate_v3beta1/service.rb
index 969e4795c..777d579e4 100644
--- a/generated/google/apis/translate_v3beta1/service.rb
+++ b/generated/google/apis/translate_v3beta1/service.rb
@@ -49,9 +49,11 @@ module Google
# Detects the language of text within a request.
# @param [String] parent
- # Required. Location to make a regional or global call.
- # Format: `projects/`project-id`/locations/`location-id``.
- # For global calls, use `projects/`project-id`/locations/global`.
+ # Required. Target project or location to make a call.
+ # Format: `projects/`project-id`/locations/`location-id`` or
+ # `projects/`project-id``.
+ # For global calls, use `projects/`project-id`/locations/global` or
+ # `projects/`project-id``.
# Only models within the same region (has same location-id) can be used.
# Otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3beta1::DetectLanguageRequest] detect_language_request_object
@@ -86,9 +88,12 @@ module Google
# Returns a list of supported languages for translation.
# @param [String] parent
- # Required. Location to make a regional or global call.
- # Format: `projects/`project-id`/locations/`location-id``.
- # For global calls, use `projects/`project-id`/locations/global`.
+ # Required. Target project or location to make a call.
+ # Format: `projects/`project-id`` or
+ # `projects/`project-id`/locations/`location-id``.
+ # For global calls, use `projects/`project-id`/locations/global` or
+ # `projects/`project-id``.
+ # Non-global location is required for AutoML models.
# Only models within the same region (have same location-id) can be used,
# otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [String] display_language_code
@@ -136,9 +141,13 @@ module Google
# Translates input text and returns translated text.
# @param [String] parent
- # Required. Location to make a regional or global call.
- # Format: `projects/`project-id`/locations/`location-id``.
- # For global calls, use `projects/`project-id`/locations/global`.
+ # Required. Target project or location to make a call.
+ # Format: `projects/`project-id`` or
+ # `projects/`project-id`/locations/`location-id``.
+ # For global calls, use `projects/`project-id`/locations/global` or
+ # `projects/`project-id``.
+ # Non-global location is required for requests using AutoML models or
+ # custom glossaries.
# Models and glossaries must be within the same region (have same
# location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3beta1::TranslateTextRequest] translate_text_request_object
@@ -216,9 +225,11 @@ module Google
# Detects the language of text within a request.
# @param [String] parent
- # Required. Location to make a regional or global call.
- # Format: `projects/`project-id`/locations/`location-id``.
- # For global calls, use `projects/`project-id`/locations/global`.
+ # Required. Target project or location to make a call.
+ # Format: `projects/`project-id`/locations/`location-id`` or
+ # `projects/`project-id``.
+ # For global calls, use `projects/`project-id`/locations/global` or
+ # `projects/`project-id``.
# Only models within the same region (has same location-id) can be used.
# Otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3beta1::DetectLanguageRequest] detect_language_request_object
@@ -253,9 +264,12 @@ module Google
# Returns a list of supported languages for translation.
# @param [String] parent
- # Required. Location to make a regional or global call.
- # Format: `projects/`project-id`/locations/`location-id``.
- # For global calls, use `projects/`project-id`/locations/global`.
+ # Required. Target project or location to make a call.
+ # Format: `projects/`project-id`` or
+ # `projects/`project-id`/locations/`location-id``.
+ # For global calls, use `projects/`project-id`/locations/global` or
+ # `projects/`project-id``.
+ # Non-global location is required for AutoML models.
# Only models within the same region (have same location-id) can be used,
# otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [String] display_language_code
@@ -303,9 +317,13 @@ module Google
# Translates input text and returns translated text.
# @param [String] parent
- # Required. Location to make a regional or global call.
- # Format: `projects/`project-id`/locations/`location-id``.
- # For global calls, use `projects/`project-id`/locations/global`.
+ # Required. Target project or location to make a call.
+ # Format: `projects/`project-id`` or
+ # `projects/`project-id`/locations/`location-id``.
+ # For global calls, use `projects/`project-id`/locations/global` or
+ # `projects/`project-id``.
+ # Non-global location is required for requests using AutoML models or
+ # custom glossaries.
# Models and glossaries must be within the same region (have same
# location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3beta1::TranslateTextRequest] translate_text_request_object
diff --git a/generated/google/apis/videointelligence_v1.rb b/generated/google/apis/videointelligence_v1.rb
index 73fe91738..1f0d00930 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 = '20190709'
+ REVISION = '20190713'
# 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 2a00b02dc..c466512a2 100644
--- a/generated/google/apis/videointelligence_v1/classes.rb
+++ b/generated/google/apis/videointelligence_v1/classes.rb
@@ -1017,6 +1017,11 @@ module Google
# @return [Array]
attr_accessor :object_annotations
+ # Video segment.
+ # Corresponds to the JSON property `segment`
+ # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1VideoSegment]
+ attr_accessor :segment
+
# Topical label annotations on video level or user specified segment level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `segmentLabelAnnotations`
@@ -1057,6 +1062,7 @@ module Google
@frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations)
@input_uri = args[:input_uri] if args.key?(:input_uri)
@object_annotations = args[:object_annotations] if args.key?(:object_annotations)
+ @segment = args[:segment] if args.key?(:segment)
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
@shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
@@ -1858,6 +1864,11 @@ module Google
# @return [Array]
attr_accessor :object_annotations
+ # Video segment.
+ # Corresponds to the JSON property `segment`
+ # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2VideoSegment]
+ attr_accessor :segment
+
# Topical label annotations on video level or user specified segment level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `segmentLabelAnnotations`
@@ -1898,6 +1909,7 @@ module Google
@frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations)
@input_uri = args[:input_uri] if args.key?(:input_uri)
@object_annotations = args[:object_annotations] if args.key?(:object_annotations)
+ @segment = args[:segment] if args.key?(:segment)
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
@shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
@@ -2642,6 +2654,11 @@ module Google
# @return [Array]
attr_accessor :object_annotations
+ # Video segment.
+ # Corresponds to the JSON property `segment`
+ # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1VideoSegment]
+ attr_accessor :segment
+
# Topical label annotations on video level or user specified segment level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `segmentLabelAnnotations`
@@ -2682,6 +2699,7 @@ module Google
@frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations)
@input_uri = args[:input_uri] if args.key?(:input_uri)
@object_annotations = args[:object_annotations] if args.key?(:object_annotations)
+ @segment = args[:segment] if args.key?(:segment)
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
@shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
@@ -3426,6 +3444,11 @@ module Google
# @return [Array]
attr_accessor :object_annotations
+ # Video segment.
+ # Corresponds to the JSON property `segment`
+ # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1VideoSegment]
+ attr_accessor :segment
+
# Topical label annotations on video level or user specified segment level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `segmentLabelAnnotations`
@@ -3466,6 +3489,7 @@ module Google
@frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations)
@input_uri = args[:input_uri] if args.key?(:input_uri)
@object_annotations = args[:object_annotations] if args.key?(:object_annotations)
+ @segment = args[:segment] if args.key?(:segment)
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
@shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
@@ -4437,6 +4461,11 @@ module Google
# @return [Array]
attr_accessor :object_annotations
+ # Video segment.
+ # Corresponds to the JSON property `segment`
+ # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1VideoSegment]
+ attr_accessor :segment
+
# Topical label annotations on video level or user specified segment level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `segmentLabelAnnotations`
@@ -4478,6 +4507,7 @@ module Google
@input_uri = args[:input_uri] if args.key?(:input_uri)
@logo_recognition_annotations = args[:logo_recognition_annotations] if args.key?(:logo_recognition_annotations)
@object_annotations = args[:object_annotations] if args.key?(:object_annotations)
+ @segment = args[:segment] if args.key?(:segment)
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
@shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
diff --git a/generated/google/apis/videointelligence_v1/representations.rb b/generated/google/apis/videointelligence_v1/representations.rb
index 5aa27a76f..fdb8cd49d 100644
--- a/generated/google/apis/videointelligence_v1/representations.rb
+++ b/generated/google/apis/videointelligence_v1/representations.rb
@@ -1072,6 +1072,8 @@ module Google
property :input_uri, as: 'inputUri'
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1ObjectTrackingAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1ObjectTrackingAnnotation::Representation
+ property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1VideoSegment::Representation
+
collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1LabelAnnotation::Representation
collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1VideoSegment::Representation
@@ -1318,6 +1320,8 @@ module Google
property :input_uri, as: 'inputUri'
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation::Representation
+ property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2VideoSegment::Representation
+
collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2LabelAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2LabelAnnotation::Representation
collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2VideoSegment::Representation
@@ -1544,6 +1548,8 @@ module Google
property :input_uri, as: 'inputUri'
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation::Representation
+ property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation
+
collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation
collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation
@@ -1770,6 +1776,8 @@ module Google
property :input_uri, as: 'inputUri'
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation::Representation
+ property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1VideoSegment::Representation
+
collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation::Representation
collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1VideoSegment::Representation
@@ -2068,6 +2076,8 @@ module Google
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation::Representation
+ property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1VideoSegment::Representation
+
collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation::Representation
collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1VideoSegment::Representation