diff --git a/.repo-metadata-full.json b/.repo-metadata-full.json
index 49b3491111d7..e651c26bd990 100644
--- a/.repo-metadata-full.json
+++ b/.repo-metadata-full.json
@@ -1481,7 +1481,7 @@
"VideoTranscoder": {
"language": "php",
"distribution_name": "google/cloud-video-transcoder",
- "release_level": "preview",
+ "release_level": "stable",
"client_documentation": "https://cloud.google.com/php/docs/reference/cloud-video-transcoder/latest",
"library_type": "GAPIC_AUTO",
"api_shortname": "transcoder"
diff --git a/VideoTranscoder/.OwlBot.yaml b/VideoTranscoder/.OwlBot.yaml
index 740639ef1aa5..4da0a9bbfb5b 100644
--- a/VideoTranscoder/.OwlBot.yaml
+++ b/VideoTranscoder/.OwlBot.yaml
@@ -1,4 +1,4 @@
deep-copy-regex:
- - source: /google/cloud/video/transcoder/(v1|v1beta1)/.*-php/(.*)
+ - source: /google/cloud/video/transcoder/(v1)/.*-php/(.*)
dest: /owl-bot-staging/VideoTranscoder/$1/$2
api-name: VideoTranscoder
diff --git a/VideoTranscoder/README.md b/VideoTranscoder/README.md
index f665dfedc712..e4fbc0de1461 100644
--- a/VideoTranscoder/README.md
+++ b/VideoTranscoder/README.md
@@ -30,9 +30,8 @@ on authenticating your client. Once authenticated, you'll be ready to start maki
### Version
-This component is considered beta. As such, it should be expected to be mostly
-stable and we're working towards a release candidate. We will address issues
-and requests with a higher priority.
+This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in
+any minor or patch releases. We will address issues and requests with the highest priority.
### Next Steps
diff --git a/VideoTranscoder/metadata/V1Beta1/Resources.php b/VideoTranscoder/metadata/V1Beta1/Resources.php
deleted file mode 100644
index d66c56d64a9d..000000000000
Binary files a/VideoTranscoder/metadata/V1Beta1/Resources.php and /dev/null differ
diff --git a/VideoTranscoder/metadata/V1Beta1/Services.php b/VideoTranscoder/metadata/V1Beta1/Services.php
deleted file mode 100644
index 7df47caa0b09..000000000000
--- a/VideoTranscoder/metadata/V1Beta1/Services.php
+++ /dev/null
@@ -1,82 +0,0 @@
-internalAddGeneratedFile(
- '
-�
-4google/cloud/video/transcoder/v1beta1/services.proto%google.cloud.video.transcoder.v1beta1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto5google/cloud/video/transcoder/v1beta1/resources.protogoogle/protobuf/empty.proto"�
-CreateJobRequest9
-parent ( B)�A�A#
-!locations.googleapis.com/Location<
-job (2*.google.cloud.video.transcoder.v1beta1.JobB�A"s
-ListJobsRequest9
-parent ( B)�A�A#
-!locations.googleapis.com/Location
- page_size (
-
-page_token ( "D
-
GetJobRequest3
-name ( B%�A�A
-transcoder.googleapis.com/Job"G
-DeleteJobRequest3
-name ( B%�A�A
-transcoder.googleapis.com/Job"e
-ListJobsResponse8
-jobs (2*.google.cloud.video.transcoder.v1beta1.Job
-next_page_token ( "�
-CreateJobTemplateRequest9
-parent ( B)�A�A#
-!locations.googleapis.com/LocationM
-job_template (22.google.cloud.video.transcoder.v1beta1.JobTemplateB�A
-job_template_id ( B�A"{
-ListJobTemplatesRequest9
-parent ( B)�A�A#
-!locations.googleapis.com/Location
- page_size (
-
-page_token ( "T
-GetJobTemplateRequest;
-name ( B-�A�A\'
-%transcoder.googleapis.com/JobTemplate"W
-DeleteJobTemplateRequest;
-name ( B-�A�A\'
-%transcoder.googleapis.com/JobTemplate"~
-ListJobTemplatesResponseI
-
job_templates (22.google.cloud.video.transcoder.v1beta1.JobTemplate
-next_page_token ( 2�
-TranscoderService�
- CreateJob7.google.cloud.video.transcoder.v1beta1.CreateJobRequest*.google.cloud.video.transcoder.v1beta1.Job"G���4"-/v1beta1/{parent=projects/*/locations/*}/jobs:job�A
-parent,job�
-ListJobs6.google.cloud.video.transcoder.v1beta1.ListJobsRequest7.google.cloud.video.transcoder.v1beta1.ListJobsResponse">���/-/v1beta1/{parent=projects/*/locations/*}/jobs�Aparent�
-GetJob4.google.cloud.video.transcoder.v1beta1.GetJobRequest*.google.cloud.video.transcoder.v1beta1.Job"<���/-/v1beta1/{name=projects/*/locations/*/jobs/*}�Aname�
- DeleteJob7.google.cloud.video.transcoder.v1beta1.DeleteJobRequest.google.protobuf.Empty"<���/*-/v1beta1/{name=projects/*/locations/*/jobs/*}�Aname�
-CreateJobTemplate?.google.cloud.video.transcoder.v1beta1.CreateJobTemplateRequest2.google.cloud.video.transcoder.v1beta1.JobTemplate"q���E"5/v1beta1/{parent=projects/*/locations/*}/jobTemplates:job_template�A#parent,job_template,job_template_id�
-ListJobTemplates>.google.cloud.video.transcoder.v1beta1.ListJobTemplatesRequest?.google.cloud.video.transcoder.v1beta1.ListJobTemplatesResponse"F���75/v1beta1/{parent=projects/*/locations/*}/jobTemplates�Aparent�
-GetJobTemplate<.google.cloud.video.transcoder.v1beta1.GetJobTemplateRequest2.google.cloud.video.transcoder.v1beta1.JobTemplate"D���75/v1beta1/{name=projects/*/locations/*/jobTemplates/*}�Aname�
-DeleteJobTemplate?.google.cloud.video.transcoder.v1beta1.DeleteJobTemplateRequest.google.protobuf.Empty"D���7*5/v1beta1/{name=projects/*/locations/*/jobTemplates/*}�AnameP��Atranscoder.googleapis.com�A.https://www.googleapis.com/auth/cloud-platformB�
-)com.google.cloud.video.transcoder.v1beta1B
ServicesProtoPZOgoogle.golang.org/genproto/googleapis/cloud/video/transcoder/v1beta1;transcoderbproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/VideoTranscoder/owlbot.py b/VideoTranscoder/owlbot.py
index 859fb6a5c361..78e3067cec6e 100644
--- a/VideoTranscoder/owlbot.py
+++ b/VideoTranscoder/owlbot.py
@@ -1,4 +1,4 @@
-# Copyright 2021 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -30,13 +30,7 @@
# Added so that we can pass copy_excludes in the owlbot_main() call
_tracked_paths.add(src)
-php.owlbot_main(
- src=src,
- dest=dest,
- copy_excludes=[
- src / "**/[A-Z]*_*.php"
- ]
-)
+php.owlbot_main(src=src, dest=dest)
# remove class_alias code
s.replace(
@@ -47,29 +41,16 @@
+ "\n",
'')
-
-### [START] protoc backwards compatibility fixes
-
-# roll back to private properties.
-s.replace(
- "src/**/V*/**/*.php",
- r"Generated from protobuf field ([^\n]{0,})\n\s{5}\*/\n\s{4}protected \$",
- r"""Generated from protobuf field \1
- */
- private $""")
-
-# Replace "Unwrapped" with "Value" for method names.
-s.replace(
- "src/**/V*/**/*.php",
- r"public function ([s|g]\w{3,})Unwrapped",
- r"public function \1Value"
-)
-
-### [END] protoc backwards compatibility fixes
-
-# fix relative cloud.google.com links
-s.replace(
- "src/**/V*/**/*.php",
- r"(.{0,})\]\((/.{0,})\)",
- r"\1](https://cloud.google.com\2)"
-)
+# format generated clients
+subprocess.run([
+ 'npm',
+ 'exec',
+ '--yes',
+ '--package=@prettier/plugin-php@^0.16',
+ '--',
+ 'prettier',
+ '**/Client/*',
+ '--write',
+ '--parser=php',
+ '--single-quote',
+ '--print-width=120'])
diff --git a/VideoTranscoder/src/V1/AdBreak.php b/VideoTranscoder/src/V1/AdBreak.php
index 2ab24a54f172..9cadeb444fd8 100644
--- a/VideoTranscoder/src/V1/AdBreak.php
+++ b/VideoTranscoder/src/V1/AdBreak.php
@@ -21,7 +21,7 @@ class AdBreak extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.protobuf.Duration start_time_offset = 1;
*/
- private $start_time_offset = null;
+ protected $start_time_offset = null;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/AudioStream.php b/VideoTranscoder/src/V1/AudioStream.php
index c07a5db7b3ce..7cf6be6554b6 100644
--- a/VideoTranscoder/src/V1/AudioStream.php
+++ b/VideoTranscoder/src/V1/AudioStream.php
@@ -27,20 +27,20 @@ class AudioStream extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string codec = 1;
*/
- private $codec = '';
+ protected $codec = '';
/**
* Required. Audio bitrate in bits per second. Must be between 1 and
* 10,000,000.
*
* Generated from protobuf field int32 bitrate_bps = 2 [(.google.api.field_behavior) = REQUIRED];
*/
- private $bitrate_bps = 0;
+ protected $bitrate_bps = 0;
/**
* Number of audio channels. Must be between 1 and 6. The default is 2.
*
* Generated from protobuf field int32 channel_count = 3;
*/
- private $channel_count = 0;
+ protected $channel_count = 0;
/**
* A list of channel names specifying layout of the audio channels.
* This only affects the metadata embedded in the container headers, if
@@ -67,7 +67,7 @@ class AudioStream extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 sample_rate_hertz = 6;
*/
- private $sample_rate_hertz = 0;
+ protected $sample_rate_hertz = 0;
/**
* The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
* information, see
@@ -76,14 +76,14 @@ class AudioStream extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string language_code = 7;
*/
- private $language_code = '';
+ protected $language_code = '';
/**
* The name for this particular audio stream that
* will be added to the HLS/DASH manifest. Not supported in MP4 files.
*
* Generated from protobuf field string display_name = 8;
*/
- private $display_name = '';
+ protected $display_name = '';
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/AudioStream/AudioMapping.php b/VideoTranscoder/src/V1/AudioStream/AudioMapping.php
index 1f281788322d..217f042283b1 100644
--- a/VideoTranscoder/src/V1/AudioStream/AudioMapping.php
+++ b/VideoTranscoder/src/V1/AudioStream/AudioMapping.php
@@ -21,38 +21,38 @@ class AudioMapping extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string atom_key = 1 [(.google.api.field_behavior) = REQUIRED];
*/
- private $atom_key = '';
+ protected $atom_key = '';
/**
* Required. The `Input.key` that identifies the input file.
*
* Generated from protobuf field string input_key = 2 [(.google.api.field_behavior) = REQUIRED];
*/
- private $input_key = '';
+ protected $input_key = '';
/**
* Required. The zero-based index of the track in the input file.
*
* Generated from protobuf field int32 input_track = 3 [(.google.api.field_behavior) = REQUIRED];
*/
- private $input_track = 0;
+ protected $input_track = 0;
/**
* Required. The zero-based index of the channel in the input audio stream.
*
* Generated from protobuf field int32 input_channel = 4 [(.google.api.field_behavior) = REQUIRED];
*/
- private $input_channel = 0;
+ protected $input_channel = 0;
/**
* Required. The zero-based index of the channel in the output audio stream.
*
* Generated from protobuf field int32 output_channel = 5 [(.google.api.field_behavior) = REQUIRED];
*/
- private $output_channel = 0;
+ protected $output_channel = 0;
/**
* Audio volume control in dB. Negative values decrease volume,
* positive values increase. The default is 0.
*
* Generated from protobuf field double gain_db = 6;
*/
- private $gain_db = 0.0;
+ protected $gain_db = 0.0;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/Client/TranscoderServiceClient.php b/VideoTranscoder/src/V1/Client/TranscoderServiceClient.php
index c97f5e6d6299..92e40fb9dd7b 100644
--- a/VideoTranscoder/src/V1/Client/TranscoderServiceClient.php
+++ b/VideoTranscoder/src/V1/Client/TranscoderServiceClient.php
@@ -1,6 +1,6 @@
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
- private $parent = '';
+ protected $parent = '';
/**
* Required. Parameters for creating transcoding job.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];
*/
- private $job = null;
+ protected $job = null;
/**
* @param string $parent Required. The parent location to create and process this job.
diff --git a/VideoTranscoder/src/V1/CreateJobTemplateRequest.php b/VideoTranscoder/src/V1/CreateJobTemplateRequest.php
index 1676eac5c0c7..2259a64b8917 100644
--- a/VideoTranscoder/src/V1/CreateJobTemplateRequest.php
+++ b/VideoTranscoder/src/V1/CreateJobTemplateRequest.php
@@ -21,13 +21,13 @@ class CreateJobTemplateRequest extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
- private $parent = '';
+ protected $parent = '';
/**
* Required. Parameters for creating job template.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.JobTemplate job_template = 2 [(.google.api.field_behavior) = REQUIRED];
*/
- private $job_template = null;
+ protected $job_template = null;
/**
* Required. The ID to use for the job template, which will become the final
* component of the job template's resource name.
@@ -36,7 +36,7 @@ class CreateJobTemplateRequest extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string job_template_id = 3 [(.google.api.field_behavior) = REQUIRED];
*/
- private $job_template_id = '';
+ protected $job_template_id = '';
/**
* @param string $parent Required. The parent location to create this job template.
diff --git a/VideoTranscoder/src/V1/DeleteJobRequest.php b/VideoTranscoder/src/V1/DeleteJobRequest.php
index 1602e061a1ea..56bf79ae59c4 100644
--- a/VideoTranscoder/src/V1/DeleteJobRequest.php
+++ b/VideoTranscoder/src/V1/DeleteJobRequest.php
@@ -21,14 +21,14 @@ class DeleteJobRequest extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
- private $name = '';
+ protected $name = '';
/**
* If set to true, and the job is not found, the request will succeed but no
* action will be taken on the server.
*
* Generated from protobuf field bool allow_missing = 2;
*/
- private $allow_missing = false;
+ protected $allow_missing = false;
/**
* @param string $name Required. The name of the job to delete.
diff --git a/VideoTranscoder/src/V1/DeleteJobTemplateRequest.php b/VideoTranscoder/src/V1/DeleteJobTemplateRequest.php
index f73cfa6d8021..a7db529776b4 100644
--- a/VideoTranscoder/src/V1/DeleteJobTemplateRequest.php
+++ b/VideoTranscoder/src/V1/DeleteJobTemplateRequest.php
@@ -21,14 +21,14 @@ class DeleteJobTemplateRequest extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
- private $name = '';
+ protected $name = '';
/**
* If set to true, and the job template is not found, the request will succeed
* but no action will be taken on the server.
*
* Generated from protobuf field bool allow_missing = 2;
*/
- private $allow_missing = false;
+ protected $allow_missing = false;
/**
* @param string $name Required. The name of the job template to delete.
diff --git a/VideoTranscoder/src/V1/EditAtom.php b/VideoTranscoder/src/V1/EditAtom.php
index e1d9cbb1679e..42921c0de759 100644
--- a/VideoTranscoder/src/V1/EditAtom.php
+++ b/VideoTranscoder/src/V1/EditAtom.php
@@ -21,7 +21,7 @@ class EditAtom extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string key = 1;
*/
- private $key = '';
+ protected $key = '';
/**
* List of `Input.key`s identifying files that should be used in this atom.
* The listed `inputs` must have the same timeline.
@@ -36,14 +36,14 @@ class EditAtom extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.protobuf.Duration end_time_offset = 3;
*/
- private $end_time_offset = null;
+ protected $end_time_offset = null;
/**
* Start time in seconds for the atom, relative to the input file timeline.
* The default is `0s`.
*
* Generated from protobuf field .google.protobuf.Duration start_time_offset = 4;
*/
- private $start_time_offset = null;
+ protected $start_time_offset = null;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/ElementaryStream.php b/VideoTranscoder/src/V1/ElementaryStream.php
index 188e44d2dda6..6660485d8e24 100644
--- a/VideoTranscoder/src/V1/ElementaryStream.php
+++ b/VideoTranscoder/src/V1/ElementaryStream.php
@@ -22,7 +22,7 @@ class ElementaryStream extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string key = 4;
*/
- private $key = '';
+ protected $key = '';
protected $elementary_stream;
/**
diff --git a/VideoTranscoder/src/V1/Encryption.php b/VideoTranscoder/src/V1/Encryption.php
index 9834889fc69c..a9d3c1ca80e5 100644
--- a/VideoTranscoder/src/V1/Encryption.php
+++ b/VideoTranscoder/src/V1/Encryption.php
@@ -20,14 +20,14 @@ class Encryption extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string id = 6 [(.google.api.field_behavior) = REQUIRED];
*/
- private $id = '';
+ protected $id = '';
/**
* Required. DRM system(s) to use; at least one must be specified. If a
* DRM system is omitted, it is considered disabled.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED];
*/
- private $drm_systems = null;
+ protected $drm_systems = null;
protected $encryption_mode;
protected $secret_source;
diff --git a/VideoTranscoder/src/V1/Encryption/DrmSystems.php b/VideoTranscoder/src/V1/Encryption/DrmSystems.php
index bee5411e504a..62d8da0fc05e 100644
--- a/VideoTranscoder/src/V1/Encryption/DrmSystems.php
+++ b/VideoTranscoder/src/V1/Encryption/DrmSystems.php
@@ -20,25 +20,25 @@ class DrmSystems extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1;
*/
- private $widevine = null;
+ protected $widevine = null;
/**
* Fairplay configuration.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2;
*/
- private $fairplay = null;
+ protected $fairplay = null;
/**
* Playready configuration.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3;
*/
- private $playready = null;
+ protected $playready = null;
/**
* Clearkey configuration.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4;
*/
- private $clearkey = null;
+ protected $clearkey = null;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/Encryption/MpegCommonEncryption.php b/VideoTranscoder/src/V1/Encryption/MpegCommonEncryption.php
index 1aaf4c15ee35..9153d6466a31 100644
--- a/VideoTranscoder/src/V1/Encryption/MpegCommonEncryption.php
+++ b/VideoTranscoder/src/V1/Encryption/MpegCommonEncryption.php
@@ -23,7 +23,7 @@ class MpegCommonEncryption extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string scheme = 2 [(.google.api.field_behavior) = REQUIRED];
*/
- private $scheme = '';
+ protected $scheme = '';
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/Encryption/SecretManagerSource.php b/VideoTranscoder/src/V1/Encryption/SecretManagerSource.php
index 1b077c83cb48..8702b90b31de 100644
--- a/VideoTranscoder/src/V1/Encryption/SecretManagerSource.php
+++ b/VideoTranscoder/src/V1/Encryption/SecretManagerSource.php
@@ -24,7 +24,7 @@ class SecretManagerSource extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string secret_version = 1 [(.google.api.field_behavior) = REQUIRED];
*/
- private $secret_version = '';
+ protected $secret_version = '';
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/Gapic/TranscoderServiceGapicClient.php b/VideoTranscoder/src/V1/Gapic/TranscoderServiceGapicClient.php
deleted file mode 100644
index 3ab7f1c345a5..000000000000
--- a/VideoTranscoder/src/V1/Gapic/TranscoderServiceGapicClient.php
+++ /dev/null
@@ -1,760 +0,0 @@
-locationName('[PROJECT]', '[LOCATION]');
- * $job = new Job();
- * $response = $transcoderServiceClient->createJob($formattedParent, $job);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * Many parameters require resource names to be formatted in a particular way. To
- * assist with these names, this class includes a format method for each type of
- * name, and additionally a parseName method to extract the individual identifiers
- * contained within formatted names that are returned by the API.
- *
- * @deprecated Please use the new service client {@see \Google\Cloud\Video\Transcoder\V1\Client\TranscoderServiceClient}.
- */
-class TranscoderServiceGapicClient
-{
- use GapicClientTrait;
-
- /** The name of the service. */
- const SERVICE_NAME = 'google.cloud.video.transcoder.v1.TranscoderService';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- const SERVICE_ADDRESS = 'transcoder.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'transcoder.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- ];
-
- private static $jobNameTemplate;
-
- private static $jobTemplateNameTemplate;
-
- private static $locationNameTemplate;
-
- private static $pathTemplateMap;
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/transcoder_service_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/transcoder_service_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/transcoder_service_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/transcoder_service_rest_client_config.php',
- ],
- ],
- ];
- }
-
- private static function getJobNameTemplate()
- {
- if (self::$jobNameTemplate == null) {
- self::$jobNameTemplate = new PathTemplate('projects/{project}/locations/{location}/jobs/{job}');
- }
-
- return self::$jobNameTemplate;
- }
-
- private static function getJobTemplateNameTemplate()
- {
- if (self::$jobTemplateNameTemplate == null) {
- self::$jobTemplateNameTemplate = new PathTemplate('projects/{project}/locations/{location}/jobTemplates/{job_template}');
- }
-
- return self::$jobTemplateNameTemplate;
- }
-
- private static function getLocationNameTemplate()
- {
- if (self::$locationNameTemplate == null) {
- self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}');
- }
-
- return self::$locationNameTemplate;
- }
-
- private static function getPathTemplateMap()
- {
- if (self::$pathTemplateMap == null) {
- self::$pathTemplateMap = [
- 'job' => self::getJobNameTemplate(),
- 'jobTemplate' => self::getJobTemplateNameTemplate(),
- 'location' => self::getLocationNameTemplate(),
- ];
- }
-
- return self::$pathTemplateMap;
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a job
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $job
- *
- * @return string The formatted job resource.
- */
- public static function jobName($project, $location, $job)
- {
- return self::getJobNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'job' => $job,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a job_template
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $jobTemplate
- *
- * @return string The formatted job_template resource.
- */
- public static function jobTemplateName($project, $location, $jobTemplate)
- {
- return self::getJobTemplateNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'job_template' => $jobTemplate,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a location
- * resource.
- *
- * @param string $project
- * @param string $location
- *
- * @return string The formatted location resource.
- */
- public static function locationName($project, $location)
- {
- return self::getLocationNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- ]);
- }
-
- /**
- * Parses a formatted name string and returns an associative array of the components in the name.
- * The following name formats are supported:
- * Template: Pattern
- * - job: projects/{project}/locations/{location}/jobs/{job}
- * - jobTemplate: projects/{project}/locations/{location}/jobTemplates/{job_template}
- * - location: projects/{project}/locations/{location}
- *
- * The optional $template argument can be supplied to specify a particular pattern,
- * and must match one of the templates listed above. If no $template argument is
- * provided, or if the $template argument does not match one of the templates
- * listed, then parseName will check each of the supported templates, and return
- * the first match.
- *
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
- *
- * @return array An associative array from name component IDs to component values.
- *
- * @throws ValidationException If $formattedName could not be matched.
- */
- public static function parseName($formattedName, $template = null)
- {
- $templateMap = self::getPathTemplateMap();
- if ($template) {
- if (!isset($templateMap[$template])) {
- throw new ValidationException("Template name $template does not exist");
- }
-
- return $templateMap[$template]->match($formattedName);
- }
-
- foreach ($templateMap as $templateName => $pathTemplate) {
- try {
- return $pathTemplate->match($formattedName);
- } catch (ValidationException $ex) {
- // Swallow the exception to continue trying other path templates
- }
- }
-
- throw new ValidationException("Input did not match any known format. Input: $formattedName");
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'transcoder.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- }
-
- /**
- * Creates a job in the specified region.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedParent = $transcoderServiceClient->locationName('[PROJECT]', '[LOCATION]');
- * $job = new Job();
- * $response = $transcoderServiceClient->createJob($formattedParent, $job);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent location to create and process this job.
- * Format: `projects/{project}/locations/{location}`
- * @param Job $job Required. Parameters for creating transcoding job.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Video\Transcoder\V1\Job
- *
- * @throws ApiException if the remote call fails
- */
- public function createJob($parent, $job, array $optionalArgs = [])
- {
- $request = new CreateJobRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setJob($job);
- $requestParamHeaders['parent'] = $parent;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('CreateJob', Job::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Creates a job template in the specified region.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedParent = $transcoderServiceClient->locationName('[PROJECT]', '[LOCATION]');
- * $jobTemplate = new JobTemplate();
- * $jobTemplateId = 'job_template_id';
- * $response = $transcoderServiceClient->createJobTemplate($formattedParent, $jobTemplate, $jobTemplateId);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent location to create this job template.
- * Format: `projects/{project}/locations/{location}`
- * @param JobTemplate $jobTemplate Required. Parameters for creating job template.
- * @param string $jobTemplateId Required. The ID to use for the job template, which will become the final
- * component of the job template's resource name.
- *
- * This value should be 4-63 characters, and valid characters must match the
- * regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Video\Transcoder\V1\JobTemplate
- *
- * @throws ApiException if the remote call fails
- */
- public function createJobTemplate($parent, $jobTemplate, $jobTemplateId, array $optionalArgs = [])
- {
- $request = new CreateJobTemplateRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setJobTemplate($jobTemplate);
- $request->setJobTemplateId($jobTemplateId);
- $requestParamHeaders['parent'] = $parent;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('CreateJobTemplate', JobTemplate::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Deletes a job.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedName = $transcoderServiceClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- * $transcoderServiceClient->deleteJob($formattedName);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the job to delete.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type bool $allowMissing
- * If set to true, and the job is not found, the request will succeed but no
- * action will be taken on the server.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @throws ApiException if the remote call fails
- */
- public function deleteJob($name, array $optionalArgs = [])
- {
- $request = new DeleteJobRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['allowMissing'])) {
- $request->setAllowMissing($optionalArgs['allowMissing']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('DeleteJob', GPBEmpty::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Deletes a job template.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedName = $transcoderServiceClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- * $transcoderServiceClient->deleteJobTemplate($formattedName);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the job template to delete.
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type bool $allowMissing
- * If set to true, and the job template is not found, the request will succeed
- * but no action will be taken on the server.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @throws ApiException if the remote call fails
- */
- public function deleteJobTemplate($name, array $optionalArgs = [])
- {
- $request = new DeleteJobTemplateRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['allowMissing'])) {
- $request->setAllowMissing($optionalArgs['allowMissing']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('DeleteJobTemplate', GPBEmpty::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Returns the job data.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedName = $transcoderServiceClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- * $response = $transcoderServiceClient->getJob($formattedName);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the job to retrieve.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Video\Transcoder\V1\Job
- *
- * @throws ApiException if the remote call fails
- */
- public function getJob($name, array $optionalArgs = [])
- {
- $request = new GetJobRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetJob', Job::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Returns the job template data.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedName = $transcoderServiceClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- * $response = $transcoderServiceClient->getJobTemplate($formattedName);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the job template to retrieve.
- * Format:
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Video\Transcoder\V1\JobTemplate
- *
- * @throws ApiException if the remote call fails
- */
- public function getJobTemplate($name, array $optionalArgs = [])
- {
- $request = new GetJobTemplateRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetJobTemplate', JobTemplate::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Lists job templates in the specified region.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedParent = $transcoderServiceClient->locationName('[PROJECT]', '[LOCATION]');
- * // Iterate over pages of elements
- * $pagedResponse = $transcoderServiceClient->listJobTemplates($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $transcoderServiceClient->listJobTemplates($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent location from which to retrieve the collection of job
- * templates. Format: `projects/{project}/locations/{location}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type int $pageSize
- * The maximum number of resources contained in the underlying API
- * response. The API may return fewer values in a page, even if
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type string $filter
- * The filter expression, following the syntax outlined in
- * https://google.aip.dev/160.
- * @type string $orderBy
- * One or more fields to compare and use to sort the output.
- * See https://google.aip.dev/132#ordering.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listJobTemplates($parent, array $optionalArgs = [])
- {
- $request = new ListJobTemplatesRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['orderBy'])) {
- $request->setOrderBy($optionalArgs['orderBy']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListJobTemplates', $optionalArgs, ListJobTemplatesResponse::class, $request);
- }
-
- /**
- * Lists jobs in the specified region.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedParent = $transcoderServiceClient->locationName('[PROJECT]', '[LOCATION]');
- * // Iterate over pages of elements
- * $pagedResponse = $transcoderServiceClient->listJobs($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $transcoderServiceClient->listJobs($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $parent Required. Format: `projects/{project}/locations/{location}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type int $pageSize
- * The maximum number of resources contained in the underlying API
- * response. The API may return fewer values in a page, even if
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type string $filter
- * The filter expression, following the syntax outlined in
- * https://google.aip.dev/160.
- * @type string $orderBy
- * One or more fields to compare and use to sort the output.
- * See https://google.aip.dev/132#ordering.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listJobs($parent, array $optionalArgs = [])
- {
- $request = new ListJobsRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['orderBy'])) {
- $request->setOrderBy($optionalArgs['orderBy']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListJobs', $optionalArgs, ListJobsResponse::class, $request);
- }
-}
diff --git a/VideoTranscoder/src/V1/GetJobRequest.php b/VideoTranscoder/src/V1/GetJobRequest.php
index 215587d12147..d84bf513d425 100644
--- a/VideoTranscoder/src/V1/GetJobRequest.php
+++ b/VideoTranscoder/src/V1/GetJobRequest.php
@@ -21,7 +21,7 @@ class GetJobRequest extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
- private $name = '';
+ protected $name = '';
/**
* @param string $name Required. The name of the job to retrieve.
diff --git a/VideoTranscoder/src/V1/GetJobTemplateRequest.php b/VideoTranscoder/src/V1/GetJobTemplateRequest.php
index ea6d0765a69e..e9a034eaf217 100644
--- a/VideoTranscoder/src/V1/GetJobTemplateRequest.php
+++ b/VideoTranscoder/src/V1/GetJobTemplateRequest.php
@@ -22,7 +22,7 @@ class GetJobTemplateRequest extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
- private $name = '';
+ protected $name = '';
/**
* @param string $name Required. The name of the job template to retrieve.
diff --git a/VideoTranscoder/src/V1/Input.php b/VideoTranscoder/src/V1/Input.php
index 9c7b095164b5..3c19c7ccc6a5 100644
--- a/VideoTranscoder/src/V1/Input.php
+++ b/VideoTranscoder/src/V1/Input.php
@@ -21,7 +21,7 @@ class Input extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string key = 1;
*/
- private $key = '';
+ protected $key = '';
/**
* URI of the media. Input files must be at least 5 seconds in duration and
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
@@ -31,13 +31,13 @@ class Input extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string uri = 2;
*/
- private $uri = '';
+ protected $uri = '';
/**
* Preprocessing configurations.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.PreprocessingConfig preprocessing_config = 3;
*/
- private $preprocessing_config = null;
+ protected $preprocessing_config = null;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/Job.php b/VideoTranscoder/src/V1/Job.php
index f34c9eee4c94..b4d69eee8832 100644
--- a/VideoTranscoder/src/V1/Job.php
+++ b/VideoTranscoder/src/V1/Job.php
@@ -21,7 +21,7 @@ class Job extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string name = 1;
*/
- private $name = '';
+ protected $name = '';
/**
* Input only. Specify the `input_uri` to populate empty `uri` fields in each
* element of `Job.config.inputs` or `JobTemplate.config.inputs` when using
@@ -32,7 +32,7 @@ class Job extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY];
*/
- private $input_uri = '';
+ protected $input_uri = '';
/**
* Input only. Specify the `output_uri` to populate an empty
* `Job.config.output.uri` or `JobTemplate.config.output.uri` when using
@@ -42,31 +42,31 @@ class Job extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string output_uri = 3 [(.google.api.field_behavior) = INPUT_ONLY];
*/
- private $output_uri = '';
+ protected $output_uri = '';
/**
* Output only. The current state of the job.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Job.ProcessingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
- private $state = 0;
+ protected $state = 0;
/**
* Output only. The time the job was created.
*
* Generated from protobuf field .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
- private $create_time = null;
+ protected $create_time = null;
/**
* Output only. The time the transcoding started.
*
* Generated from protobuf field .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
- private $start_time = null;
+ protected $start_time = null;
/**
* Output only. The time the transcoding finished.
*
* Generated from protobuf field .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
- private $end_time = null;
+ protected $end_time = null;
/**
* Job time to live value in days, which will be effective after job
* completion. Job should be deleted automatically after the given TTL. Enter
@@ -74,7 +74,7 @@ class Job extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 ttl_after_completion_days = 15;
*/
- private $ttl_after_completion_days = 0;
+ protected $ttl_after_completion_days = 0;
/**
* The labels associated with this job. You can use these to organize and
* group your jobs.
@@ -88,14 +88,14 @@ class Job extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
- private $error = null;
+ protected $error = null;
/**
* The processing mode of the job.
* The default is `PROCESSING_MODE_INTERACTIVE`.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Job.ProcessingMode mode = 20;
*/
- private $mode = 0;
+ protected $mode = 0;
/**
* The processing priority of a batch job.
* This field can only be set for batch mode jobs. The default value is 0.
@@ -104,14 +104,14 @@ class Job extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 batch_mode_priority = 21;
*/
- private $batch_mode_priority = 0;
+ protected $batch_mode_priority = 0;
/**
* Optional. The optimization strategy of the job. The default is
* `AUTODETECT`.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL];
*/
- private $optimization = 0;
+ protected $optimization = 0;
protected $job_config;
/**
diff --git a/VideoTranscoder/src/V1/JobConfig.php b/VideoTranscoder/src/V1/JobConfig.php
index 9739c4473c2c..70d6c9f15aa5 100644
--- a/VideoTranscoder/src/V1/JobConfig.php
+++ b/VideoTranscoder/src/V1/JobConfig.php
@@ -51,7 +51,7 @@ class JobConfig extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Output output = 6;
*/
- private $output = null;
+ protected $output = null;
/**
* List of ad breaks. Specifies where to insert ad break tags in the output
* manifests.
@@ -64,7 +64,7 @@ class JobConfig extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.PubsubDestination pubsub_destination = 8;
*/
- private $pubsub_destination = null;
+ protected $pubsub_destination = null;
/**
* List of output sprite sheets.
* Spritesheets require at least one VideoStream in the Jobconfig.
diff --git a/VideoTranscoder/src/V1/JobTemplate.php b/VideoTranscoder/src/V1/JobTemplate.php
index ca90b5ce1737..1cf56319089e 100644
--- a/VideoTranscoder/src/V1/JobTemplate.php
+++ b/VideoTranscoder/src/V1/JobTemplate.php
@@ -22,13 +22,13 @@ class JobTemplate extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string name = 1;
*/
- private $name = '';
+ protected $name = '';
/**
* The configuration for this template.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.JobConfig config = 2;
*/
- private $config = null;
+ protected $config = null;
/**
* The labels associated with this job template. You can use these to organize
* and group your job templates.
diff --git a/VideoTranscoder/src/V1/ListJobTemplatesRequest.php b/VideoTranscoder/src/V1/ListJobTemplatesRequest.php
index 50c1cf3efe33..9a3f102490be 100644
--- a/VideoTranscoder/src/V1/ListJobTemplatesRequest.php
+++ b/VideoTranscoder/src/V1/ListJobTemplatesRequest.php
@@ -21,34 +21,34 @@ class ListJobTemplatesRequest extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
- private $parent = '';
+ protected $parent = '';
/**
* The maximum number of items to return.
*
* Generated from protobuf field int32 page_size = 2;
*/
- private $page_size = 0;
+ protected $page_size = 0;
/**
* The `next_page_token` value returned from a previous List request, if
* any.
*
* Generated from protobuf field string page_token = 3;
*/
- private $page_token = '';
+ protected $page_token = '';
/**
* The filter expression, following the syntax outlined in
* https://google.aip.dev/160.
*
* Generated from protobuf field string filter = 4;
*/
- private $filter = '';
+ protected $filter = '';
/**
* One or more fields to compare and use to sort the output.
* See https://google.aip.dev/132#ordering.
*
* Generated from protobuf field string order_by = 5;
*/
- private $order_by = '';
+ protected $order_by = '';
/**
* @param string $parent Required. The parent location from which to retrieve the collection of job
diff --git a/VideoTranscoder/src/V1/ListJobTemplatesResponse.php b/VideoTranscoder/src/V1/ListJobTemplatesResponse.php
index 0c17408ca05e..3162f2362bd5 100644
--- a/VideoTranscoder/src/V1/ListJobTemplatesResponse.php
+++ b/VideoTranscoder/src/V1/ListJobTemplatesResponse.php
@@ -26,7 +26,7 @@ class ListJobTemplatesResponse extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string next_page_token = 2;
*/
- private $next_page_token = '';
+ protected $next_page_token = '';
/**
* List of regions that could not be reached.
*
diff --git a/VideoTranscoder/src/V1/ListJobsRequest.php b/VideoTranscoder/src/V1/ListJobsRequest.php
index 7911664a0f21..62bf0d1d56a7 100644
--- a/VideoTranscoder/src/V1/ListJobsRequest.php
+++ b/VideoTranscoder/src/V1/ListJobsRequest.php
@@ -21,34 +21,34 @@ class ListJobsRequest extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
- private $parent = '';
+ protected $parent = '';
/**
* The maximum number of items to return.
*
* Generated from protobuf field int32 page_size = 2;
*/
- private $page_size = 0;
+ protected $page_size = 0;
/**
* The `next_page_token` value returned from a previous List request, if
* any.
*
* Generated from protobuf field string page_token = 3;
*/
- private $page_token = '';
+ protected $page_token = '';
/**
* The filter expression, following the syntax outlined in
* https://google.aip.dev/160.
*
* Generated from protobuf field string filter = 4;
*/
- private $filter = '';
+ protected $filter = '';
/**
* One or more fields to compare and use to sort the output.
* See https://google.aip.dev/132#ordering.
*
* Generated from protobuf field string order_by = 5;
*/
- private $order_by = '';
+ protected $order_by = '';
/**
* @param string $parent Required. Format: `projects/{project}/locations/{location}`
diff --git a/VideoTranscoder/src/V1/ListJobsResponse.php b/VideoTranscoder/src/V1/ListJobsResponse.php
index 9ab1ce66ce56..0049a9825e28 100644
--- a/VideoTranscoder/src/V1/ListJobsResponse.php
+++ b/VideoTranscoder/src/V1/ListJobsResponse.php
@@ -26,7 +26,7 @@ class ListJobsResponse extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string next_page_token = 2;
*/
- private $next_page_token = '';
+ protected $next_page_token = '';
/**
* List of regions that could not be reached.
*
diff --git a/VideoTranscoder/src/V1/Manifest.php b/VideoTranscoder/src/V1/Manifest.php
index d95eefc4ffdc..875edbe8fd45 100644
--- a/VideoTranscoder/src/V1/Manifest.php
+++ b/VideoTranscoder/src/V1/Manifest.php
@@ -21,13 +21,13 @@ class Manifest extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string file_name = 1;
*/
- private $file_name = '';
+ protected $file_name = '';
/**
* Required. Type of the manifest.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Manifest.ManifestType type = 2 [(.google.api.field_behavior) = REQUIRED];
*/
- private $type = 0;
+ protected $type = 0;
/**
* Required. List of user given `MuxStream.key`s that should appear in this
* manifest.
diff --git a/VideoTranscoder/src/V1/Manifest/DashConfig.php b/VideoTranscoder/src/V1/Manifest/DashConfig.php
index 4f0005cebb8d..17754c1ae37f 100644
--- a/VideoTranscoder/src/V1/Manifest/DashConfig.php
+++ b/VideoTranscoder/src/V1/Manifest/DashConfig.php
@@ -21,7 +21,7 @@ class DashConfig extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme segment_reference_scheme = 1;
*/
- private $segment_reference_scheme = 0;
+ protected $segment_reference_scheme = 0;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/MuxStream.php b/VideoTranscoder/src/V1/MuxStream.php
index dac81d4217a3..fbd5e7f4e19d 100644
--- a/VideoTranscoder/src/V1/MuxStream.php
+++ b/VideoTranscoder/src/V1/MuxStream.php
@@ -21,7 +21,7 @@ class MuxStream extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string key = 1;
*/
- private $key = '';
+ protected $key = '';
/**
* The name of the generated file. The default is `MuxStream.key` with the
* extension suffix corresponding to the `MuxStream.container`.
@@ -30,7 +30,7 @@ class MuxStream extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string file_name = 2;
*/
- private $file_name = '';
+ protected $file_name = '';
/**
* The container format. The default is `mp4`
* Supported container formats:
@@ -44,7 +44,7 @@ class MuxStream extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string container = 3;
*/
- private $container = '';
+ protected $container = '';
/**
* List of `ElementaryStream.key`s multiplexed in this stream.
*
@@ -56,14 +56,14 @@ class MuxStream extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.SegmentSettings segment_settings = 5;
*/
- private $segment_settings = null;
+ protected $segment_settings = null;
/**
* Identifier of the encryption configuration to use. If omitted, output will
* be unencrypted.
*
* Generated from protobuf field string encryption_id = 7;
*/
- private $encryption_id = '';
+ protected $encryption_id = '';
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/Output.php b/VideoTranscoder/src/V1/Output.php
index e4b5e8eab098..e3203d1eb0bf 100644
--- a/VideoTranscoder/src/V1/Output.php
+++ b/VideoTranscoder/src/V1/Output.php
@@ -23,7 +23,7 @@ class Output extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string uri = 1;
*/
- private $uri = '';
+ protected $uri = '';
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/Overlay.php b/VideoTranscoder/src/V1/Overlay.php
index 331c6869c880..fa19100a1a1e 100644
--- a/VideoTranscoder/src/V1/Overlay.php
+++ b/VideoTranscoder/src/V1/Overlay.php
@@ -20,7 +20,7 @@ class Overlay extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Overlay.Image image = 1;
*/
- private $image = null;
+ protected $image = null;
/**
* List of Animations. The list should be chronological, without any time
* overlap.
diff --git a/VideoTranscoder/src/V1/Overlay/AnimationEnd.php b/VideoTranscoder/src/V1/Overlay/AnimationEnd.php
index cf935e88c205..66ca645155d9 100644
--- a/VideoTranscoder/src/V1/Overlay/AnimationEnd.php
+++ b/VideoTranscoder/src/V1/Overlay/AnimationEnd.php
@@ -22,7 +22,7 @@ class AnimationEnd extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.protobuf.Duration start_time_offset = 1;
*/
- private $start_time_offset = null;
+ protected $start_time_offset = null;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/Overlay/AnimationFade.php b/VideoTranscoder/src/V1/Overlay/AnimationFade.php
index ad2cfd7b7ff5..75eb59bdcfd0 100644
--- a/VideoTranscoder/src/V1/Overlay/AnimationFade.php
+++ b/VideoTranscoder/src/V1/Overlay/AnimationFade.php
@@ -20,7 +20,7 @@ class AnimationFade extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Overlay.FadeType fade_type = 1 [(.google.api.field_behavior) = REQUIRED];
*/
- private $fade_type = 0;
+ protected $fade_type = 0;
/**
* Normalized coordinates based on output video resolution. Valid
* values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
@@ -30,20 +30,20 @@ class AnimationFade extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate xy = 2;
*/
- private $xy = null;
+ protected $xy = null;
/**
* The time to start the fade animation, in seconds. Default: 0
*
* Generated from protobuf field .google.protobuf.Duration start_time_offset = 3;
*/
- private $start_time_offset = null;
+ protected $start_time_offset = null;
/**
* The time to end the fade animation, in seconds. Default:
* `start_time_offset` + 1s
*
* Generated from protobuf field .google.protobuf.Duration end_time_offset = 4;
*/
- private $end_time_offset = null;
+ protected $end_time_offset = null;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/Overlay/AnimationStatic.php b/VideoTranscoder/src/V1/Overlay/AnimationStatic.php
index 2eef686079b4..a81e0befdfd2 100644
--- a/VideoTranscoder/src/V1/Overlay/AnimationStatic.php
+++ b/VideoTranscoder/src/V1/Overlay/AnimationStatic.php
@@ -24,13 +24,13 @@ class AnimationStatic extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate xy = 1;
*/
- private $xy = null;
+ protected $xy = null;
/**
* The time to start displaying the overlay object, in seconds. Default: 0
*
* Generated from protobuf field .google.protobuf.Duration start_time_offset = 2;
*/
- private $start_time_offset = null;
+ protected $start_time_offset = null;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/Overlay/Image.php b/VideoTranscoder/src/V1/Overlay/Image.php
index a1ea9897d065..c5e6710ab465 100644
--- a/VideoTranscoder/src/V1/Overlay/Image.php
+++ b/VideoTranscoder/src/V1/Overlay/Image.php
@@ -21,7 +21,7 @@ class Image extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED];
*/
- private $uri = '';
+ protected $uri = '';
/**
* Normalized image resolution, based on output video resolution. Valid
* values: `0.0`–`1.0`. To respect the original image aspect ratio, set
@@ -30,14 +30,14 @@ class Image extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 2;
*/
- private $resolution = null;
+ protected $resolution = null;
/**
* Target image opacity. Valid values are from `1.0` (solid, default) to
* `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
*
* Generated from protobuf field double alpha = 3;
*/
- private $alpha = 0.0;
+ protected $alpha = 0.0;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/Overlay/NormalizedCoordinate.php b/VideoTranscoder/src/V1/Overlay/NormalizedCoordinate.php
index 4c822a7c9870..0ccb3468fcbf 100644
--- a/VideoTranscoder/src/V1/Overlay/NormalizedCoordinate.php
+++ b/VideoTranscoder/src/V1/Overlay/NormalizedCoordinate.php
@@ -20,13 +20,13 @@ class NormalizedCoordinate extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double x = 1;
*/
- private $x = 0.0;
+ protected $x = 0.0;
/**
* Normalized y coordinate.
*
* Generated from protobuf field double y = 2;
*/
- private $y = 0.0;
+ protected $y = 0.0;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/PreprocessingConfig.php b/VideoTranscoder/src/V1/PreprocessingConfig.php
index 1c916d36ab1b..a89acfa1847b 100644
--- a/VideoTranscoder/src/V1/PreprocessingConfig.php
+++ b/VideoTranscoder/src/V1/PreprocessingConfig.php
@@ -20,43 +20,43 @@ class PreprocessingConfig extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.PreprocessingConfig.Color color = 1;
*/
- private $color = null;
+ protected $color = null;
/**
* Denoise preprocessing configuration.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.PreprocessingConfig.Denoise denoise = 2;
*/
- private $denoise = null;
+ protected $denoise = null;
/**
* Deblock preprocessing configuration.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.PreprocessingConfig.Deblock deblock = 3;
*/
- private $deblock = null;
+ protected $deblock = null;
/**
* Audio preprocessing configuration.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.PreprocessingConfig.Audio audio = 4;
*/
- private $audio = null;
+ protected $audio = null;
/**
* Specify the video cropping configuration.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.PreprocessingConfig.Crop crop = 5;
*/
- private $crop = null;
+ protected $crop = null;
/**
* Specify the video pad filter configuration.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.PreprocessingConfig.Pad pad = 6;
*/
- private $pad = null;
+ protected $pad = null;
/**
* Specify the video deinterlace configuration.
*
* Generated from protobuf field .google.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace deinterlace = 7;
*/
- private $deinterlace = null;
+ protected $deinterlace = null;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/PreprocessingConfig/Audio.php b/VideoTranscoder/src/V1/PreprocessingConfig/Audio.php
index 0ac98b0d6a2f..a03b233f3da4 100644
--- a/VideoTranscoder/src/V1/PreprocessingConfig/Audio.php
+++ b/VideoTranscoder/src/V1/PreprocessingConfig/Audio.php
@@ -29,21 +29,21 @@ class Audio extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double lufs = 1;
*/
- private $lufs = 0.0;
+ protected $lufs = 0.0;
/**
* Enable boosting high frequency components. The default is `false`.
* **Note:** This field is not supported.
*
* Generated from protobuf field bool high_boost = 2;
*/
- private $high_boost = false;
+ protected $high_boost = false;
/**
* Enable boosting low frequency components. The default is `false`.
* **Note:** This field is not supported.
*
* Generated from protobuf field bool low_boost = 3;
*/
- private $low_boost = false;
+ protected $low_boost = false;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/PreprocessingConfig/Color.php b/VideoTranscoder/src/V1/PreprocessingConfig/Color.php
index 2afef65b693c..375858146ec4 100644
--- a/VideoTranscoder/src/V1/PreprocessingConfig/Color.php
+++ b/VideoTranscoder/src/V1/PreprocessingConfig/Color.php
@@ -23,7 +23,7 @@ class Color extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double saturation = 1;
*/
- private $saturation = 0.0;
+ protected $saturation = 0.0;
/**
* Control black and white contrast of the video. Enter a value between -1
* and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
@@ -31,7 +31,7 @@ class Color extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double contrast = 2;
*/
- private $contrast = 0.0;
+ protected $contrast = 0.0;
/**
* Control brightness of the video. Enter a value between -1 and 1, where -1
* is minimum brightness and 1 is maximum brightness. 0 is no change. The
@@ -39,7 +39,7 @@ class Color extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double brightness = 3;
*/
- private $brightness = 0.0;
+ protected $brightness = 0.0;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/PreprocessingConfig/Crop.php b/VideoTranscoder/src/V1/PreprocessingConfig/Crop.php
index 0e38e4fa0a3b..e7ba1c50ebf2 100644
--- a/VideoTranscoder/src/V1/PreprocessingConfig/Crop.php
+++ b/VideoTranscoder/src/V1/PreprocessingConfig/Crop.php
@@ -21,25 +21,25 @@ class Crop extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 top_pixels = 1;
*/
- private $top_pixels = 0;
+ protected $top_pixels = 0;
/**
* The number of pixels to crop from the bottom. The default is 0.
*
* Generated from protobuf field int32 bottom_pixels = 2;
*/
- private $bottom_pixels = 0;
+ protected $bottom_pixels = 0;
/**
* The number of pixels to crop from the left. The default is 0.
*
* Generated from protobuf field int32 left_pixels = 3;
*/
- private $left_pixels = 0;
+ protected $left_pixels = 0;
/**
* The number of pixels to crop from the right. The default is 0.
*
* Generated from protobuf field int32 right_pixels = 4;
*/
- private $right_pixels = 0;
+ protected $right_pixels = 0;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/PreprocessingConfig/Deblock.php b/VideoTranscoder/src/V1/PreprocessingConfig/Deblock.php
index aef51b2f08b7..8bdcf418bf38 100644
--- a/VideoTranscoder/src/V1/PreprocessingConfig/Deblock.php
+++ b/VideoTranscoder/src/V1/PreprocessingConfig/Deblock.php
@@ -23,13 +23,13 @@ class Deblock extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double strength = 1;
*/
- private $strength = 0.0;
+ protected $strength = 0.0;
/**
* Enable deblocker. The default is `false`.
*
* Generated from protobuf field bool enabled = 2;
*/
- private $enabled = false;
+ protected $enabled = false;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/PreprocessingConfig/Deinterlace/BwdifConfig.php b/VideoTranscoder/src/V1/PreprocessingConfig/Deinterlace/BwdifConfig.php
index a66e86ab8681..f2ae36873937 100644
--- a/VideoTranscoder/src/V1/PreprocessingConfig/Deinterlace/BwdifConfig.php
+++ b/VideoTranscoder/src/V1/PreprocessingConfig/Deinterlace/BwdifConfig.php
@@ -24,7 +24,7 @@ class BwdifConfig extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string mode = 1;
*/
- private $mode = '';
+ protected $mode = '';
/**
* The picture field parity assumed for the input interlaced video.
* The default is `auto`.
@@ -35,14 +35,14 @@ class BwdifConfig extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string parity = 2;
*/
- private $parity = '';
+ protected $parity = '';
/**
* Deinterlace all frames rather than just the frames identified as
* interlaced. The default is `false`.
*
* Generated from protobuf field bool deinterlace_all_frames = 3;
*/
- private $deinterlace_all_frames = false;
+ protected $deinterlace_all_frames = false;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/PreprocessingConfig/Deinterlace/YadifConfig.php b/VideoTranscoder/src/V1/PreprocessingConfig/Deinterlace/YadifConfig.php
index 944ae8a48128..d48064f07029 100644
--- a/VideoTranscoder/src/V1/PreprocessingConfig/Deinterlace/YadifConfig.php
+++ b/VideoTranscoder/src/V1/PreprocessingConfig/Deinterlace/YadifConfig.php
@@ -24,14 +24,14 @@ class YadifConfig extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string mode = 1;
*/
- private $mode = '';
+ protected $mode = '';
/**
* Disable spacial interlacing.
* The default is `false`.
*
* Generated from protobuf field bool disable_spatial_interlacing = 2;
*/
- private $disable_spatial_interlacing = false;
+ protected $disable_spatial_interlacing = false;
/**
* The picture field parity assumed for the input interlaced video.
* The default is `auto`.
@@ -42,14 +42,14 @@ class YadifConfig extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string parity = 3;
*/
- private $parity = '';
+ protected $parity = '';
/**
* Deinterlace all frames rather than just the frames identified as
* interlaced. The default is `false`.
*
* Generated from protobuf field bool deinterlace_all_frames = 4;
*/
- private $deinterlace_all_frames = false;
+ protected $deinterlace_all_frames = false;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/PreprocessingConfig/Denoise.php b/VideoTranscoder/src/V1/PreprocessingConfig/Denoise.php
index 24ffed6901cc..801f7e1a51fe 100644
--- a/VideoTranscoder/src/V1/PreprocessingConfig/Denoise.php
+++ b/VideoTranscoder/src/V1/PreprocessingConfig/Denoise.php
@@ -22,7 +22,7 @@ class Denoise extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double strength = 1;
*/
- private $strength = 0.0;
+ protected $strength = 0.0;
/**
* Set the denoiser mode. The default is `standard`.
* Supported denoiser modes:
@@ -31,7 +31,7 @@ class Denoise extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string tune = 2;
*/
- private $tune = '';
+ protected $tune = '';
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/PreprocessingConfig/Pad.php b/VideoTranscoder/src/V1/PreprocessingConfig/Pad.php
index c2b55ff4793c..98ed59c419ae 100644
--- a/VideoTranscoder/src/V1/PreprocessingConfig/Pad.php
+++ b/VideoTranscoder/src/V1/PreprocessingConfig/Pad.php
@@ -21,25 +21,25 @@ class Pad extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 top_pixels = 1;
*/
- private $top_pixels = 0;
+ protected $top_pixels = 0;
/**
* The number of pixels to add to the bottom. The default is 0.
*
* Generated from protobuf field int32 bottom_pixels = 2;
*/
- private $bottom_pixels = 0;
+ protected $bottom_pixels = 0;
/**
* The number of pixels to add to the left. The default is 0.
*
* Generated from protobuf field int32 left_pixels = 3;
*/
- private $left_pixels = 0;
+ protected $left_pixels = 0;
/**
* The number of pixels to add to the right. The default is 0.
*
* Generated from protobuf field int32 right_pixels = 4;
*/
- private $right_pixels = 0;
+ protected $right_pixels = 0;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/PubsubDestination.php b/VideoTranscoder/src/V1/PubsubDestination.php
index c66d400a0aca..554c0dbf0125 100644
--- a/VideoTranscoder/src/V1/PubsubDestination.php
+++ b/VideoTranscoder/src/V1/PubsubDestination.php
@@ -21,7 +21,7 @@ class PubsubDestination extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string topic = 1;
*/
- private $topic = '';
+ protected $topic = '';
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/SegmentSettings.php b/VideoTranscoder/src/V1/SegmentSettings.php
index 6c5717672938..9b21c31ca421 100644
--- a/VideoTranscoder/src/V1/SegmentSettings.php
+++ b/VideoTranscoder/src/V1/SegmentSettings.php
@@ -23,13 +23,13 @@ class SegmentSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.protobuf.Duration segment_duration = 1;
*/
- private $segment_duration = null;
+ protected $segment_duration = null;
/**
* Required. Create an individual segment file. The default is `false`.
*
* Generated from protobuf field bool individual_segments = 3 [(.google.api.field_behavior) = REQUIRED];
*/
- private $individual_segments = false;
+ protected $individual_segments = false;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/SpriteSheet.php b/VideoTranscoder/src/V1/SpriteSheet.php
index ea21ef3a8c01..b0b6c8cfeeca 100644
--- a/VideoTranscoder/src/V1/SpriteSheet.php
+++ b/VideoTranscoder/src/V1/SpriteSheet.php
@@ -22,7 +22,7 @@ class SpriteSheet extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string format = 1;
*/
- private $format = '';
+ protected $format = '';
/**
* Required. File name prefix for the generated sprite sheets.
* Each sprite sheet has an incremental 10-digit zero-padded suffix starting
@@ -30,7 +30,7 @@ class SpriteSheet extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string file_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
*/
- private $file_prefix = '';
+ protected $file_prefix = '';
/**
* Required. The width of sprite in pixels. Must be an even integer. To
* preserve the source aspect ratio, set the
@@ -46,7 +46,7 @@ class SpriteSheet extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 sprite_width_pixels = 3 [(.google.api.field_behavior) = REQUIRED];
*/
- private $sprite_width_pixels = 0;
+ protected $sprite_width_pixels = 0;
/**
* Required. The height of sprite in pixels. Must be an even integer. To
* preserve the source aspect ratio, set the
@@ -62,14 +62,14 @@ class SpriteSheet extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 sprite_height_pixels = 4 [(.google.api.field_behavior) = REQUIRED];
*/
- private $sprite_height_pixels = 0;
+ protected $sprite_height_pixels = 0;
/**
* The maximum number of sprites per row in a sprite sheet. The default is 0,
* which indicates no maximum limit.
*
* Generated from protobuf field int32 column_count = 5;
*/
- private $column_count = 0;
+ protected $column_count = 0;
/**
* The maximum number of rows per sprite sheet. When the sprite sheet is full,
* a new sprite sheet is created. The default is 0, which indicates no maximum
@@ -77,14 +77,14 @@ class SpriteSheet extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 row_count = 6;
*/
- private $row_count = 0;
+ protected $row_count = 0;
/**
* Start time in seconds, relative to the output file timeline. Determines the
* first sprite to pick. The default is `0s`.
*
* Generated from protobuf field .google.protobuf.Duration start_time_offset = 7;
*/
- private $start_time_offset = null;
+ protected $start_time_offset = null;
/**
* End time in seconds, relative to the output file timeline. When
* `end_time_offset` is not specified, the sprites are generated until the end
@@ -92,7 +92,7 @@ class SpriteSheet extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.protobuf.Duration end_time_offset = 8;
*/
- private $end_time_offset = null;
+ protected $end_time_offset = null;
/**
* The quality of the generated sprite sheet. Enter a value between 1
* and 100, where 1 is the lowest quality and 100 is the highest quality.
@@ -101,7 +101,7 @@ class SpriteSheet extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 quality = 11;
*/
- private $quality = 0;
+ protected $quality = 0;
protected $extraction_strategy;
/**
diff --git a/VideoTranscoder/src/V1/TextStream.php b/VideoTranscoder/src/V1/TextStream.php
index e426c3e6e9bb..e7f56aa9a086 100644
--- a/VideoTranscoder/src/V1/TextStream.php
+++ b/VideoTranscoder/src/V1/TextStream.php
@@ -26,7 +26,7 @@ class TextStream extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string codec = 1;
*/
- private $codec = '';
+ protected $codec = '';
/**
* The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
* information, see
@@ -35,7 +35,7 @@ class TextStream extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string language_code = 2;
*/
- private $language_code = '';
+ protected $language_code = '';
/**
* The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
*
@@ -48,7 +48,7 @@ class TextStream extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string display_name = 4;
*/
- private $display_name = '';
+ protected $display_name = '';
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/TextStream/TextMapping.php b/VideoTranscoder/src/V1/TextStream/TextMapping.php
index 1cb6ce5c4883..6d58dc17fee9 100644
--- a/VideoTranscoder/src/V1/TextStream/TextMapping.php
+++ b/VideoTranscoder/src/V1/TextStream/TextMapping.php
@@ -21,19 +21,19 @@ class TextMapping extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string atom_key = 1 [(.google.api.field_behavior) = REQUIRED];
*/
- private $atom_key = '';
+ protected $atom_key = '';
/**
* Required. The `Input.key` that identifies the input file.
*
* Generated from protobuf field string input_key = 2 [(.google.api.field_behavior) = REQUIRED];
*/
- private $input_key = '';
+ protected $input_key = '';
/**
* Required. The zero-based index of the track in the input file.
*
* Generated from protobuf field int32 input_track = 3 [(.google.api.field_behavior) = REQUIRED];
*/
- private $input_track = 0;
+ protected $input_track = 0;
/**
* Constructor.
diff --git a/VideoTranscoder/src/V1/TranscoderServiceClient.php b/VideoTranscoder/src/V1/TranscoderServiceClient.php
deleted file mode 100644
index 6a513f8a5fd4..000000000000
--- a/VideoTranscoder/src/V1/TranscoderServiceClient.php
+++ /dev/null
@@ -1,34 +0,0 @@
-_simpleRequest('/google.cloud.video.transcoder.v1.TranscoderService/CreateJob',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1\Job', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Lists jobs in the specified region.
- * @param \Google\Cloud\Video\Transcoder\V1\ListJobsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListJobs(\Google\Cloud\Video\Transcoder\V1\ListJobsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1.TranscoderService/ListJobs',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1\ListJobsResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Returns the job data.
- * @param \Google\Cloud\Video\Transcoder\V1\GetJobRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetJob(\Google\Cloud\Video\Transcoder\V1\GetJobRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1.TranscoderService/GetJob',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1\Job', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Deletes a job.
- * @param \Google\Cloud\Video\Transcoder\V1\DeleteJobRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DeleteJob(\Google\Cloud\Video\Transcoder\V1\DeleteJobRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1.TranscoderService/DeleteJob',
- $argument,
- ['\Google\Protobuf\GPBEmpty', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Creates a job template in the specified region.
- * @param \Google\Cloud\Video\Transcoder\V1\CreateJobTemplateRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function CreateJobTemplate(\Google\Cloud\Video\Transcoder\V1\CreateJobTemplateRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1.TranscoderService/CreateJobTemplate',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1\JobTemplate', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Lists job templates in the specified region.
- * @param \Google\Cloud\Video\Transcoder\V1\ListJobTemplatesRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListJobTemplates(\Google\Cloud\Video\Transcoder\V1\ListJobTemplatesRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1.TranscoderService/ListJobTemplates',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1\ListJobTemplatesResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Returns the job template data.
- * @param \Google\Cloud\Video\Transcoder\V1\GetJobTemplateRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetJobTemplate(\Google\Cloud\Video\Transcoder\V1\GetJobTemplateRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1.TranscoderService/GetJobTemplate',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1\JobTemplate', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Deletes a job template.
- * @param \Google\Cloud\Video\Transcoder\V1\DeleteJobTemplateRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DeleteJobTemplate(\Google\Cloud\Video\Transcoder\V1\DeleteJobTemplateRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1.TranscoderService/DeleteJobTemplate',
- $argument,
- ['\Google\Protobuf\GPBEmpty', 'decode'],
- $metadata, $options);
- }
-
-}
diff --git a/VideoTranscoder/src/V1/VideoStream/H264CodecSettings.php b/VideoTranscoder/src/V1/VideoStream/H264CodecSettings.php
index c6e67285586c..31d7eb1035d1 100644
--- a/VideoTranscoder/src/V1/VideoStream/H264CodecSettings.php
+++ b/VideoTranscoder/src/V1/VideoStream/H264CodecSettings.php
@@ -26,7 +26,7 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 width_pixels = 1;
*/
- private $width_pixels = 0;
+ protected $width_pixels = 0;
/**
* The height of the video in pixels. Must be an even integer.
* When not specified, the height is adjusted to match the specified width
@@ -38,7 +38,7 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 height_pixels = 2;
*/
- private $height_pixels = 0;
+ protected $height_pixels = 0;
/**
* Required. The target video frame rate in frames per second (FPS). Must be
* less than or equal to 120. Will default to the input frame rate if larger
@@ -50,14 +50,14 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];
*/
- private $frame_rate = 0.0;
+ protected $frame_rate = 0.0;
/**
* Required. The video bitrate in bits per second. The minimum value is
* 1,000. The maximum value is 800,000,000.
*
* Generated from protobuf field int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];
*/
- private $bitrate_bps = 0;
+ protected $bitrate_bps = 0;
/**
* Pixel format to use. The default is `yuv420p`.
* Supported pixel formats:
@@ -73,7 +73,7 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string pixel_format = 5;
*/
- private $pixel_format = '';
+ protected $pixel_format = '';
/**
* Specify the `rate_control_mode`. The default is `vbr`.
* Supported rate control modes:
@@ -82,35 +82,35 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string rate_control_mode = 6;
*/
- private $rate_control_mode = '';
+ protected $rate_control_mode = '';
/**
* Target CRF level. Must be between 10 and 36, where 10 is the highest
* quality and 36 is the most efficient compression. The default is 21.
*
* Generated from protobuf field int32 crf_level = 7;
*/
- private $crf_level = 0;
+ protected $crf_level = 0;
/**
* Specifies whether an open Group of Pictures (GOP) structure should be
* allowed or not. The default is `false`.
*
* Generated from protobuf field bool allow_open_gop = 8;
*/
- private $allow_open_gop = false;
+ protected $allow_open_gop = false;
/**
* Use two-pass encoding strategy to achieve better video quality.
* `VideoStream.rate_control_mode` must be `vbr`. The default is `false`.
*
* Generated from protobuf field bool enable_two_pass = 11;
*/
- private $enable_two_pass = false;
+ protected $enable_two_pass = false;
/**
* Size of the Video Buffering Verifier (VBV) buffer in bits. Must be
* greater than zero. The default is equal to `VideoStream.bitrate_bps`.
*
* Generated from protobuf field int32 vbv_size_bits = 12;
*/
- private $vbv_size_bits = 0;
+ protected $vbv_size_bits = 0;
/**
* Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
* Must be greater than zero. The default is equal to 90% of
@@ -118,7 +118,7 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 vbv_fullness_bits = 13;
*/
- private $vbv_fullness_bits = 0;
+ protected $vbv_fullness_bits = 0;
/**
* The entropy coder to use. The default is `cabac`.
* Supported entropy coders:
@@ -127,14 +127,14 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string entropy_coder = 14;
*/
- private $entropy_coder = '';
+ protected $entropy_coder = '';
/**
* Allow B-pyramid for reference frame selection. This may not be supported
* on all decoders. The default is `false`.
*
* Generated from protobuf field bool b_pyramid = 15;
*/
- private $b_pyramid = false;
+ protected $b_pyramid = false;
/**
* The number of consecutive B-frames. Must be greater than or equal to
* zero. Must be less than `VideoStream.gop_frame_count` if set. The default
@@ -142,7 +142,7 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 b_frame_count = 16;
*/
- private $b_frame_count = 0;
+ protected $b_frame_count = 0;
/**
* Specify the intensity of the adaptive quantizer (AQ). Must be between 0
* and 1, where 0 disables the quantizer and 1 maximizes the quantizer. A
@@ -150,7 +150,7 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double aq_strength = 17;
*/
- private $aq_strength = 0.0;
+ protected $aq_strength = 0.0;
/**
* Enforces the specified codec profile. The following profiles are
* supported:
@@ -165,7 +165,7 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string profile = 18;
*/
- private $profile = '';
+ protected $profile = '';
/**
* Enforces the specified codec tune. The available options are
* [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune).
@@ -175,7 +175,7 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string tune = 19;
*/
- private $tune = '';
+ protected $tune = '';
/**
* Enforces the specified codec preset. The default is `veryfast`. The
* available options are
@@ -186,7 +186,7 @@ class H264CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string preset = 20;
*/
- private $preset = '';
+ protected $preset = '';
protected $gop_mode;
/**
diff --git a/VideoTranscoder/src/V1/VideoStream/H265CodecSettings.php b/VideoTranscoder/src/V1/VideoStream/H265CodecSettings.php
index 7384159c6d66..68face4ec18a 100644
--- a/VideoTranscoder/src/V1/VideoStream/H265CodecSettings.php
+++ b/VideoTranscoder/src/V1/VideoStream/H265CodecSettings.php
@@ -26,7 +26,7 @@ class H265CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 width_pixels = 1;
*/
- private $width_pixels = 0;
+ protected $width_pixels = 0;
/**
* The height of the video in pixels. Must be an even integer.
* When not specified, the height is adjusted to match the specified width
@@ -38,7 +38,7 @@ class H265CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 height_pixels = 2;
*/
- private $height_pixels = 0;
+ protected $height_pixels = 0;
/**
* Required. The target video frame rate in frames per second (FPS). Must be
* less than or equal to 120. Will default to the input frame rate if larger
@@ -50,14 +50,14 @@ class H265CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];
*/
- private $frame_rate = 0.0;
+ protected $frame_rate = 0.0;
/**
* Required. The video bitrate in bits per second. The minimum value is
* 1,000. The maximum value is 800,000,000.
*
* Generated from protobuf field int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];
*/
- private $bitrate_bps = 0;
+ protected $bitrate_bps = 0;
/**
* Pixel format to use. The default is `yuv420p`.
* Supported pixel formats:
@@ -73,7 +73,7 @@ class H265CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string pixel_format = 5;
*/
- private $pixel_format = '';
+ protected $pixel_format = '';
/**
* Specify the `rate_control_mode`. The default is `vbr`.
* Supported rate control modes:
@@ -82,35 +82,35 @@ class H265CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string rate_control_mode = 6;
*/
- private $rate_control_mode = '';
+ protected $rate_control_mode = '';
/**
* Target CRF level. Must be between 10 and 36, where 10 is the highest
* quality and 36 is the most efficient compression. The default is 21.
*
* Generated from protobuf field int32 crf_level = 7;
*/
- private $crf_level = 0;
+ protected $crf_level = 0;
/**
* Specifies whether an open Group of Pictures (GOP) structure should be
* allowed or not. The default is `false`.
*
* Generated from protobuf field bool allow_open_gop = 8;
*/
- private $allow_open_gop = false;
+ protected $allow_open_gop = false;
/**
* Use two-pass encoding strategy to achieve better video quality.
* `VideoStream.rate_control_mode` must be `vbr`. The default is `false`.
*
* Generated from protobuf field bool enable_two_pass = 11;
*/
- private $enable_two_pass = false;
+ protected $enable_two_pass = false;
/**
* Size of the Video Buffering Verifier (VBV) buffer in bits. Must be
* greater than zero. The default is equal to `VideoStream.bitrate_bps`.
*
* Generated from protobuf field int32 vbv_size_bits = 12;
*/
- private $vbv_size_bits = 0;
+ protected $vbv_size_bits = 0;
/**
* Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
* Must be greater than zero. The default is equal to 90% of
@@ -118,14 +118,14 @@ class H265CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 vbv_fullness_bits = 13;
*/
- private $vbv_fullness_bits = 0;
+ protected $vbv_fullness_bits = 0;
/**
* Allow B-pyramid for reference frame selection. This may not be supported
* on all decoders. The default is `false`.
*
* Generated from protobuf field bool b_pyramid = 14;
*/
- private $b_pyramid = false;
+ protected $b_pyramid = false;
/**
* The number of consecutive B-frames. Must be greater than or equal to
* zero. Must be less than `VideoStream.gop_frame_count` if set. The default
@@ -133,7 +133,7 @@ class H265CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 b_frame_count = 15;
*/
- private $b_frame_count = 0;
+ protected $b_frame_count = 0;
/**
* Specify the intensity of the adaptive quantizer (AQ). Must be between 0
* and 1, where 0 disables the quantizer and 1 maximizes the quantizer. A
@@ -141,7 +141,7 @@ class H265CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double aq_strength = 16;
*/
- private $aq_strength = 0.0;
+ protected $aq_strength = 0.0;
/**
* Enforces the specified codec profile. The following profiles are
* supported:
@@ -171,7 +171,7 @@ class H265CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string profile = 17;
*/
- private $profile = '';
+ protected $profile = '';
/**
* Enforces the specified codec tune. The available options are
* [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.265).
@@ -181,7 +181,7 @@ class H265CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string tune = 18;
*/
- private $tune = '';
+ protected $tune = '';
/**
* Enforces the specified codec preset. The default is `veryfast`. The
* available options are
@@ -192,7 +192,7 @@ class H265CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string preset = 19;
*/
- private $preset = '';
+ protected $preset = '';
protected $gop_mode;
/**
diff --git a/VideoTranscoder/src/V1/VideoStream/Vp9CodecSettings.php b/VideoTranscoder/src/V1/VideoStream/Vp9CodecSettings.php
index bc349037654a..4a79847bc460 100644
--- a/VideoTranscoder/src/V1/VideoStream/Vp9CodecSettings.php
+++ b/VideoTranscoder/src/V1/VideoStream/Vp9CodecSettings.php
@@ -26,7 +26,7 @@ class Vp9CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 width_pixels = 1;
*/
- private $width_pixels = 0;
+ protected $width_pixels = 0;
/**
* The height of the video in pixels. Must be an even integer.
* When not specified, the height is adjusted to match the specified width
@@ -38,7 +38,7 @@ class Vp9CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 height_pixels = 2;
*/
- private $height_pixels = 0;
+ protected $height_pixels = 0;
/**
* Required. The target video frame rate in frames per second (FPS). Must be
* less than or equal to 120. Will default to the input frame rate if larger
@@ -50,14 +50,14 @@ class Vp9CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];
*/
- private $frame_rate = 0.0;
+ protected $frame_rate = 0.0;
/**
* Required. The video bitrate in bits per second. The minimum value is
* 1,000. The maximum value is 480,000,000.
*
* Generated from protobuf field int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];
*/
- private $bitrate_bps = 0;
+ protected $bitrate_bps = 0;
/**
* Pixel format to use. The default is `yuv420p`.
* Supported pixel formats:
@@ -73,7 +73,7 @@ class Vp9CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string pixel_format = 5;
*/
- private $pixel_format = '';
+ protected $pixel_format = '';
/**
* Specify the `rate_control_mode`. The default is `vbr`.
* Supported rate control modes:
@@ -81,7 +81,7 @@ class Vp9CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string rate_control_mode = 6;
*/
- private $rate_control_mode = '';
+ protected $rate_control_mode = '';
/**
* Target CRF level. Must be between 10 and 36, where 10 is the highest
* quality and 36 is the most efficient compression. The default is 21.
@@ -89,7 +89,7 @@ class Vp9CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field int32 crf_level = 7;
*/
- private $crf_level = 0;
+ protected $crf_level = 0;
/**
* Enforces the specified codec profile. The following profiles are
* supported:
@@ -105,7 +105,7 @@ class Vp9CodecSettings extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field string profile = 10;
*/
- private $profile = '';
+ protected $profile = '';
protected $gop_mode;
/**
diff --git a/VideoTranscoder/src/V1beta1/AdBreak.php b/VideoTranscoder/src/V1beta1/AdBreak.php
deleted file mode 100644
index 1563a6180805..000000000000
--- a/VideoTranscoder/src/V1beta1/AdBreak.php
+++ /dev/null
@@ -1,81 +0,0 @@
-google.cloud.video.transcoder.v1beta1.AdBreak
- */
-class AdBreak extends \Google\Protobuf\Internal\Message
-{
- /**
- * Start time in seconds for the ad break, relative to the output file
- * timeline. The default is `0s`.
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 1;
- */
- private $start_time_offset = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Duration $start_time_offset
- * Start time in seconds for the ad break, relative to the output file
- * timeline. The default is `0s`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Start time in seconds for the ad break, relative to the output file
- * timeline. The default is `0s`.
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 1;
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartTimeOffset()
- {
- return $this->start_time_offset;
- }
-
- public function hasStartTimeOffset()
- {
- return isset($this->start_time_offset);
- }
-
- public function clearStartTimeOffset()
- {
- unset($this->start_time_offset);
- }
-
- /**
- * Start time in seconds for the ad break, relative to the output file
- * timeline. The default is `0s`.
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 1;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartTimeOffset($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_time_offset = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/AudioStream.php b/VideoTranscoder/src/V1beta1/AudioStream.php
deleted file mode 100644
index e8607cc59809..000000000000
--- a/VideoTranscoder/src/V1beta1/AudioStream.php
+++ /dev/null
@@ -1,301 +0,0 @@
-google.cloud.video.transcoder.v1beta1.AudioStream
- */
-class AudioStream extends \Google\Protobuf\Internal\Message
-{
- /**
- * The codec for this audio stream. The default is `"aac"`.
- * Supported audio codecs:
- * - 'aac'
- * - 'aac-he'
- * - 'aac-he-v2'
- * - 'mp3'
- * - 'ac3'
- * - 'eac3'
- *
- * Generated from protobuf field string codec = 1;
- */
- private $codec = '';
- /**
- * Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
- *
- * Generated from protobuf field int32 bitrate_bps = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- private $bitrate_bps = 0;
- /**
- * Number of audio channels. Must be between 1 and 6. The default is 2.
- *
- * Generated from protobuf field int32 channel_count = 3;
- */
- private $channel_count = 0;
- /**
- * A list of channel names specifying layout of the audio channels.
- * This only affects the metadata embedded in the container headers, if
- * supported by the specified format. The default is `["fl", "fr"]`.
- * Supported channel names:
- * - 'fl' - Front left channel
- * - 'fr' - Front right channel
- * - 'sl' - Side left channel
- * - 'sr' - Side right channel
- * - 'fc' - Front center channel
- * - 'lfe' - Low frequency
- *
- * Generated from protobuf field repeated string channel_layout = 4;
- */
- private $channel_layout;
- /**
- * The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom mapping = 5;
- */
- private $mapping;
- /**
- * The audio sample rate in Hertz. The default is 48000 Hertz.
- *
- * Generated from protobuf field int32 sample_rate_hertz = 6;
- */
- private $sample_rate_hertz = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $codec
- * The codec for this audio stream. The default is `"aac"`.
- * Supported audio codecs:
- * - 'aac'
- * - 'aac-he'
- * - 'aac-he-v2'
- * - 'mp3'
- * - 'ac3'
- * - 'eac3'
- * @type int $bitrate_bps
- * Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
- * @type int $channel_count
- * Number of audio channels. Must be between 1 and 6. The default is 2.
- * @type string[]|\Google\Protobuf\Internal\RepeatedField $channel_layout
- * A list of channel names specifying layout of the audio channels.
- * This only affects the metadata embedded in the container headers, if
- * supported by the specified format. The default is `["fl", "fr"]`.
- * Supported channel names:
- * - 'fl' - Front left channel
- * - 'fr' - Front right channel
- * - 'sl' - Side left channel
- * - 'sr' - Side right channel
- * - 'fc' - Front center channel
- * - 'lfe' - Low frequency
- * @type \Google\Cloud\Video\Transcoder\V1beta1\AudioStream\AudioAtom[]|\Google\Protobuf\Internal\RepeatedField $mapping
- * The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
- * @type int $sample_rate_hertz
- * The audio sample rate in Hertz. The default is 48000 Hertz.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The codec for this audio stream. The default is `"aac"`.
- * Supported audio codecs:
- * - 'aac'
- * - 'aac-he'
- * - 'aac-he-v2'
- * - 'mp3'
- * - 'ac3'
- * - 'eac3'
- *
- * Generated from protobuf field string codec = 1;
- * @return string
- */
- public function getCodec()
- {
- return $this->codec;
- }
-
- /**
- * The codec for this audio stream. The default is `"aac"`.
- * Supported audio codecs:
- * - 'aac'
- * - 'aac-he'
- * - 'aac-he-v2'
- * - 'mp3'
- * - 'ac3'
- * - 'eac3'
- *
- * Generated from protobuf field string codec = 1;
- * @param string $var
- * @return $this
- */
- public function setCodec($var)
- {
- GPBUtil::checkString($var, True);
- $this->codec = $var;
-
- return $this;
- }
-
- /**
- * Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
- *
- * Generated from protobuf field int32 bitrate_bps = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getBitrateBps()
- {
- return $this->bitrate_bps;
- }
-
- /**
- * Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
- *
- * Generated from protobuf field int32 bitrate_bps = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setBitrateBps($var)
- {
- GPBUtil::checkInt32($var);
- $this->bitrate_bps = $var;
-
- return $this;
- }
-
- /**
- * Number of audio channels. Must be between 1 and 6. The default is 2.
- *
- * Generated from protobuf field int32 channel_count = 3;
- * @return int
- */
- public function getChannelCount()
- {
- return $this->channel_count;
- }
-
- /**
- * Number of audio channels. Must be between 1 and 6. The default is 2.
- *
- * Generated from protobuf field int32 channel_count = 3;
- * @param int $var
- * @return $this
- */
- public function setChannelCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->channel_count = $var;
-
- return $this;
- }
-
- /**
- * A list of channel names specifying layout of the audio channels.
- * This only affects the metadata embedded in the container headers, if
- * supported by the specified format. The default is `["fl", "fr"]`.
- * Supported channel names:
- * - 'fl' - Front left channel
- * - 'fr' - Front right channel
- * - 'sl' - Side left channel
- * - 'sr' - Side right channel
- * - 'fc' - Front center channel
- * - 'lfe' - Low frequency
- *
- * Generated from protobuf field repeated string channel_layout = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getChannelLayout()
- {
- return $this->channel_layout;
- }
-
- /**
- * A list of channel names specifying layout of the audio channels.
- * This only affects the metadata embedded in the container headers, if
- * supported by the specified format. The default is `["fl", "fr"]`.
- * Supported channel names:
- * - 'fl' - Front left channel
- * - 'fr' - Front right channel
- * - 'sl' - Side left channel
- * - 'sr' - Side right channel
- * - 'fc' - Front center channel
- * - 'lfe' - Low frequency
- *
- * Generated from protobuf field repeated string channel_layout = 4;
- * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setChannelLayout($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->channel_layout = $arr;
-
- return $this;
- }
-
- /**
- * The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom mapping = 5;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMapping()
- {
- return $this->mapping;
- }
-
- /**
- * The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom mapping = 5;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\AudioStream\AudioAtom[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMapping($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\AudioStream\AudioAtom::class);
- $this->mapping = $arr;
-
- return $this;
- }
-
- /**
- * The audio sample rate in Hertz. The default is 48000 Hertz.
- *
- * Generated from protobuf field int32 sample_rate_hertz = 6;
- * @return int
- */
- public function getSampleRateHertz()
- {
- return $this->sample_rate_hertz;
- }
-
- /**
- * The audio sample rate in Hertz. The default is 48000 Hertz.
- *
- * Generated from protobuf field int32 sample_rate_hertz = 6;
- * @param int $var
- * @return $this
- */
- public function setSampleRateHertz($var)
- {
- GPBUtil::checkInt32($var);
- $this->sample_rate_hertz = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/AudioStream/AudioAtom.php b/VideoTranscoder/src/V1beta1/AudioStream/AudioAtom.php
deleted file mode 100644
index d21c802f8e4d..000000000000
--- a/VideoTranscoder/src/V1beta1/AudioStream/AudioAtom.php
+++ /dev/null
@@ -1,110 +0,0 @@
-google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom
- */
-class AudioAtom extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The `EditAtom.key` that references the atom with audio inputs in the
- * `Job.edit_list`.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $key = '';
- /**
- * List of `Channel`s for this audio stream.
- * for in-depth explanation.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom.AudioChannel channels = 2;
- */
- private $channels;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key
- * Required. The `EditAtom.key` that references the atom with audio inputs in the
- * `Job.edit_list`.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\AudioStream\AudioAtom\AudioChannel[]|\Google\Protobuf\Internal\RepeatedField $channels
- * List of `Channel`s for this audio stream.
- * for in-depth explanation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The `EditAtom.key` that references the atom with audio inputs in the
- * `Job.edit_list`.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Required. The `EditAtom.key` that references the atom with audio inputs in the
- * `Job.edit_list`.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->key = $var;
-
- return $this;
- }
-
- /**
- * List of `Channel`s for this audio stream.
- * for in-depth explanation.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom.AudioChannel channels = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getChannels()
- {
- return $this->channels;
- }
-
- /**
- * List of `Channel`s for this audio stream.
- * for in-depth explanation.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom.AudioChannel channels = 2;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\AudioStream\AudioAtom\AudioChannel[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setChannels($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\AudioStream\AudioAtom\AudioChannel::class);
- $this->channels = $arr;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/AudioStream/AudioAtom/AudioChannel.php b/VideoTranscoder/src/V1beta1/AudioStream/AudioAtom/AudioChannel.php
deleted file mode 100644
index 8c84043a8bed..000000000000
--- a/VideoTranscoder/src/V1beta1/AudioStream/AudioAtom/AudioChannel.php
+++ /dev/null
@@ -1,68 +0,0 @@
-google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom.AudioChannel
- */
-class AudioChannel extends \Google\Protobuf\Internal\Message
-{
- /**
- * List of `Job.inputs` for this audio channel.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom.AudioChannel.AudioChannelInput inputs = 2;
- */
- private $inputs;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Video\Transcoder\V1beta1\AudioStream\AudioAtom\AudioChannel\AudioChannelInput[]|\Google\Protobuf\Internal\RepeatedField $inputs
- * List of `Job.inputs` for this audio channel.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * List of `Job.inputs` for this audio channel.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom.AudioChannel.AudioChannelInput inputs = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getInputs()
- {
- return $this->inputs;
- }
-
- /**
- * List of `Job.inputs` for this audio channel.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom.AudioChannel.AudioChannelInput inputs = 2;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\AudioStream\AudioAtom\AudioChannel\AudioChannelInput[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setInputs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\AudioStream\AudioAtom\AudioChannel\AudioChannelInput::class);
- $this->inputs = $arr;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/AudioStream/AudioAtom/AudioChannel/AudioChannelInput.php b/VideoTranscoder/src/V1beta1/AudioStream/AudioAtom/AudioChannel/AudioChannelInput.php
deleted file mode 100644
index 485a12a3add8..000000000000
--- a/VideoTranscoder/src/V1beta1/AudioStream/AudioAtom/AudioChannel/AudioChannelInput.php
+++ /dev/null
@@ -1,174 +0,0 @@
-google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom.AudioChannel.AudioChannelInput
- */
-class AudioChannelInput extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The `Input.key` that identifies the input file.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $key = '';
- /**
- * Required. The zero-based index of the track in the input file.
- *
- * Generated from protobuf field int32 track = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- private $track = 0;
- /**
- * Required. The zero-based index of the channel in the input file.
- *
- * Generated from protobuf field int32 channel = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- private $channel = 0;
- /**
- * Audio volume control in dB. Negative values decrease volume,
- * positive values increase. The default is 0.
- *
- * Generated from protobuf field double gain_db = 4;
- */
- private $gain_db = 0.0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key
- * Required. The `Input.key` that identifies the input file.
- * @type int $track
- * Required. The zero-based index of the track in the input file.
- * @type int $channel
- * Required. The zero-based index of the channel in the input file.
- * @type float $gain_db
- * Audio volume control in dB. Negative values decrease volume,
- * positive values increase. The default is 0.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The `Input.key` that identifies the input file.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Required. The `Input.key` that identifies the input file.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->key = $var;
-
- return $this;
- }
-
- /**
- * Required. The zero-based index of the track in the input file.
- *
- * Generated from protobuf field int32 track = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getTrack()
- {
- return $this->track;
- }
-
- /**
- * Required. The zero-based index of the track in the input file.
- *
- * Generated from protobuf field int32 track = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setTrack($var)
- {
- GPBUtil::checkInt32($var);
- $this->track = $var;
-
- return $this;
- }
-
- /**
- * Required. The zero-based index of the channel in the input file.
- *
- * Generated from protobuf field int32 channel = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getChannel()
- {
- return $this->channel;
- }
-
- /**
- * Required. The zero-based index of the channel in the input file.
- *
- * Generated from protobuf field int32 channel = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setChannel($var)
- {
- GPBUtil::checkInt32($var);
- $this->channel = $var;
-
- return $this;
- }
-
- /**
- * Audio volume control in dB. Negative values decrease volume,
- * positive values increase. The default is 0.
- *
- * Generated from protobuf field double gain_db = 4;
- * @return float
- */
- public function getGainDb()
- {
- return $this->gain_db;
- }
-
- /**
- * Audio volume control in dB. Negative values decrease volume,
- * positive values increase. The default is 0.
- *
- * Generated from protobuf field double gain_db = 4;
- * @param float $var
- * @return $this
- */
- public function setGainDb($var)
- {
- GPBUtil::checkDouble($var);
- $this->gain_db = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/CreateJobRequest.php b/VideoTranscoder/src/V1beta1/CreateJobRequest.php
deleted file mode 100644
index 2b12fe95e1a8..000000000000
--- a/VideoTranscoder/src/V1beta1/CreateJobRequest.php
+++ /dev/null
@@ -1,115 +0,0 @@
-google.cloud.video.transcoder.v1beta1.CreateJobRequest
- */
-class CreateJobRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent location to create and process this job.
- * Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- private $parent = '';
- /**
- * Required. Parameters for creating transcoding job.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- private $job = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent location to create and process this job.
- * Format: `projects/{project}/locations/{location}`
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Job $job
- * Required. Parameters for creating transcoding job.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Services::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent location to create and process this job.
- * Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent location to create and process this job.
- * Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. Parameters for creating transcoding job.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Job|null
- */
- public function getJob()
- {
- return $this->job;
- }
-
- public function hasJob()
- {
- return isset($this->job);
- }
-
- public function clearJob()
- {
- unset($this->job);
- }
-
- /**
- * Required. Parameters for creating transcoding job.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Job $var
- * @return $this
- */
- public function setJob($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Job::class);
- $this->job = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/CreateJobTemplateRequest.php b/VideoTranscoder/src/V1beta1/CreateJobTemplateRequest.php
deleted file mode 100644
index 68be5da4cbc0..000000000000
--- a/VideoTranscoder/src/V1beta1/CreateJobTemplateRequest.php
+++ /dev/null
@@ -1,161 +0,0 @@
-google.cloud.video.transcoder.v1beta1.CreateJobTemplateRequest
- */
-class CreateJobTemplateRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent location to create this job template.
- * Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- private $parent = '';
- /**
- * Required. Parameters for creating job template.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.JobTemplate job_template = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- private $job_template = null;
- /**
- * Required. The ID to use for the job template, which will become the final component
- * of the job template's resource name.
- * This value should be 4-63 characters, and valid characters must match the
- * regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.
- *
- * Generated from protobuf field string job_template_id = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- private $job_template_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent location to create this job template.
- * Format: `projects/{project}/locations/{location}`
- * @type \Google\Cloud\Video\Transcoder\V1beta1\JobTemplate $job_template
- * Required. Parameters for creating job template.
- * @type string $job_template_id
- * Required. The ID to use for the job template, which will become the final component
- * of the job template's resource name.
- * This value should be 4-63 characters, and valid characters must match the
- * regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Services::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent location to create this job template.
- * Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent location to create this job template.
- * Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. Parameters for creating job template.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.JobTemplate job_template = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Video\Transcoder\V1beta1\JobTemplate|null
- */
- public function getJobTemplate()
- {
- return $this->job_template;
- }
-
- public function hasJobTemplate()
- {
- return isset($this->job_template);
- }
-
- public function clearJobTemplate()
- {
- unset($this->job_template);
- }
-
- /**
- * Required. Parameters for creating job template.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.JobTemplate job_template = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Video\Transcoder\V1beta1\JobTemplate $var
- * @return $this
- */
- public function setJobTemplate($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\JobTemplate::class);
- $this->job_template = $var;
-
- return $this;
- }
-
- /**
- * Required. The ID to use for the job template, which will become the final component
- * of the job template's resource name.
- * This value should be 4-63 characters, and valid characters must match the
- * regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.
- *
- * Generated from protobuf field string job_template_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getJobTemplateId()
- {
- return $this->job_template_id;
- }
-
- /**
- * Required. The ID to use for the job template, which will become the final component
- * of the job template's resource name.
- * This value should be 4-63 characters, and valid characters must match the
- * regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.
- *
- * Generated from protobuf field string job_template_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setJobTemplateId($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_template_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/DeleteJobRequest.php b/VideoTranscoder/src/V1beta1/DeleteJobRequest.php
deleted file mode 100644
index eafa63a54570..000000000000
--- a/VideoTranscoder/src/V1beta1/DeleteJobRequest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.video.transcoder.v1beta1.DeleteJobRequest
- */
-class DeleteJobRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the job to delete.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- private $name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the job to delete.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Services::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the job to delete.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the job to delete.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/DeleteJobTemplateRequest.php b/VideoTranscoder/src/V1beta1/DeleteJobTemplateRequest.php
deleted file mode 100644
index ad9d38315930..000000000000
--- a/VideoTranscoder/src/V1beta1/DeleteJobTemplateRequest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.video.transcoder.v1beta1.DeleteJobTemplateRequest
- */
-class DeleteJobTemplateRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the job template to delete.
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- private $name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the job template to delete.
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Services::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the job template to delete.
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the job template to delete.
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/EditAtom.php b/VideoTranscoder/src/V1beta1/EditAtom.php
deleted file mode 100644
index b88d6a69e938..000000000000
--- a/VideoTranscoder/src/V1beta1/EditAtom.php
+++ /dev/null
@@ -1,209 +0,0 @@
-google.cloud.video.transcoder.v1beta1.EditAtom
- */
-class EditAtom extends \Google\Protobuf\Internal\Message
-{
- /**
- * A unique key for this atom. Must be specified when using advanced
- * mapping.
- *
- * Generated from protobuf field string key = 1;
- */
- private $key = '';
- /**
- * List of `Input.key`s identifying files that should be used in this atom.
- * The listed `inputs` must have the same timeline.
- *
- * Generated from protobuf field repeated string inputs = 2;
- */
- private $inputs;
- /**
- * End time in seconds for the atom, relative to the input file timeline.
- * When `end_time_offset` is not specified, the `inputs` are used until
- * the end of the atom.
- *
- * Generated from protobuf field .google.protobuf.Duration end_time_offset = 3;
- */
- private $end_time_offset = null;
- /**
- * Start time in seconds for the atom, relative to the input file timeline.
- * The default is `0s`.
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 4;
- */
- private $start_time_offset = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key
- * A unique key for this atom. Must be specified when using advanced
- * mapping.
- * @type string[]|\Google\Protobuf\Internal\RepeatedField $inputs
- * List of `Input.key`s identifying files that should be used in this atom.
- * The listed `inputs` must have the same timeline.
- * @type \Google\Protobuf\Duration $end_time_offset
- * End time in seconds for the atom, relative to the input file timeline.
- * When `end_time_offset` is not specified, the `inputs` are used until
- * the end of the atom.
- * @type \Google\Protobuf\Duration $start_time_offset
- * Start time in seconds for the atom, relative to the input file timeline.
- * The default is `0s`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A unique key for this atom. Must be specified when using advanced
- * mapping.
- *
- * Generated from protobuf field string key = 1;
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * A unique key for this atom. Must be specified when using advanced
- * mapping.
- *
- * Generated from protobuf field string key = 1;
- * @param string $var
- * @return $this
- */
- public function setKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->key = $var;
-
- return $this;
- }
-
- /**
- * List of `Input.key`s identifying files that should be used in this atom.
- * The listed `inputs` must have the same timeline.
- *
- * Generated from protobuf field repeated string inputs = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getInputs()
- {
- return $this->inputs;
- }
-
- /**
- * List of `Input.key`s identifying files that should be used in this atom.
- * The listed `inputs` must have the same timeline.
- *
- * Generated from protobuf field repeated string inputs = 2;
- * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setInputs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->inputs = $arr;
-
- return $this;
- }
-
- /**
- * End time in seconds for the atom, relative to the input file timeline.
- * When `end_time_offset` is not specified, the `inputs` are used until
- * the end of the atom.
- *
- * Generated from protobuf field .google.protobuf.Duration end_time_offset = 3;
- * @return \Google\Protobuf\Duration|null
- */
- public function getEndTimeOffset()
- {
- return $this->end_time_offset;
- }
-
- public function hasEndTimeOffset()
- {
- return isset($this->end_time_offset);
- }
-
- public function clearEndTimeOffset()
- {
- unset($this->end_time_offset);
- }
-
- /**
- * End time in seconds for the atom, relative to the input file timeline.
- * When `end_time_offset` is not specified, the `inputs` are used until
- * the end of the atom.
- *
- * Generated from protobuf field .google.protobuf.Duration end_time_offset = 3;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setEndTimeOffset($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->end_time_offset = $var;
-
- return $this;
- }
-
- /**
- * Start time in seconds for the atom, relative to the input file timeline.
- * The default is `0s`.
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 4;
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartTimeOffset()
- {
- return $this->start_time_offset;
- }
-
- public function hasStartTimeOffset()
- {
- return isset($this->start_time_offset);
- }
-
- public function clearStartTimeOffset()
- {
- unset($this->start_time_offset);
- }
-
- /**
- * Start time in seconds for the atom, relative to the input file timeline.
- * The default is `0s`.
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 4;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartTimeOffset($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_time_offset = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/ElementaryStream.php b/VideoTranscoder/src/V1beta1/ElementaryStream.php
deleted file mode 100644
index 9c042e8c4124..000000000000
--- a/VideoTranscoder/src/V1beta1/ElementaryStream.php
+++ /dev/null
@@ -1,177 +0,0 @@
-google.cloud.video.transcoder.v1beta1.ElementaryStream
- */
-class ElementaryStream extends \Google\Protobuf\Internal\Message
-{
- /**
- * A unique key for this elementary stream.
- *
- * Generated from protobuf field string key = 4;
- */
- private $key = '';
- protected $elementary_stream;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key
- * A unique key for this elementary stream.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\VideoStream $video_stream
- * Encoding of a video stream.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\AudioStream $audio_stream
- * Encoding of an audio stream.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\TextStream $text_stream
- * Encoding of a text stream. For example, closed captions or subtitles.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A unique key for this elementary stream.
- *
- * Generated from protobuf field string key = 4;
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * A unique key for this elementary stream.
- *
- * Generated from protobuf field string key = 4;
- * @param string $var
- * @return $this
- */
- public function setKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->key = $var;
-
- return $this;
- }
-
- /**
- * Encoding of a video stream.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.VideoStream video_stream = 1;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\VideoStream|null
- */
- public function getVideoStream()
- {
- return $this->readOneof(1);
- }
-
- public function hasVideoStream()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Encoding of a video stream.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.VideoStream video_stream = 1;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\VideoStream $var
- * @return $this
- */
- public function setVideoStream($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\VideoStream::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Encoding of an audio stream.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.AudioStream audio_stream = 2;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\AudioStream|null
- */
- public function getAudioStream()
- {
- return $this->readOneof(2);
- }
-
- public function hasAudioStream()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Encoding of an audio stream.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.AudioStream audio_stream = 2;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\AudioStream $var
- * @return $this
- */
- public function setAudioStream($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\AudioStream::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Encoding of a text stream. For example, closed captions or subtitles.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.TextStream text_stream = 3;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\TextStream|null
- */
- public function getTextStream()
- {
- return $this->readOneof(3);
- }
-
- public function hasTextStream()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Encoding of a text stream. For example, closed captions or subtitles.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.TextStream text_stream = 3;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\TextStream $var
- * @return $this
- */
- public function setTextStream($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\TextStream::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getElementaryStream()
- {
- return $this->whichOneof("elementary_stream");
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/Encryption.php b/VideoTranscoder/src/V1beta1/Encryption.php
deleted file mode 100644
index 7ed6ee3bb924..000000000000
--- a/VideoTranscoder/src/V1beta1/Encryption.php
+++ /dev/null
@@ -1,213 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Encryption
- */
-class Encryption extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. 128 bit encryption key represented as lowercase hexadecimal digits.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $key = '';
- /**
- * Required. 128 bit Initialization Vector (IV) represented as lowercase hexadecimal
- * digits.
- *
- * Generated from protobuf field string iv = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- private $iv = '';
- protected $encryption_mode;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key
- * Required. 128 bit encryption key represented as lowercase hexadecimal digits.
- * @type string $iv
- * Required. 128 bit Initialization Vector (IV) represented as lowercase hexadecimal
- * digits.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Encryption\Aes128Encryption $aes_128
- * Configuration for AES-128 encryption.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Encryption\SampleAesEncryption $sample_aes
- * Configuration for SAMPLE-AES encryption.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Encryption\MpegCommonEncryption $mpeg_cenc
- * Configuration for MPEG Common Encryption (MPEG-CENC).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. 128 bit encryption key represented as lowercase hexadecimal digits.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Required. 128 bit encryption key represented as lowercase hexadecimal digits.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->key = $var;
-
- return $this;
- }
-
- /**
- * Required. 128 bit Initialization Vector (IV) represented as lowercase hexadecimal
- * digits.
- *
- * Generated from protobuf field string iv = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getIv()
- {
- return $this->iv;
- }
-
- /**
- * Required. 128 bit Initialization Vector (IV) represented as lowercase hexadecimal
- * digits.
- *
- * Generated from protobuf field string iv = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setIv($var)
- {
- GPBUtil::checkString($var, True);
- $this->iv = $var;
-
- return $this;
- }
-
- /**
- * Configuration for AES-128 encryption.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Encryption.Aes128Encryption aes_128 = 3;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Encryption\Aes128Encryption|null
- */
- public function getAes128()
- {
- return $this->readOneof(3);
- }
-
- public function hasAes128()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Configuration for AES-128 encryption.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Encryption.Aes128Encryption aes_128 = 3;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Encryption\Aes128Encryption $var
- * @return $this
- */
- public function setAes128($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Encryption\Aes128Encryption::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Configuration for SAMPLE-AES encryption.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Encryption.SampleAesEncryption sample_aes = 4;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Encryption\SampleAesEncryption|null
- */
- public function getSampleAes()
- {
- return $this->readOneof(4);
- }
-
- public function hasSampleAes()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Configuration for SAMPLE-AES encryption.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Encryption.SampleAesEncryption sample_aes = 4;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Encryption\SampleAesEncryption $var
- * @return $this
- */
- public function setSampleAes($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Encryption\SampleAesEncryption::class);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Configuration for MPEG Common Encryption (MPEG-CENC).
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Encryption.MpegCommonEncryption mpeg_cenc = 5;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Encryption\MpegCommonEncryption|null
- */
- public function getMpegCenc()
- {
- return $this->readOneof(5);
- }
-
- public function hasMpegCenc()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Configuration for MPEG Common Encryption (MPEG-CENC).
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Encryption.MpegCommonEncryption mpeg_cenc = 5;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Encryption\MpegCommonEncryption $var
- * @return $this
- */
- public function setMpegCenc($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Encryption\MpegCommonEncryption::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getEncryptionMode()
- {
- return $this->whichOneof("encryption_mode");
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/Encryption/Aes128Encryption.php b/VideoTranscoder/src/V1beta1/Encryption/Aes128Encryption.php
deleted file mode 100644
index 7c6d3f1a5959..000000000000
--- a/VideoTranscoder/src/V1beta1/Encryption/Aes128Encryption.php
+++ /dev/null
@@ -1,72 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Encryption.Aes128Encryption
- */
-class Aes128Encryption extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. URI of the key delivery service. This URI is inserted into the M3U8
- * header.
- *
- * Generated from protobuf field string key_uri = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $key_uri = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key_uri
- * Required. URI of the key delivery service. This URI is inserted into the M3U8
- * header.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. URI of the key delivery service. This URI is inserted into the M3U8
- * header.
- *
- * Generated from protobuf field string key_uri = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getKeyUri()
- {
- return $this->key_uri;
- }
-
- /**
- * Required. URI of the key delivery service. This URI is inserted into the M3U8
- * header.
- *
- * Generated from protobuf field string key_uri = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setKeyUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->key_uri = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/Encryption/MpegCommonEncryption.php b/VideoTranscoder/src/V1beta1/Encryption/MpegCommonEncryption.php
deleted file mode 100644
index 7f5d06d3cc28..000000000000
--- a/VideoTranscoder/src/V1beta1/Encryption/MpegCommonEncryption.php
+++ /dev/null
@@ -1,118 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Encryption.MpegCommonEncryption
- */
-class MpegCommonEncryption extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. 128 bit Key ID represented as lowercase hexadecimal digits for use with
- * common encryption.
- *
- * Generated from protobuf field string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $key_id = '';
- /**
- * Required. Specify the encryption scheme.
- * Supported encryption schemes:
- * - 'cenc'
- * - 'cbcs'
- *
- * Generated from protobuf field string scheme = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- private $scheme = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key_id
- * Required. 128 bit Key ID represented as lowercase hexadecimal digits for use with
- * common encryption.
- * @type string $scheme
- * Required. Specify the encryption scheme.
- * Supported encryption schemes:
- * - 'cenc'
- * - 'cbcs'
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. 128 bit Key ID represented as lowercase hexadecimal digits for use with
- * common encryption.
- *
- * Generated from protobuf field string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getKeyId()
- {
- return $this->key_id;
- }
-
- /**
- * Required. 128 bit Key ID represented as lowercase hexadecimal digits for use with
- * common encryption.
- *
- * Generated from protobuf field string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setKeyId($var)
- {
- GPBUtil::checkString($var, True);
- $this->key_id = $var;
-
- return $this;
- }
-
- /**
- * Required. Specify the encryption scheme.
- * Supported encryption schemes:
- * - 'cenc'
- * - 'cbcs'
- *
- * Generated from protobuf field string scheme = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getScheme()
- {
- return $this->scheme;
- }
-
- /**
- * Required. Specify the encryption scheme.
- * Supported encryption schemes:
- * - 'cenc'
- * - 'cbcs'
- *
- * Generated from protobuf field string scheme = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setScheme($var)
- {
- GPBUtil::checkString($var, True);
- $this->scheme = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/Encryption/SampleAesEncryption.php b/VideoTranscoder/src/V1beta1/Encryption/SampleAesEncryption.php
deleted file mode 100644
index f4710d9ae8f4..000000000000
--- a/VideoTranscoder/src/V1beta1/Encryption/SampleAesEncryption.php
+++ /dev/null
@@ -1,72 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Encryption.SampleAesEncryption
- */
-class SampleAesEncryption extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. URI of the key delivery service. This URI is inserted into the M3U8
- * header.
- *
- * Generated from protobuf field string key_uri = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $key_uri = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key_uri
- * Required. URI of the key delivery service. This URI is inserted into the M3U8
- * header.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. URI of the key delivery service. This URI is inserted into the M3U8
- * header.
- *
- * Generated from protobuf field string key_uri = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getKeyUri()
- {
- return $this->key_uri;
- }
-
- /**
- * Required. URI of the key delivery service. This URI is inserted into the M3U8
- * header.
- *
- * Generated from protobuf field string key_uri = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setKeyUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->key_uri = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/FailureDetail.php b/VideoTranscoder/src/V1beta1/FailureDetail.php
deleted file mode 100644
index df6a62e369ca..000000000000
--- a/VideoTranscoder/src/V1beta1/FailureDetail.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.video.transcoder.v1beta1.FailureDetail
- */
-class FailureDetail extends \Google\Protobuf\Internal\Message
-{
- /**
- * A description of the failure.
- *
- * Generated from protobuf field string description = 1;
- */
- private $description = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $description
- * A description of the failure.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A description of the failure.
- *
- * Generated from protobuf field string description = 1;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * A description of the failure.
- *
- * Generated from protobuf field string description = 1;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/Gapic/TranscoderServiceGapicClient.php b/VideoTranscoder/src/V1beta1/Gapic/TranscoderServiceGapicClient.php
deleted file mode 100644
index d8dba09a5d0f..000000000000
--- a/VideoTranscoder/src/V1beta1/Gapic/TranscoderServiceGapicClient.php
+++ /dev/null
@@ -1,763 +0,0 @@
-locationName('[PROJECT]', '[LOCATION]');
- * $job = new Job();
- * $response = $transcoderServiceClient->createJob($formattedParent, $job);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * Many parameters require resource names to be formatted in a particular way. To
- * assist with these names, this class includes a format method for each type of
- * name, and additionally a parseName method to extract the individual identifiers
- * contained within formatted names that are returned by the API.
- *
- * @experimental
- *
- * @deprecated This class will be removed in the next major version update.
- */
-class TranscoderServiceGapicClient
-{
- use GapicClientTrait;
-
- /**
- * The name of the service.
- */
- const SERVICE_NAME = 'google.cloud.video.transcoder.v1beta1.TranscoderService';
-
- /**
- * The default address of the service.
- */
- const SERVICE_ADDRESS = 'transcoder.googleapis.com';
-
- /**
- * The default port of the service.
- */
- const DEFAULT_SERVICE_PORT = 443;
-
- /**
- * The name of the code generator, to be included in the agent header.
- */
- const CODEGEN_NAME = 'gapic';
-
- /**
- * The default scopes required by the service.
- */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- ];
-
- private static $jobNameTemplate;
-
- private static $jobTemplateNameTemplate;
-
- private static $locationNameTemplate;
-
- private static $pathTemplateMap;
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/transcoder_service_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/transcoder_service_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/transcoder_service_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/transcoder_service_rest_client_config.php',
- ],
- ],
- ];
- }
-
- private static function getJobNameTemplate()
- {
- if (self::$jobNameTemplate == null) {
- self::$jobNameTemplate = new PathTemplate('projects/{project}/locations/{location}/jobs/{job}');
- }
-
- return self::$jobNameTemplate;
- }
-
- private static function getJobTemplateNameTemplate()
- {
- if (self::$jobTemplateNameTemplate == null) {
- self::$jobTemplateNameTemplate = new PathTemplate('projects/{project}/locations/{location}/jobTemplates/{job_template}');
- }
-
- return self::$jobTemplateNameTemplate;
- }
-
- private static function getLocationNameTemplate()
- {
- if (self::$locationNameTemplate == null) {
- self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}');
- }
-
- return self::$locationNameTemplate;
- }
-
- private static function getPathTemplateMap()
- {
- if (self::$pathTemplateMap == null) {
- self::$pathTemplateMap = [
- 'job' => self::getJobNameTemplate(),
- 'jobTemplate' => self::getJobTemplateNameTemplate(),
- 'location' => self::getLocationNameTemplate(),
- ];
- }
-
- return self::$pathTemplateMap;
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a job
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $job
- *
- * @return string The formatted job resource.
- *
- * @experimental
- */
- public static function jobName($project, $location, $job)
- {
- return self::getJobNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'job' => $job,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a job_template
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $jobTemplate
- *
- * @return string The formatted job_template resource.
- *
- * @experimental
- */
- public static function jobTemplateName($project, $location, $jobTemplate)
- {
- return self::getJobTemplateNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'job_template' => $jobTemplate,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a location
- * resource.
- *
- * @param string $project
- * @param string $location
- *
- * @return string The formatted location resource.
- *
- * @experimental
- */
- public static function locationName($project, $location)
- {
- return self::getLocationNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- ]);
- }
-
- /**
- * Parses a formatted name string and returns an associative array of the components in the name.
- * The following name formats are supported:
- * Template: Pattern
- * - job: projects/{project}/locations/{location}/jobs/{job}
- * - jobTemplate: projects/{project}/locations/{location}/jobTemplates/{job_template}
- * - location: projects/{project}/locations/{location}
- *
- * The optional $template argument can be supplied to specify a particular pattern,
- * and must match one of the templates listed above. If no $template argument is
- * provided, or if the $template argument does not match one of the templates
- * listed, then parseName will check each of the supported templates, and return
- * the first match.
- *
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
- *
- * @return array An associative array from name component IDs to component values.
- *
- * @throws ValidationException If $formattedName could not be matched.
- *
- * @experimental
- */
- public static function parseName($formattedName, $template = null)
- {
- $templateMap = self::getPathTemplateMap();
- if ($template) {
- if (!isset($templateMap[$template])) {
- throw new ValidationException("Template name $template does not exist");
- }
-
- return $templateMap[$template]->match($formattedName);
- }
-
- foreach ($templateMap as $templateName => $pathTemplate) {
- try {
- return $pathTemplate->match($formattedName);
- } catch (ValidationException $ex) {
- // Swallow the exception to continue trying other path templates
- }
- }
-
- throw new ValidationException("Input did not match any known format. Input: $formattedName");
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $serviceAddress
- * **Deprecated**. This option will be removed in a future major release. Please
- * utilize the `$apiEndpoint` option instead.
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'transcoder.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $serviceAddress setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * }
- *
- * @throws ValidationException
- *
- * @experimental
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- }
-
- /**
- * Creates a job in the specified region.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedParent = $transcoderServiceClient->locationName('[PROJECT]', '[LOCATION]');
- * $job = new Job();
- * $response = $transcoderServiceClient->createJob($formattedParent, $job);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent location to create and process this job.
- * Format: `projects/{project}/locations/{location}`
- * @param Job $job Required. Parameters for creating transcoding job.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Job
- *
- * @throws ApiException if the remote call fails
- *
- * @experimental
- */
- public function createJob($parent, $job, array $optionalArgs = [])
- {
- $request = new CreateJobRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setJob($job);
- $requestParamHeaders['parent'] = $parent;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('CreateJob', Job::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Creates a job template in the specified region.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedParent = $transcoderServiceClient->locationName('[PROJECT]', '[LOCATION]');
- * $jobTemplate = new JobTemplate();
- * $jobTemplateId = 'job_template_id';
- * $response = $transcoderServiceClient->createJobTemplate($formattedParent, $jobTemplate, $jobTemplateId);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent location to create this job template.
- * Format: `projects/{project}/locations/{location}`
- * @param JobTemplate $jobTemplate Required. Parameters for creating job template.
- * @param string $jobTemplateId Required. The ID to use for the job template, which will become the final component
- * of the job template's resource name.
- *
- * This value should be 4-63 characters, and valid characters must match the
- * regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Video\Transcoder\V1beta1\JobTemplate
- *
- * @throws ApiException if the remote call fails
- *
- * @experimental
- */
- public function createJobTemplate($parent, $jobTemplate, $jobTemplateId, array $optionalArgs = [])
- {
- $request = new CreateJobTemplateRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setJobTemplate($jobTemplate);
- $request->setJobTemplateId($jobTemplateId);
- $requestParamHeaders['parent'] = $parent;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('CreateJobTemplate', JobTemplate::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Deletes a job.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedName = $transcoderServiceClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- * $transcoderServiceClient->deleteJob($formattedName);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the job to delete.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
- * }
- *
- * @throws ApiException if the remote call fails
- *
- * @experimental
- */
- public function deleteJob($name, array $optionalArgs = [])
- {
- $request = new DeleteJobRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('DeleteJob', GPBEmpty::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Deletes a job template.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedName = $transcoderServiceClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- * $transcoderServiceClient->deleteJobTemplate($formattedName);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the job template to delete.
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
- * }
- *
- * @throws ApiException if the remote call fails
- *
- * @experimental
- */
- public function deleteJobTemplate($name, array $optionalArgs = [])
- {
- $request = new DeleteJobTemplateRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('DeleteJobTemplate', GPBEmpty::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Returns the job data.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedName = $transcoderServiceClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- * $response = $transcoderServiceClient->getJob($formattedName);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the job to retrieve.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Job
- *
- * @throws ApiException if the remote call fails
- *
- * @experimental
- */
- public function getJob($name, array $optionalArgs = [])
- {
- $request = new GetJobRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetJob', Job::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Returns the job template data.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedName = $transcoderServiceClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- * $response = $transcoderServiceClient->getJobTemplate($formattedName);
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the job template to retrieve.
- * Format:
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Video\Transcoder\V1beta1\JobTemplate
- *
- * @throws ApiException if the remote call fails
- *
- * @experimental
- */
- public function getJobTemplate($name, array $optionalArgs = [])
- {
- $request = new GetJobTemplateRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetJobTemplate', JobTemplate::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Lists job templates in the specified region.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedParent = $transcoderServiceClient->locationName('[PROJECT]', '[LOCATION]');
- * // Iterate over pages of elements
- * $pagedResponse = $transcoderServiceClient->listJobTemplates($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $transcoderServiceClient->listJobTemplates($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent location from which to retrieve the collection of job templates.
- * Format: `projects/{project}/locations/{location}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type int $pageSize
- * The maximum number of resources contained in the underlying API
- * response. The API may return fewer values in a page, even if
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- *
- * @experimental
- */
- public function listJobTemplates($parent, array $optionalArgs = [])
- {
- $request = new ListJobTemplatesRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListJobTemplates', $optionalArgs, ListJobTemplatesResponse::class, $request);
- }
-
- /**
- * Lists jobs in the specified region.
- *
- * Sample code:
- * ```
- * $transcoderServiceClient = new TranscoderServiceClient();
- * try {
- * $formattedParent = $transcoderServiceClient->locationName('[PROJECT]', '[LOCATION]');
- * // Iterate over pages of elements
- * $pagedResponse = $transcoderServiceClient->listJobs($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $transcoderServiceClient->listJobs($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $transcoderServiceClient->close();
- * }
- * ```
- *
- * @param string $parent Required. Format: `projects/{project}/locations/{location}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type int $pageSize
- * The maximum number of resources contained in the underlying API
- * response. The API may return fewer values in a page, even if
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- *
- * @experimental
- */
- public function listJobs($parent, array $optionalArgs = [])
- {
- $request = new ListJobsRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListJobs', $optionalArgs, ListJobsResponse::class, $request);
- }
-}
diff --git a/VideoTranscoder/src/V1beta1/GetJobRequest.php b/VideoTranscoder/src/V1beta1/GetJobRequest.php
deleted file mode 100644
index b481b4e56769..000000000000
--- a/VideoTranscoder/src/V1beta1/GetJobRequest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.video.transcoder.v1beta1.GetJobRequest
- */
-class GetJobRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the job to retrieve.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- private $name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the job to retrieve.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Services::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the job to retrieve.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the job to retrieve.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/GetJobTemplateRequest.php b/VideoTranscoder/src/V1beta1/GetJobTemplateRequest.php
deleted file mode 100644
index 5291c00791b3..000000000000
--- a/VideoTranscoder/src/V1beta1/GetJobTemplateRequest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-google.cloud.video.transcoder.v1beta1.GetJobTemplateRequest
- */
-class GetJobTemplateRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the job template to retrieve.
- * Format:
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- private $name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the job template to retrieve.
- * Format:
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Services::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the job template to retrieve.
- * Format:
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the job template to retrieve.
- * Format:
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/Input.php b/VideoTranscoder/src/V1beta1/Input.php
deleted file mode 100644
index f0d15cfbaf01..000000000000
--- a/VideoTranscoder/src/V1beta1/Input.php
+++ /dev/null
@@ -1,157 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Input
- */
-class Input extends \Google\Protobuf\Internal\Message
-{
- /**
- * A unique key for this input. Must be specified when using advanced
- * mapping and edit lists.
- *
- * Generated from protobuf field string key = 1;
- */
- private $key = '';
- /**
- * URI of the media. Input files must be at least 5 seconds in duration and
- * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
- * If empty, the value will be populated from `Job.input_uri`.
- *
- * Generated from protobuf field string uri = 2;
- */
- private $uri = '';
- /**
- * Preprocessing configurations.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig preprocessing_config = 3;
- */
- private $preprocessing_config = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key
- * A unique key for this input. Must be specified when using advanced
- * mapping and edit lists.
- * @type string $uri
- * URI of the media. Input files must be at least 5 seconds in duration and
- * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
- * If empty, the value will be populated from `Job.input_uri`.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig $preprocessing_config
- * Preprocessing configurations.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A unique key for this input. Must be specified when using advanced
- * mapping and edit lists.
- *
- * Generated from protobuf field string key = 1;
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * A unique key for this input. Must be specified when using advanced
- * mapping and edit lists.
- *
- * Generated from protobuf field string key = 1;
- * @param string $var
- * @return $this
- */
- public function setKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->key = $var;
-
- return $this;
- }
-
- /**
- * URI of the media. Input files must be at least 5 seconds in duration and
- * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
- * If empty, the value will be populated from `Job.input_uri`.
- *
- * Generated from protobuf field string uri = 2;
- * @return string
- */
- public function getUri()
- {
- return $this->uri;
- }
-
- /**
- * URI of the media. Input files must be at least 5 seconds in duration and
- * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
- * If empty, the value will be populated from `Job.input_uri`.
- *
- * Generated from protobuf field string uri = 2;
- * @param string $var
- * @return $this
- */
- public function setUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->uri = $var;
-
- return $this;
- }
-
- /**
- * Preprocessing configurations.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig preprocessing_config = 3;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig|null
- */
- public function getPreprocessingConfig()
- {
- return $this->preprocessing_config;
- }
-
- public function hasPreprocessingConfig()
- {
- return isset($this->preprocessing_config);
- }
-
- public function clearPreprocessingConfig()
- {
- unset($this->preprocessing_config);
- }
-
- /**
- * Preprocessing configurations.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig preprocessing_config = 3;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig $var
- * @return $this
- */
- public function setPreprocessingConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig::class);
- $this->preprocessing_config = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/Job.php b/VideoTranscoder/src/V1beta1/Job.php
deleted file mode 100644
index 5b4bdc32a298..000000000000
--- a/VideoTranscoder/src/V1beta1/Job.php
+++ /dev/null
@@ -1,675 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Job
- */
-class Job extends \Google\Protobuf\Internal\Message
-{
- /**
- * The resource name of the job.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- *
- * Generated from protobuf field string name = 1;
- */
- private $name = '';
- /**
- * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
- * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
- * URI of the media. Input files must be at least 5 seconds in duration and
- * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
- *
- * Generated from protobuf field string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY];
- */
- private $input_uri = '';
- /**
- * Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or
- * `JobTemplate.config.output.uri` when using template.
- * URI for the output file(s). For example, `gs://my-bucket/outputs/`.
- *
- * Generated from protobuf field string output_uri = 3 [(.google.api.field_behavior) = INPUT_ONLY];
- */
- private $output_uri = '';
- /**
- * Specify the priority of the job. Enter a value between 0 and 100, where 0
- * is the lowest priority and 100 is the highest priority. The default is 0.
- *
- * Generated from protobuf field int32 priority = 6;
- */
- private $priority = 0;
- /**
- * Output only. The origin URI.
- *
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Job.OriginUri origin_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $origin_uri = null;
- /**
- * Output only. The current state of the job.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Job.ProcessingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $state = 0;
- /**
- * Output only. Estimated fractional progress, from `0` to `1` for each
- * step.
- *
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Progress progress = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $progress = null;
- /**
- * Output only. A description of the reason for the failure. This property is
- * always present when `state` is `FAILED`.
- *
- * Generated from protobuf field string failure_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $failure_reason = '';
- /**
- * Output only. List of failure details. This property may contain additional
- * information about the failure when `failure_reason` is present.
- *
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.FailureDetail failure_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $failure_details;
- /**
- * Output only. The time the job was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $create_time = null;
- /**
- * Output only. The time the transcoding started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $start_time = null;
- /**
- * Output only. The time the transcoding finished.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $end_time = null;
- /**
- * Job time to live value in days, which will be effective after job
- * completion. Job should be deleted automatically after the given TTL. Enter
- * a value between 1 and 90. The default is 30.
- *
- * Generated from protobuf field int32 ttl_after_completion_days = 15;
- */
- private $ttl_after_completion_days = 0;
- protected $job_config;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * The resource name of the job.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- * @type string $input_uri
- * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
- * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
- * URI of the media. Input files must be at least 5 seconds in duration and
- * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
- * @type string $output_uri
- * Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or
- * `JobTemplate.config.output.uri` when using template.
- * URI for the output file(s). For example, `gs://my-bucket/outputs/`.
- * @type string $template_id
- * Input only. Specify the `template_id` to use for populating `Job.config`. The default
- * is `preset/web-hd`.
- * Preset Transcoder templates:
- * - `preset/{preset_id}`
- * - User defined JobTemplate:
- * `{job_template_id}`
- * @type \Google\Cloud\Video\Transcoder\V1beta1\JobConfig $config
- * The configuration for this job.
- * @type int $priority
- * Specify the priority of the job. Enter a value between 0 and 100, where 0
- * is the lowest priority and 100 is the highest priority. The default is 0.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Job\OriginUri $origin_uri
- * Output only. The origin URI.
- *
- * @type int $state
- * Output only. The current state of the job.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Progress $progress
- * Output only. Estimated fractional progress, from `0` to `1` for each
- * step.
- *
- * @type string $failure_reason
- * Output only. A description of the reason for the failure. This property is
- * always present when `state` is `FAILED`.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\FailureDetail[]|\Google\Protobuf\Internal\RepeatedField $failure_details
- * Output only. List of failure details. This property may contain additional
- * information about the failure when `failure_reason` is present.
- *
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The time the job was created.
- * @type \Google\Protobuf\Timestamp $start_time
- * Output only. The time the transcoding started.
- * @type \Google\Protobuf\Timestamp $end_time
- * Output only. The time the transcoding finished.
- * @type int $ttl_after_completion_days
- * Job time to live value in days, which will be effective after job
- * completion. Job should be deleted automatically after the given TTL. Enter
- * a value between 1 and 90. The default is 30.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The resource name of the job.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * The resource name of the job.
- * Format: `projects/{project}/locations/{location}/jobs/{job}`
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
- * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
- * URI of the media. Input files must be at least 5 seconds in duration and
- * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
- *
- * Generated from protobuf field string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY];
- * @return string
- */
- public function getInputUri()
- {
- return $this->input_uri;
- }
-
- /**
- * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
- * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
- * URI of the media. Input files must be at least 5 seconds in duration and
- * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
- *
- * Generated from protobuf field string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setInputUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->input_uri = $var;
-
- return $this;
- }
-
- /**
- * Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or
- * `JobTemplate.config.output.uri` when using template.
- * URI for the output file(s). For example, `gs://my-bucket/outputs/`.
- *
- * Generated from protobuf field string output_uri = 3 [(.google.api.field_behavior) = INPUT_ONLY];
- * @return string
- */
- public function getOutputUri()
- {
- return $this->output_uri;
- }
-
- /**
- * Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or
- * `JobTemplate.config.output.uri` when using template.
- * URI for the output file(s). For example, `gs://my-bucket/outputs/`.
- *
- * Generated from protobuf field string output_uri = 3 [(.google.api.field_behavior) = INPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setOutputUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->output_uri = $var;
-
- return $this;
- }
-
- /**
- * Input only. Specify the `template_id` to use for populating `Job.config`. The default
- * is `preset/web-hd`.
- * Preset Transcoder templates:
- * - `preset/{preset_id}`
- * - User defined JobTemplate:
- * `{job_template_id}`
- *
- * Generated from protobuf field string template_id = 4 [(.google.api.field_behavior) = INPUT_ONLY];
- * @return string
- */
- public function getTemplateId()
- {
- return $this->readOneof(4);
- }
-
- public function hasTemplateId()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Input only. Specify the `template_id` to use for populating `Job.config`. The default
- * is `preset/web-hd`.
- * Preset Transcoder templates:
- * - `preset/{preset_id}`
- * - User defined JobTemplate:
- * `{job_template_id}`
- *
- * Generated from protobuf field string template_id = 4 [(.google.api.field_behavior) = INPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setTemplateId($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * The configuration for this job.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.JobConfig config = 5;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\JobConfig|null
- */
- public function getConfig()
- {
- return $this->readOneof(5);
- }
-
- public function hasConfig()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * The configuration for this job.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.JobConfig config = 5;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\JobConfig $var
- * @return $this
- */
- public function setConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\JobConfig::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * Specify the priority of the job. Enter a value between 0 and 100, where 0
- * is the lowest priority and 100 is the highest priority. The default is 0.
- *
- * Generated from protobuf field int32 priority = 6;
- * @return int
- */
- public function getPriority()
- {
- return $this->priority;
- }
-
- /**
- * Specify the priority of the job. Enter a value between 0 and 100, where 0
- * is the lowest priority and 100 is the highest priority. The default is 0.
- *
- * Generated from protobuf field int32 priority = 6;
- * @param int $var
- * @return $this
- */
- public function setPriority($var)
- {
- GPBUtil::checkInt32($var);
- $this->priority = $var;
-
- return $this;
- }
-
- /**
- * Output only. The origin URI.
- *
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Job.OriginUri origin_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Job\OriginUri|null
- */
- public function getOriginUri()
- {
- return $this->origin_uri;
- }
-
- public function hasOriginUri()
- {
- return isset($this->origin_uri);
- }
-
- public function clearOriginUri()
- {
- unset($this->origin_uri);
- }
-
- /**
- * Output only. The origin URI.
- *
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Job.OriginUri origin_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Job\OriginUri $var
- * @return $this
- */
- public function setOriginUri($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Job\OriginUri::class);
- $this->origin_uri = $var;
-
- return $this;
- }
-
- /**
- * Output only. The current state of the job.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Job.ProcessingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The current state of the job.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Job.ProcessingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Video\Transcoder\V1beta1\Job\ProcessingState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Estimated fractional progress, from `0` to `1` for each
- * step.
- *
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Progress progress = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Progress|null
- */
- public function getProgress()
- {
- return $this->progress;
- }
-
- public function hasProgress()
- {
- return isset($this->progress);
- }
-
- public function clearProgress()
- {
- unset($this->progress);
- }
-
- /**
- * Output only. Estimated fractional progress, from `0` to `1` for each
- * step.
- *
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Progress progress = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Progress $var
- * @return $this
- */
- public function setProgress($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Progress::class);
- $this->progress = $var;
-
- return $this;
- }
-
- /**
- * Output only. A description of the reason for the failure. This property is
- * always present when `state` is `FAILED`.
- *
- * Generated from protobuf field string failure_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getFailureReason()
- {
- return $this->failure_reason;
- }
-
- /**
- * Output only. A description of the reason for the failure. This property is
- * always present when `state` is `FAILED`.
- *
- * Generated from protobuf field string failure_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setFailureReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->failure_reason = $var;
-
- return $this;
- }
-
- /**
- * Output only. List of failure details. This property may contain additional
- * information about the failure when `failure_reason` is present.
- *
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.FailureDetail failure_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFailureDetails()
- {
- return $this->failure_details;
- }
-
- /**
- * Output only. List of failure details. This property may contain additional
- * information about the failure when `failure_reason` is present.
- *
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.FailureDetail failure_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Video\Transcoder\V1beta1\FailureDetail[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFailureDetails($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\FailureDetail::class);
- $this->failure_details = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The time the job was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The time the job was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time the transcoding started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * Output only. The time the transcoding started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time the transcoding finished.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * Output only. The time the transcoding finished.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * Job time to live value in days, which will be effective after job
- * completion. Job should be deleted automatically after the given TTL. Enter
- * a value between 1 and 90. The default is 30.
- *
- * Generated from protobuf field int32 ttl_after_completion_days = 15;
- * @return int
- */
- public function getTtlAfterCompletionDays()
- {
- return $this->ttl_after_completion_days;
- }
-
- /**
- * Job time to live value in days, which will be effective after job
- * completion. Job should be deleted automatically after the given TTL. Enter
- * a value between 1 and 90. The default is 30.
- *
- * Generated from protobuf field int32 ttl_after_completion_days = 15;
- * @param int $var
- * @return $this
- */
- public function setTtlAfterCompletionDays($var)
- {
- GPBUtil::checkInt32($var);
- $this->ttl_after_completion_days = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getJobConfig()
- {
- return $this->whichOneof("job_config");
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/Job/OriginUri.php b/VideoTranscoder/src/V1beta1/Job/OriginUri.php
deleted file mode 100644
index a74f11de9f24..000000000000
--- a/VideoTranscoder/src/V1beta1/Job/OriginUri.php
+++ /dev/null
@@ -1,110 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Job.OriginUri
- */
-class OriginUri extends \Google\Protobuf\Internal\Message
-{
- /**
- * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
- * If multiple HLS manifests are created, only the first one is listed.
- *
- * Generated from protobuf field string hls = 1;
- */
- private $hls = '';
- /**
- * Dash manifest URI. If multiple Dash manifests are created, only the first
- * one is listed.
- *
- * Generated from protobuf field string dash = 2;
- */
- private $dash = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $hls
- * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
- * If multiple HLS manifests are created, only the first one is listed.
- * @type string $dash
- * Dash manifest URI. If multiple Dash manifests are created, only the first
- * one is listed.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
- * If multiple HLS manifests are created, only the first one is listed.
- *
- * Generated from protobuf field string hls = 1;
- * @return string
- */
- public function getHls()
- {
- return $this->hls;
- }
-
- /**
- * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
- * If multiple HLS manifests are created, only the first one is listed.
- *
- * Generated from protobuf field string hls = 1;
- * @param string $var
- * @return $this
- */
- public function setHls($var)
- {
- GPBUtil::checkString($var, True);
- $this->hls = $var;
-
- return $this;
- }
-
- /**
- * Dash manifest URI. If multiple Dash manifests are created, only the first
- * one is listed.
- *
- * Generated from protobuf field string dash = 2;
- * @return string
- */
- public function getDash()
- {
- return $this->dash;
- }
-
- /**
- * Dash manifest URI. If multiple Dash manifests are created, only the first
- * one is listed.
- *
- * Generated from protobuf field string dash = 2;
- * @param string $var
- * @return $this
- */
- public function setDash($var)
- {
- GPBUtil::checkString($var, True);
- $this->dash = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/Job/ProcessingState.php b/VideoTranscoder/src/V1beta1/Job/ProcessingState.php
deleted file mode 100644
index 07a839d896ba..000000000000
--- a/VideoTranscoder/src/V1beta1/Job/ProcessingState.php
+++ /dev/null
@@ -1,77 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Job.ProcessingState
- */
-class ProcessingState
-{
- /**
- * The processing state is not specified.
- *
- * Generated from protobuf enum PROCESSING_STATE_UNSPECIFIED = 0;
- */
- const PROCESSING_STATE_UNSPECIFIED = 0;
- /**
- * The job is enqueued and will be picked up for processing soon.
- *
- * Generated from protobuf enum PENDING = 1;
- */
- const PENDING = 1;
- /**
- * The job is being processed.
- *
- * Generated from protobuf enum RUNNING = 2;
- */
- const RUNNING = 2;
- /**
- * The job has been completed successfully.
- *
- * Generated from protobuf enum SUCCEEDED = 3;
- */
- const SUCCEEDED = 3;
- /**
- * The job has failed. For additional information, see `failure_reason` and
- * `failure_details`
- *
- * Generated from protobuf enum FAILED = 4;
- */
- const FAILED = 4;
-
- private static $valueToName = [
- self::PROCESSING_STATE_UNSPECIFIED => 'PROCESSING_STATE_UNSPECIFIED',
- self::PENDING => 'PENDING',
- self::RUNNING => 'RUNNING',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/JobConfig.php b/VideoTranscoder/src/V1beta1/JobConfig.php
deleted file mode 100644
index fe21cf76aff5..000000000000
--- a/VideoTranscoder/src/V1beta1/JobConfig.php
+++ /dev/null
@@ -1,401 +0,0 @@
-google.cloud.video.transcoder.v1beta1.JobConfig
- */
-class JobConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * List of input assets stored in Cloud Storage.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Input inputs = 1;
- */
- private $inputs;
- /**
- * List of `Edit atom`s. Defines the ultimate timeline of the resulting
- * file or manifest.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.EditAtom edit_list = 2;
- */
- private $edit_list;
- /**
- * List of elementary streams.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.ElementaryStream elementary_streams = 3;
- */
- private $elementary_streams;
- /**
- * List of multiplexing settings for output streams.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.MuxStream mux_streams = 4;
- */
- private $mux_streams;
- /**
- * List of output manifests.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Manifest manifests = 5;
- */
- private $manifests;
- /**
- * Output configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Output output = 6;
- */
- private $output = null;
- /**
- * List of ad breaks. Specifies where to insert ad break tags in the output
- * manifests.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AdBreak ad_breaks = 7;
- */
- private $ad_breaks;
- /**
- * Destination on Pub/Sub.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PubsubDestination pubsub_destination = 8;
- */
- private $pubsub_destination = null;
- /**
- * List of output sprite sheets.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.SpriteSheet sprite_sheets = 9;
- */
- private $sprite_sheets;
- /**
- * List of overlays on the output video, in descending Z-order.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Overlay overlays = 10;
- */
- private $overlays;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Input[]|\Google\Protobuf\Internal\RepeatedField $inputs
- * List of input assets stored in Cloud Storage.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\EditAtom[]|\Google\Protobuf\Internal\RepeatedField $edit_list
- * List of `Edit atom`s. Defines the ultimate timeline of the resulting
- * file or manifest.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\ElementaryStream[]|\Google\Protobuf\Internal\RepeatedField $elementary_streams
- * List of elementary streams.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\MuxStream[]|\Google\Protobuf\Internal\RepeatedField $mux_streams
- * List of multiplexing settings for output streams.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Manifest[]|\Google\Protobuf\Internal\RepeatedField $manifests
- * List of output manifests.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Output $output
- * Output configuration.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\AdBreak[]|\Google\Protobuf\Internal\RepeatedField $ad_breaks
- * List of ad breaks. Specifies where to insert ad break tags in the output
- * manifests.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\PubsubDestination $pubsub_destination
- * Destination on Pub/Sub.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\SpriteSheet[]|\Google\Protobuf\Internal\RepeatedField $sprite_sheets
- * List of output sprite sheets.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Overlay[]|\Google\Protobuf\Internal\RepeatedField $overlays
- * List of overlays on the output video, in descending Z-order.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * List of input assets stored in Cloud Storage.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Input inputs = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getInputs()
- {
- return $this->inputs;
- }
-
- /**
- * List of input assets stored in Cloud Storage.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Input inputs = 1;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Input[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setInputs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\Input::class);
- $this->inputs = $arr;
-
- return $this;
- }
-
- /**
- * List of `Edit atom`s. Defines the ultimate timeline of the resulting
- * file or manifest.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.EditAtom edit_list = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getEditList()
- {
- return $this->edit_list;
- }
-
- /**
- * List of `Edit atom`s. Defines the ultimate timeline of the resulting
- * file or manifest.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.EditAtom edit_list = 2;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\EditAtom[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setEditList($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\EditAtom::class);
- $this->edit_list = $arr;
-
- return $this;
- }
-
- /**
- * List of elementary streams.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.ElementaryStream elementary_streams = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getElementaryStreams()
- {
- return $this->elementary_streams;
- }
-
- /**
- * List of elementary streams.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.ElementaryStream elementary_streams = 3;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\ElementaryStream[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setElementaryStreams($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\ElementaryStream::class);
- $this->elementary_streams = $arr;
-
- return $this;
- }
-
- /**
- * List of multiplexing settings for output streams.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.MuxStream mux_streams = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMuxStreams()
- {
- return $this->mux_streams;
- }
-
- /**
- * List of multiplexing settings for output streams.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.MuxStream mux_streams = 4;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\MuxStream[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMuxStreams($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\MuxStream::class);
- $this->mux_streams = $arr;
-
- return $this;
- }
-
- /**
- * List of output manifests.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Manifest manifests = 5;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getManifests()
- {
- return $this->manifests;
- }
-
- /**
- * List of output manifests.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Manifest manifests = 5;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Manifest[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setManifests($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\Manifest::class);
- $this->manifests = $arr;
-
- return $this;
- }
-
- /**
- * Output configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Output output = 6;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Output|null
- */
- public function getOutput()
- {
- return $this->output;
- }
-
- public function hasOutput()
- {
- return isset($this->output);
- }
-
- public function clearOutput()
- {
- unset($this->output);
- }
-
- /**
- * Output configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Output output = 6;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Output $var
- * @return $this
- */
- public function setOutput($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Output::class);
- $this->output = $var;
-
- return $this;
- }
-
- /**
- * List of ad breaks. Specifies where to insert ad break tags in the output
- * manifests.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AdBreak ad_breaks = 7;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getAdBreaks()
- {
- return $this->ad_breaks;
- }
-
- /**
- * List of ad breaks. Specifies where to insert ad break tags in the output
- * manifests.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.AdBreak ad_breaks = 7;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\AdBreak[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setAdBreaks($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\AdBreak::class);
- $this->ad_breaks = $arr;
-
- return $this;
- }
-
- /**
- * Destination on Pub/Sub.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PubsubDestination pubsub_destination = 8;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\PubsubDestination|null
- */
- public function getPubsubDestination()
- {
- return $this->pubsub_destination;
- }
-
- public function hasPubsubDestination()
- {
- return isset($this->pubsub_destination);
- }
-
- public function clearPubsubDestination()
- {
- unset($this->pubsub_destination);
- }
-
- /**
- * Destination on Pub/Sub.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PubsubDestination pubsub_destination = 8;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\PubsubDestination $var
- * @return $this
- */
- public function setPubsubDestination($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\PubsubDestination::class);
- $this->pubsub_destination = $var;
-
- return $this;
- }
-
- /**
- * List of output sprite sheets.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.SpriteSheet sprite_sheets = 9;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSpriteSheets()
- {
- return $this->sprite_sheets;
- }
-
- /**
- * List of output sprite sheets.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.SpriteSheet sprite_sheets = 9;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\SpriteSheet[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSpriteSheets($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\SpriteSheet::class);
- $this->sprite_sheets = $arr;
-
- return $this;
- }
-
- /**
- * List of overlays on the output video, in descending Z-order.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Overlay overlays = 10;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getOverlays()
- {
- return $this->overlays;
- }
-
- /**
- * List of overlays on the output video, in descending Z-order.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Overlay overlays = 10;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Overlay[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setOverlays($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\Overlay::class);
- $this->overlays = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/JobTemplate.php b/VideoTranscoder/src/V1beta1/JobTemplate.php
deleted file mode 100644
index 9fb8966ac80c..000000000000
--- a/VideoTranscoder/src/V1beta1/JobTemplate.php
+++ /dev/null
@@ -1,119 +0,0 @@
-google.cloud.video.transcoder.v1beta1.JobTemplate
- */
-class JobTemplate extends \Google\Protobuf\Internal\Message
-{
- /**
- * The resource name of the job template.
- * Format:
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- *
- * Generated from protobuf field string name = 1;
- */
- private $name = '';
- /**
- * The configuration for this template.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.JobConfig config = 2;
- */
- private $config = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * The resource name of the job template.
- * Format:
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- * @type \Google\Cloud\Video\Transcoder\V1beta1\JobConfig $config
- * The configuration for this template.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The resource name of the job template.
- * Format:
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * The resource name of the job template.
- * Format:
- * `projects/{project}/locations/{location}/jobTemplates/{job_template}`
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * The configuration for this template.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.JobConfig config = 2;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\JobConfig|null
- */
- public function getConfig()
- {
- return $this->config;
- }
-
- public function hasConfig()
- {
- return isset($this->config);
- }
-
- public function clearConfig()
- {
- unset($this->config);
- }
-
- /**
- * The configuration for this template.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.JobConfig config = 2;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\JobConfig $var
- * @return $this
- */
- public function setConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\JobConfig::class);
- $this->config = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/ListJobTemplatesRequest.php b/VideoTranscoder/src/V1beta1/ListJobTemplatesRequest.php
deleted file mode 100644
index 87de84e3104b..000000000000
--- a/VideoTranscoder/src/V1beta1/ListJobTemplatesRequest.php
+++ /dev/null
@@ -1,143 +0,0 @@
-google.cloud.video.transcoder.v1beta1.ListJobTemplatesRequest
- */
-class ListJobTemplatesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent location from which to retrieve the collection of job templates.
- * Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- private $parent = '';
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- private $page_size = 0;
- /**
- * The `next_page_token` value returned from a previous List request, if
- * any.
- *
- * Generated from protobuf field string page_token = 3;
- */
- private $page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent location from which to retrieve the collection of job templates.
- * Format: `projects/{project}/locations/{location}`
- * @type int $page_size
- * The maximum number of items to return.
- * @type string $page_token
- * The `next_page_token` value returned from a previous List request, if
- * any.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Services::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent location from which to retrieve the collection of job templates.
- * Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent location from which to retrieve the collection of job templates.
- * Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * The `next_page_token` value returned from a previous List request, if
- * any.
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * The `next_page_token` value returned from a previous List request, if
- * any.
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/ListJobTemplatesResponse.php b/VideoTranscoder/src/V1beta1/ListJobTemplatesResponse.php
deleted file mode 100644
index 0a092acdd2c0..000000000000
--- a/VideoTranscoder/src/V1beta1/ListJobTemplatesResponse.php
+++ /dev/null
@@ -1,101 +0,0 @@
-google.cloud.video.transcoder.v1beta1.ListJobTemplatesResponse
- */
-class ListJobTemplatesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * List of job templates in the specified region.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.JobTemplate job_templates = 1;
- */
- private $job_templates;
- /**
- * The pagination token.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- private $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Video\Transcoder\V1beta1\JobTemplate[]|\Google\Protobuf\Internal\RepeatedField $job_templates
- * List of job templates in the specified region.
- * @type string $next_page_token
- * The pagination token.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Services::initOnce();
- parent::__construct($data);
- }
-
- /**
- * List of job templates in the specified region.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.JobTemplate job_templates = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getJobTemplates()
- {
- return $this->job_templates;
- }
-
- /**
- * List of job templates in the specified region.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.JobTemplate job_templates = 1;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\JobTemplate[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setJobTemplates($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\JobTemplate::class);
- $this->job_templates = $arr;
-
- return $this;
- }
-
- /**
- * The pagination token.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * The pagination token.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/ListJobsRequest.php b/VideoTranscoder/src/V1beta1/ListJobsRequest.php
deleted file mode 100644
index f6a2795a6d8e..000000000000
--- a/VideoTranscoder/src/V1beta1/ListJobsRequest.php
+++ /dev/null
@@ -1,140 +0,0 @@
-google.cloud.video.transcoder.v1beta1.ListJobsRequest
- */
-class ListJobsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- private $parent = '';
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- private $page_size = 0;
- /**
- * The `next_page_token` value returned from a previous List request, if
- * any.
- *
- * Generated from protobuf field string page_token = 3;
- */
- private $page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. Format: `projects/{project}/locations/{location}`
- * @type int $page_size
- * The maximum number of items to return.
- * @type string $page_token
- * The `next_page_token` value returned from a previous List request, if
- * any.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Services::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. Format: `projects/{project}/locations/{location}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * The `next_page_token` value returned from a previous List request, if
- * any.
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * The `next_page_token` value returned from a previous List request, if
- * any.
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/ListJobsResponse.php b/VideoTranscoder/src/V1beta1/ListJobsResponse.php
deleted file mode 100644
index 062cd8435005..000000000000
--- a/VideoTranscoder/src/V1beta1/ListJobsResponse.php
+++ /dev/null
@@ -1,101 +0,0 @@
-google.cloud.video.transcoder.v1beta1.ListJobsResponse
- */
-class ListJobsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * List of jobs in the specified region.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Job jobs = 1;
- */
- private $jobs;
- /**
- * The pagination token.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- private $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Job[]|\Google\Protobuf\Internal\RepeatedField $jobs
- * List of jobs in the specified region.
- * @type string $next_page_token
- * The pagination token.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Services::initOnce();
- parent::__construct($data);
- }
-
- /**
- * List of jobs in the specified region.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Job jobs = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getJobs()
- {
- return $this->jobs;
- }
-
- /**
- * List of jobs in the specified region.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Job jobs = 1;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Job[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setJobs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\Job::class);
- $this->jobs = $arr;
-
- return $this;
- }
-
- /**
- * The pagination token.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * The pagination token.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/Manifest.php b/VideoTranscoder/src/V1beta1/Manifest.php
deleted file mode 100644
index ff2515802e93..000000000000
--- a/VideoTranscoder/src/V1beta1/Manifest.php
+++ /dev/null
@@ -1,151 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Manifest
- */
-class Manifest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The name of the generated file. The default is `"manifest"` with the
- * extension suffix corresponding to the `Manifest.type`.
- *
- * Generated from protobuf field string file_name = 1;
- */
- private $file_name = '';
- /**
- * Required. Type of the manifest, can be "HLS" or "DASH".
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Manifest.ManifestType type = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- private $type = 0;
- /**
- * Required. List of user given `MuxStream.key`s that should appear in this manifest.
- * When `Manifest.type` is `HLS`, a media manifest with name `MuxStream.key`
- * and `.m3u8` extension is generated for each element of the
- * `Manifest.mux_streams`.
- *
- * Generated from protobuf field repeated string mux_streams = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- private $mux_streams;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $file_name
- * The name of the generated file. The default is `"manifest"` with the
- * extension suffix corresponding to the `Manifest.type`.
- * @type int $type
- * Required. Type of the manifest, can be "HLS" or "DASH".
- * @type string[]|\Google\Protobuf\Internal\RepeatedField $mux_streams
- * Required. List of user given `MuxStream.key`s that should appear in this manifest.
- * When `Manifest.type` is `HLS`, a media manifest with name `MuxStream.key`
- * and `.m3u8` extension is generated for each element of the
- * `Manifest.mux_streams`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The name of the generated file. The default is `"manifest"` with the
- * extension suffix corresponding to the `Manifest.type`.
- *
- * Generated from protobuf field string file_name = 1;
- * @return string
- */
- public function getFileName()
- {
- return $this->file_name;
- }
-
- /**
- * The name of the generated file. The default is `"manifest"` with the
- * extension suffix corresponding to the `Manifest.type`.
- *
- * Generated from protobuf field string file_name = 1;
- * @param string $var
- * @return $this
- */
- public function setFileName($var)
- {
- GPBUtil::checkString($var, True);
- $this->file_name = $var;
-
- return $this;
- }
-
- /**
- * Required. Type of the manifest, can be "HLS" or "DASH".
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Manifest.ManifestType type = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Required. Type of the manifest, can be "HLS" or "DASH".
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Manifest.ManifestType type = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Video\Transcoder\V1beta1\Manifest\ManifestType::class);
- $this->type = $var;
-
- return $this;
- }
-
- /**
- * Required. List of user given `MuxStream.key`s that should appear in this manifest.
- * When `Manifest.type` is `HLS`, a media manifest with name `MuxStream.key`
- * and `.m3u8` extension is generated for each element of the
- * `Manifest.mux_streams`.
- *
- * Generated from protobuf field repeated string mux_streams = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMuxStreams()
- {
- return $this->mux_streams;
- }
-
- /**
- * Required. List of user given `MuxStream.key`s that should appear in this manifest.
- * When `Manifest.type` is `HLS`, a media manifest with name `MuxStream.key`
- * and `.m3u8` extension is generated for each element of the
- * `Manifest.mux_streams`.
- *
- * Generated from protobuf field repeated string mux_streams = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMuxStreams($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->mux_streams = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/Manifest/ManifestType.php b/VideoTranscoder/src/V1beta1/Manifest/ManifestType.php
deleted file mode 100644
index 4644db871eab..000000000000
--- a/VideoTranscoder/src/V1beta1/Manifest/ManifestType.php
+++ /dev/null
@@ -1,62 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Manifest.ManifestType
- */
-class ManifestType
-{
- /**
- * The manifest type is not specified.
- *
- * Generated from protobuf enum MANIFEST_TYPE_UNSPECIFIED = 0;
- */
- const MANIFEST_TYPE_UNSPECIFIED = 0;
- /**
- * Create `"HLS"` manifest. The corresponding file extension is `".m3u8"`.
- *
- * Generated from protobuf enum HLS = 1;
- */
- const HLS = 1;
- /**
- * Create `"DASH"` manifest. The corresponding file extension is `".mpd"`.
- *
- * Generated from protobuf enum DASH = 2;
- */
- const DASH = 2;
-
- private static $valueToName = [
- self::MANIFEST_TYPE_UNSPECIFIED => 'MANIFEST_TYPE_UNSPECIFIED',
- self::HLS => 'HLS',
- self::DASH => 'DASH',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/MuxStream.php b/VideoTranscoder/src/V1beta1/MuxStream.php
deleted file mode 100644
index f765e9e6b151..000000000000
--- a/VideoTranscoder/src/V1beta1/MuxStream.php
+++ /dev/null
@@ -1,293 +0,0 @@
-google.cloud.video.transcoder.v1beta1.MuxStream
- */
-class MuxStream extends \Google\Protobuf\Internal\Message
-{
- /**
- * A unique key for this multiplexed stream. HLS media manifests will be
- * named `MuxStream.key` with the `".m3u8"` extension suffix.
- *
- * Generated from protobuf field string key = 1;
- */
- private $key = '';
- /**
- * The name of the generated file. The default is `MuxStream.key` with the
- * extension suffix corresponding to the `MuxStream.container`.
- * Individual segments also have an incremental 10-digit zero-padded suffix
- * starting from 0 before the extension, such as `"mux_stream0000000123.ts"`.
- *
- * Generated from protobuf field string file_name = 2;
- */
- private $file_name = '';
- /**
- * The container format. The default is `"mp4"`
- * Supported container formats:
- * - 'ts'
- * - 'fmp4'- the corresponding file extension is `".m4s"`
- * - 'mp4'
- * - 'vtt'
- *
- * Generated from protobuf field string container = 3;
- */
- private $container = '';
- /**
- * List of `ElementaryStream.key`s multiplexed in this stream.
- *
- * Generated from protobuf field repeated string elementary_streams = 4;
- */
- private $elementary_streams;
- /**
- * Segment settings for `"ts"`, `"fmp4"` and `"vtt"`.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.SegmentSettings segment_settings = 5;
- */
- private $segment_settings = null;
- /**
- * Encryption settings.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Encryption encryption = 6;
- */
- private $encryption = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key
- * A unique key for this multiplexed stream. HLS media manifests will be
- * named `MuxStream.key` with the `".m3u8"` extension suffix.
- * @type string $file_name
- * The name of the generated file. The default is `MuxStream.key` with the
- * extension suffix corresponding to the `MuxStream.container`.
- * Individual segments also have an incremental 10-digit zero-padded suffix
- * starting from 0 before the extension, such as `"mux_stream0000000123.ts"`.
- * @type string $container
- * The container format. The default is `"mp4"`
- * Supported container formats:
- * - 'ts'
- * - 'fmp4'- the corresponding file extension is `".m4s"`
- * - 'mp4'
- * - 'vtt'
- * @type string[]|\Google\Protobuf\Internal\RepeatedField $elementary_streams
- * List of `ElementaryStream.key`s multiplexed in this stream.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\SegmentSettings $segment_settings
- * Segment settings for `"ts"`, `"fmp4"` and `"vtt"`.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Encryption $encryption
- * Encryption settings.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A unique key for this multiplexed stream. HLS media manifests will be
- * named `MuxStream.key` with the `".m3u8"` extension suffix.
- *
- * Generated from protobuf field string key = 1;
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * A unique key for this multiplexed stream. HLS media manifests will be
- * named `MuxStream.key` with the `".m3u8"` extension suffix.
- *
- * Generated from protobuf field string key = 1;
- * @param string $var
- * @return $this
- */
- public function setKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->key = $var;
-
- return $this;
- }
-
- /**
- * The name of the generated file. The default is `MuxStream.key` with the
- * extension suffix corresponding to the `MuxStream.container`.
- * Individual segments also have an incremental 10-digit zero-padded suffix
- * starting from 0 before the extension, such as `"mux_stream0000000123.ts"`.
- *
- * Generated from protobuf field string file_name = 2;
- * @return string
- */
- public function getFileName()
- {
- return $this->file_name;
- }
-
- /**
- * The name of the generated file. The default is `MuxStream.key` with the
- * extension suffix corresponding to the `MuxStream.container`.
- * Individual segments also have an incremental 10-digit zero-padded suffix
- * starting from 0 before the extension, such as `"mux_stream0000000123.ts"`.
- *
- * Generated from protobuf field string file_name = 2;
- * @param string $var
- * @return $this
- */
- public function setFileName($var)
- {
- GPBUtil::checkString($var, True);
- $this->file_name = $var;
-
- return $this;
- }
-
- /**
- * The container format. The default is `"mp4"`
- * Supported container formats:
- * - 'ts'
- * - 'fmp4'- the corresponding file extension is `".m4s"`
- * - 'mp4'
- * - 'vtt'
- *
- * Generated from protobuf field string container = 3;
- * @return string
- */
- public function getContainer()
- {
- return $this->container;
- }
-
- /**
- * The container format. The default is `"mp4"`
- * Supported container formats:
- * - 'ts'
- * - 'fmp4'- the corresponding file extension is `".m4s"`
- * - 'mp4'
- * - 'vtt'
- *
- * Generated from protobuf field string container = 3;
- * @param string $var
- * @return $this
- */
- public function setContainer($var)
- {
- GPBUtil::checkString($var, True);
- $this->container = $var;
-
- return $this;
- }
-
- /**
- * List of `ElementaryStream.key`s multiplexed in this stream.
- *
- * Generated from protobuf field repeated string elementary_streams = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getElementaryStreams()
- {
- return $this->elementary_streams;
- }
-
- /**
- * List of `ElementaryStream.key`s multiplexed in this stream.
- *
- * Generated from protobuf field repeated string elementary_streams = 4;
- * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setElementaryStreams($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->elementary_streams = $arr;
-
- return $this;
- }
-
- /**
- * Segment settings for `"ts"`, `"fmp4"` and `"vtt"`.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.SegmentSettings segment_settings = 5;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\SegmentSettings|null
- */
- public function getSegmentSettings()
- {
- return $this->segment_settings;
- }
-
- public function hasSegmentSettings()
- {
- return isset($this->segment_settings);
- }
-
- public function clearSegmentSettings()
- {
- unset($this->segment_settings);
- }
-
- /**
- * Segment settings for `"ts"`, `"fmp4"` and `"vtt"`.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.SegmentSettings segment_settings = 5;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\SegmentSettings $var
- * @return $this
- */
- public function setSegmentSettings($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\SegmentSettings::class);
- $this->segment_settings = $var;
-
- return $this;
- }
-
- /**
- * Encryption settings.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Encryption encryption = 6;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Encryption|null
- */
- public function getEncryption()
- {
- return $this->encryption;
- }
-
- public function hasEncryption()
- {
- return isset($this->encryption);
- }
-
- public function clearEncryption()
- {
- unset($this->encryption);
- }
-
- /**
- * Encryption settings.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Encryption encryption = 6;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Encryption $var
- * @return $this
- */
- public function setEncryption($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Encryption::class);
- $this->encryption = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/Output.php b/VideoTranscoder/src/V1beta1/Output.php
deleted file mode 100644
index 27bc9e4ebd8f..000000000000
--- a/VideoTranscoder/src/V1beta1/Output.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Output
- */
-class Output extends \Google\Protobuf\Internal\Message
-{
- /**
- * URI for the output file(s). For example, `gs://my-bucket/outputs/`.
- * If empty the value is populated from `Job.output_uri`.
- *
- * Generated from protobuf field string uri = 1;
- */
- private $uri = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $uri
- * URI for the output file(s). For example, `gs://my-bucket/outputs/`.
- * If empty the value is populated from `Job.output_uri`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * URI for the output file(s). For example, `gs://my-bucket/outputs/`.
- * If empty the value is populated from `Job.output_uri`.
- *
- * Generated from protobuf field string uri = 1;
- * @return string
- */
- public function getUri()
- {
- return $this->uri;
- }
-
- /**
- * URI for the output file(s). For example, `gs://my-bucket/outputs/`.
- * If empty the value is populated from `Job.output_uri`.
- *
- * Generated from protobuf field string uri = 1;
- * @param string $var
- * @return $this
- */
- public function setUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->uri = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/Overlay.php b/VideoTranscoder/src/V1beta1/Overlay.php
deleted file mode 100644
index cb0058c4bbc9..000000000000
--- a/VideoTranscoder/src/V1beta1/Overlay.php
+++ /dev/null
@@ -1,115 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Overlay
- */
-class Overlay extends \Google\Protobuf\Internal\Message
-{
- /**
- * Image overlay.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.Image image = 1;
- */
- private $image = null;
- /**
- * List of Animations. The list should be chronological, without any time
- * overlap.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Overlay.Animation animations = 2;
- */
- private $animations;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Overlay\Image $image
- * Image overlay.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Overlay\Animation[]|\Google\Protobuf\Internal\RepeatedField $animations
- * List of Animations. The list should be chronological, without any time
- * overlap.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Image overlay.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.Image image = 1;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Overlay\Image|null
- */
- public function getImage()
- {
- return $this->image;
- }
-
- public function hasImage()
- {
- return isset($this->image);
- }
-
- public function clearImage()
- {
- unset($this->image);
- }
-
- /**
- * Image overlay.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.Image image = 1;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Overlay\Image $var
- * @return $this
- */
- public function setImage($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Overlay\Image::class);
- $this->image = $var;
-
- return $this;
- }
-
- /**
- * List of Animations. The list should be chronological, without any time
- * overlap.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Overlay.Animation animations = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getAnimations()
- {
- return $this->animations;
- }
-
- /**
- * List of Animations. The list should be chronological, without any time
- * overlap.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.Overlay.Animation animations = 2;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Overlay\Animation[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setAnimations($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\Overlay\Animation::class);
- $this->animations = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/Overlay/Animation.php b/VideoTranscoder/src/V1beta1/Overlay/Animation.php
deleted file mode 100644
index 8674eb1c9b5f..000000000000
--- a/VideoTranscoder/src/V1beta1/Overlay/Animation.php
+++ /dev/null
@@ -1,142 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Overlay.Animation
- */
-class Animation extends \Google\Protobuf\Internal\Message
-{
- protected $animation_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationStatic $animation_static
- * Display static overlay object.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationFade $animation_fade
- * Display overlay object with fade animation.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationEnd $animation_end
- * End previous animation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Display static overlay object.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.AnimationStatic animation_static = 1;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationStatic|null
- */
- public function getAnimationStatic()
- {
- return $this->readOneof(1);
- }
-
- public function hasAnimationStatic()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Display static overlay object.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.AnimationStatic animation_static = 1;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationStatic $var
- * @return $this
- */
- public function setAnimationStatic($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationStatic::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Display overlay object with fade animation.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.AnimationFade animation_fade = 2;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationFade|null
- */
- public function getAnimationFade()
- {
- return $this->readOneof(2);
- }
-
- public function hasAnimationFade()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Display overlay object with fade animation.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.AnimationFade animation_fade = 2;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationFade $var
- * @return $this
- */
- public function setAnimationFade($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationFade::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * End previous animation.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.AnimationEnd animation_end = 3;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationEnd|null
- */
- public function getAnimationEnd()
- {
- return $this->readOneof(3);
- }
-
- public function hasAnimationEnd()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * End previous animation.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.AnimationEnd animation_end = 3;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationEnd $var
- * @return $this
- */
- public function setAnimationEnd($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Overlay\AnimationEnd::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getAnimationType()
- {
- return $this->whichOneof("animation_type");
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/Overlay/AnimationEnd.php b/VideoTranscoder/src/V1beta1/Overlay/AnimationEnd.php
deleted file mode 100644
index 3892e806fb78..000000000000
--- a/VideoTranscoder/src/V1beta1/Overlay/AnimationEnd.php
+++ /dev/null
@@ -1,80 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Overlay.AnimationEnd
- */
-class AnimationEnd extends \Google\Protobuf\Internal\Message
-{
- /**
- * The time to end overlay object, in seconds. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 1;
- */
- private $start_time_offset = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Duration $start_time_offset
- * The time to end overlay object, in seconds. Default: 0
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The time to end overlay object, in seconds. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 1;
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartTimeOffset()
- {
- return $this->start_time_offset;
- }
-
- public function hasStartTimeOffset()
- {
- return isset($this->start_time_offset);
- }
-
- public function clearStartTimeOffset()
- {
- unset($this->start_time_offset);
- }
-
- /**
- * The time to end overlay object, in seconds. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 1;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartTimeOffset($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_time_offset = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/Overlay/AnimationFade.php b/VideoTranscoder/src/V1beta1/Overlay/AnimationFade.php
deleted file mode 100644
index 933b577c4328..000000000000
--- a/VideoTranscoder/src/V1beta1/Overlay/AnimationFade.php
+++ /dev/null
@@ -1,220 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Overlay.AnimationFade
- */
-class AnimationFade extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Type of fade animation: `FADE_IN` or `FADE_OUT`.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.FadeType fade_type = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $fade_type = 0;
- /**
- * Normalized coordinates based on output video resolution. Valid
- * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
- * object. For example, use the x and y coordinates {0,0} to position the
- * top-left corner of the overlay animation in the top-left corner of the
- * output video.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2;
- */
- private $xy = null;
- /**
- * The time to start the fade animation, in seconds. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 3;
- */
- private $start_time_offset = null;
- /**
- * The time to end the fade animation, in seconds. Default:
- * `start_time_offset` + 1s
- *
- * Generated from protobuf field .google.protobuf.Duration end_time_offset = 4;
- */
- private $end_time_offset = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $fade_type
- * Required. Type of fade animation: `FADE_IN` or `FADE_OUT`.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate $xy
- * Normalized coordinates based on output video resolution. Valid
- * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
- * object. For example, use the x and y coordinates {0,0} to position the
- * top-left corner of the overlay animation in the top-left corner of the
- * output video.
- * @type \Google\Protobuf\Duration $start_time_offset
- * The time to start the fade animation, in seconds. Default: 0
- * @type \Google\Protobuf\Duration $end_time_offset
- * The time to end the fade animation, in seconds. Default:
- * `start_time_offset` + 1s
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Type of fade animation: `FADE_IN` or `FADE_OUT`.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.FadeType fade_type = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getFadeType()
- {
- return $this->fade_type;
- }
-
- /**
- * Required. Type of fade animation: `FADE_IN` or `FADE_OUT`.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.FadeType fade_type = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setFadeType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Video\Transcoder\V1beta1\Overlay\FadeType::class);
- $this->fade_type = $var;
-
- return $this;
- }
-
- /**
- * Normalized coordinates based on output video resolution. Valid
- * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
- * object. For example, use the x and y coordinates {0,0} to position the
- * top-left corner of the overlay animation in the top-left corner of the
- * output video.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate|null
- */
- public function getXy()
- {
- return $this->xy;
- }
-
- public function hasXy()
- {
- return isset($this->xy);
- }
-
- public function clearXy()
- {
- unset($this->xy);
- }
-
- /**
- * Normalized coordinates based on output video resolution. Valid
- * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
- * object. For example, use the x and y coordinates {0,0} to position the
- * top-left corner of the overlay animation in the top-left corner of the
- * output video.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate $var
- * @return $this
- */
- public function setXy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate::class);
- $this->xy = $var;
-
- return $this;
- }
-
- /**
- * The time to start the fade animation, in seconds. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 3;
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartTimeOffset()
- {
- return $this->start_time_offset;
- }
-
- public function hasStartTimeOffset()
- {
- return isset($this->start_time_offset);
- }
-
- public function clearStartTimeOffset()
- {
- unset($this->start_time_offset);
- }
-
- /**
- * The time to start the fade animation, in seconds. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 3;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartTimeOffset($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_time_offset = $var;
-
- return $this;
- }
-
- /**
- * The time to end the fade animation, in seconds. Default:
- * `start_time_offset` + 1s
- *
- * Generated from protobuf field .google.protobuf.Duration end_time_offset = 4;
- * @return \Google\Protobuf\Duration|null
- */
- public function getEndTimeOffset()
- {
- return $this->end_time_offset;
- }
-
- public function hasEndTimeOffset()
- {
- return isset($this->end_time_offset);
- }
-
- public function clearEndTimeOffset()
- {
- unset($this->end_time_offset);
- }
-
- /**
- * The time to end the fade animation, in seconds. Default:
- * `start_time_offset` + 1s
- *
- * Generated from protobuf field .google.protobuf.Duration end_time_offset = 4;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setEndTimeOffset($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->end_time_offset = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/Overlay/AnimationStatic.php b/VideoTranscoder/src/V1beta1/Overlay/AnimationStatic.php
deleted file mode 100644
index 2885bbd9ff4c..000000000000
--- a/VideoTranscoder/src/V1beta1/Overlay/AnimationStatic.php
+++ /dev/null
@@ -1,138 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Overlay.AnimationStatic
- */
-class AnimationStatic extends \Google\Protobuf\Internal\Message
-{
- /**
- * Normalized coordinates based on output video resolution. Valid
- * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
- * object. For example, use the x and y coordinates {0,0} to position the
- * top-left corner of the overlay animation in the top-left corner of the
- * output video.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1;
- */
- private $xy = null;
- /**
- * The time to start displaying the overlay object, in seconds. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 2;
- */
- private $start_time_offset = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate $xy
- * Normalized coordinates based on output video resolution. Valid
- * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
- * object. For example, use the x and y coordinates {0,0} to position the
- * top-left corner of the overlay animation in the top-left corner of the
- * output video.
- * @type \Google\Protobuf\Duration $start_time_offset
- * The time to start displaying the overlay object, in seconds. Default: 0
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Normalized coordinates based on output video resolution. Valid
- * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
- * object. For example, use the x and y coordinates {0,0} to position the
- * top-left corner of the overlay animation in the top-left corner of the
- * output video.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate|null
- */
- public function getXy()
- {
- return $this->xy;
- }
-
- public function hasXy()
- {
- return isset($this->xy);
- }
-
- public function clearXy()
- {
- unset($this->xy);
- }
-
- /**
- * Normalized coordinates based on output video resolution. Valid
- * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
- * object. For example, use the x and y coordinates {0,0} to position the
- * top-left corner of the overlay animation in the top-left corner of the
- * output video.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate $var
- * @return $this
- */
- public function setXy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate::class);
- $this->xy = $var;
-
- return $this;
- }
-
- /**
- * The time to start displaying the overlay object, in seconds. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 2;
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartTimeOffset()
- {
- return $this->start_time_offset;
- }
-
- public function hasStartTimeOffset()
- {
- return isset($this->start_time_offset);
- }
-
- public function clearStartTimeOffset()
- {
- unset($this->start_time_offset);
- }
-
- /**
- * The time to start displaying the overlay object, in seconds. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 2;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartTimeOffset($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_time_offset = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/Overlay/FadeType.php b/VideoTranscoder/src/V1beta1/Overlay/FadeType.php
deleted file mode 100644
index 5ca24614c7f2..000000000000
--- a/VideoTranscoder/src/V1beta1/Overlay/FadeType.php
+++ /dev/null
@@ -1,62 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Overlay.FadeType
- */
-class FadeType
-{
- /**
- * The fade type is not specified.
- *
- * Generated from protobuf enum FADE_TYPE_UNSPECIFIED = 0;
- */
- const FADE_TYPE_UNSPECIFIED = 0;
- /**
- * Fade the overlay object into view.
- *
- * Generated from protobuf enum FADE_IN = 1;
- */
- const FADE_IN = 1;
- /**
- * Fade the overlay object out of view.
- *
- * Generated from protobuf enum FADE_OUT = 2;
- */
- const FADE_OUT = 2;
-
- private static $valueToName = [
- self::FADE_TYPE_UNSPECIFIED => 'FADE_TYPE_UNSPECIFIED',
- self::FADE_IN => 'FADE_IN',
- self::FADE_OUT => 'FADE_OUT',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/Overlay/Image.php b/VideoTranscoder/src/V1beta1/Overlay/Image.php
deleted file mode 100644
index 302ad9046410..000000000000
--- a/VideoTranscoder/src/V1beta1/Overlay/Image.php
+++ /dev/null
@@ -1,166 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Overlay.Image
- */
-class Image extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. URI of the JPEG image in Cloud Storage. For example,
- * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
- *
- * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $uri = '';
- /**
- * Normalized image resolution, based on output video resolution. Valid
- * values: `0.0`–`1.0`. To respect the original image aspect ratio, set
- * either `x` or `y` to `0.0`. To use the original image resolution, set
- * both `x` and `y` to `0.0`.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate resolution = 2;
- */
- private $resolution = null;
- /**
- * Target image opacity. Valid values are from `1.0` (solid, default) to
- * `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
- *
- * Generated from protobuf field double alpha = 3;
- */
- private $alpha = 0.0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $uri
- * Required. URI of the JPEG image in Cloud Storage. For example,
- * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate $resolution
- * Normalized image resolution, based on output video resolution. Valid
- * values: `0.0`–`1.0`. To respect the original image aspect ratio, set
- * either `x` or `y` to `0.0`. To use the original image resolution, set
- * both `x` and `y` to `0.0`.
- * @type float $alpha
- * Target image opacity. Valid values are from `1.0` (solid, default) to
- * `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. URI of the JPEG image in Cloud Storage. For example,
- * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
- *
- * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getUri()
- {
- return $this->uri;
- }
-
- /**
- * Required. URI of the JPEG image in Cloud Storage. For example,
- * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
- *
- * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->uri = $var;
-
- return $this;
- }
-
- /**
- * Normalized image resolution, based on output video resolution. Valid
- * values: `0.0`–`1.0`. To respect the original image aspect ratio, set
- * either `x` or `y` to `0.0`. To use the original image resolution, set
- * both `x` and `y` to `0.0`.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate resolution = 2;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate|null
- */
- public function getResolution()
- {
- return $this->resolution;
- }
-
- public function hasResolution()
- {
- return isset($this->resolution);
- }
-
- public function clearResolution()
- {
- unset($this->resolution);
- }
-
- /**
- * Normalized image resolution, based on output video resolution. Valid
- * values: `0.0`–`1.0`. To respect the original image aspect ratio, set
- * either `x` or `y` to `0.0`. To use the original image resolution, set
- * both `x` and `y` to `0.0`.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate resolution = 2;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate $var
- * @return $this
- */
- public function setResolution($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate::class);
- $this->resolution = $var;
-
- return $this;
- }
-
- /**
- * Target image opacity. Valid values are from `1.0` (solid, default) to
- * `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
- *
- * Generated from protobuf field double alpha = 3;
- * @return float
- */
- public function getAlpha()
- {
- return $this->alpha;
- }
-
- /**
- * Target image opacity. Valid values are from `1.0` (solid, default) to
- * `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
- *
- * Generated from protobuf field double alpha = 3;
- * @param float $var
- * @return $this
- */
- public function setAlpha($var)
- {
- GPBUtil::checkDouble($var);
- $this->alpha = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/Overlay/NormalizedCoordinate.php b/VideoTranscoder/src/V1beta1/Overlay/NormalizedCoordinate.php
deleted file mode 100644
index c7acc8ac3a7f..000000000000
--- a/VideoTranscoder/src/V1beta1/Overlay/NormalizedCoordinate.php
+++ /dev/null
@@ -1,102 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate
- */
-class NormalizedCoordinate extends \Google\Protobuf\Internal\Message
-{
- /**
- * Normalized x coordinate.
- *
- * Generated from protobuf field double x = 1;
- */
- private $x = 0.0;
- /**
- * Normalized y coordinate.
- *
- * Generated from protobuf field double y = 2;
- */
- private $y = 0.0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type float $x
- * Normalized x coordinate.
- * @type float $y
- * Normalized y coordinate.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Normalized x coordinate.
- *
- * Generated from protobuf field double x = 1;
- * @return float
- */
- public function getX()
- {
- return $this->x;
- }
-
- /**
- * Normalized x coordinate.
- *
- * Generated from protobuf field double x = 1;
- * @param float $var
- * @return $this
- */
- public function setX($var)
- {
- GPBUtil::checkDouble($var);
- $this->x = $var;
-
- return $this;
- }
-
- /**
- * Normalized y coordinate.
- *
- * Generated from protobuf field double y = 2;
- * @return float
- */
- public function getY()
- {
- return $this->y;
- }
-
- /**
- * Normalized y coordinate.
- *
- * Generated from protobuf field double y = 2;
- * @param float $var
- * @return $this
- */
- public function setY($var)
- {
- GPBUtil::checkDouble($var);
- $this->y = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/PreprocessingConfig.php b/VideoTranscoder/src/V1beta1/PreprocessingConfig.php
deleted file mode 100644
index 62ccd6200bc6..000000000000
--- a/VideoTranscoder/src/V1beta1/PreprocessingConfig.php
+++ /dev/null
@@ -1,297 +0,0 @@
-google.cloud.video.transcoder.v1beta1.PreprocessingConfig
- */
-class PreprocessingConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Color preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Color color = 1;
- */
- private $color = null;
- /**
- * Denoise preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Denoise denoise = 2;
- */
- private $denoise = null;
- /**
- * Deblock preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Deblock deblock = 3;
- */
- private $deblock = null;
- /**
- * Audio preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Audio audio = 4;
- */
- private $audio = null;
- /**
- * Specify the video cropping configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop crop = 5;
- */
- private $crop = null;
- /**
- * Specify the video pad filter configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad pad = 6;
- */
- private $pad = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Color $color
- * Color preprocessing configuration.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Denoise $denoise
- * Denoise preprocessing configuration.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Deblock $deblock
- * Deblock preprocessing configuration.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Audio $audio
- * Audio preprocessing configuration.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Crop $crop
- * Specify the video cropping configuration.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Pad $pad
- * Specify the video pad filter configuration.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Color preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Color color = 1;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Color|null
- */
- public function getColor()
- {
- return $this->color;
- }
-
- public function hasColor()
- {
- return isset($this->color);
- }
-
- public function clearColor()
- {
- unset($this->color);
- }
-
- /**
- * Color preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Color color = 1;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Color $var
- * @return $this
- */
- public function setColor($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Color::class);
- $this->color = $var;
-
- return $this;
- }
-
- /**
- * Denoise preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Denoise denoise = 2;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Denoise|null
- */
- public function getDenoise()
- {
- return $this->denoise;
- }
-
- public function hasDenoise()
- {
- return isset($this->denoise);
- }
-
- public function clearDenoise()
- {
- unset($this->denoise);
- }
-
- /**
- * Denoise preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Denoise denoise = 2;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Denoise $var
- * @return $this
- */
- public function setDenoise($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Denoise::class);
- $this->denoise = $var;
-
- return $this;
- }
-
- /**
- * Deblock preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Deblock deblock = 3;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Deblock|null
- */
- public function getDeblock()
- {
- return $this->deblock;
- }
-
- public function hasDeblock()
- {
- return isset($this->deblock);
- }
-
- public function clearDeblock()
- {
- unset($this->deblock);
- }
-
- /**
- * Deblock preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Deblock deblock = 3;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Deblock $var
- * @return $this
- */
- public function setDeblock($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Deblock::class);
- $this->deblock = $var;
-
- return $this;
- }
-
- /**
- * Audio preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Audio audio = 4;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Audio|null
- */
- public function getAudio()
- {
- return $this->audio;
- }
-
- public function hasAudio()
- {
- return isset($this->audio);
- }
-
- public function clearAudio()
- {
- unset($this->audio);
- }
-
- /**
- * Audio preprocessing configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Audio audio = 4;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Audio $var
- * @return $this
- */
- public function setAudio($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Audio::class);
- $this->audio = $var;
-
- return $this;
- }
-
- /**
- * Specify the video cropping configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop crop = 5;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Crop|null
- */
- public function getCrop()
- {
- return $this->crop;
- }
-
- public function hasCrop()
- {
- return isset($this->crop);
- }
-
- public function clearCrop()
- {
- unset($this->crop);
- }
-
- /**
- * Specify the video cropping configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop crop = 5;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Crop $var
- * @return $this
- */
- public function setCrop($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Crop::class);
- $this->crop = $var;
-
- return $this;
- }
-
- /**
- * Specify the video pad filter configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad pad = 6;
- * @return \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Pad|null
- */
- public function getPad()
- {
- return $this->pad;
- }
-
- public function hasPad()
- {
- return isset($this->pad);
- }
-
- public function clearPad()
- {
- unset($this->pad);
- }
-
- /**
- * Specify the video pad filter configuration.
- *
- * Generated from protobuf field .google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad pad = 6;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Pad $var
- * @return $this
- */
- public function setPad($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Video\Transcoder\V1beta1\PreprocessingConfig\Pad::class);
- $this->pad = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Audio.php b/VideoTranscoder/src/V1beta1/PreprocessingConfig/Audio.php
deleted file mode 100644
index 1d2838500b7b..000000000000
--- a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Audio.php
+++ /dev/null
@@ -1,172 +0,0 @@
-google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Audio
- */
-class Audio extends \Google\Protobuf\Internal\Message
-{
- /**
- * Specify audio loudness normalization in loudness units relative to full
- * scale (LUFS). Enter a value between -24 and 0 (the default), where:
- * * -24 is the Advanced Television Systems Committee (ATSC A/85) standard
- * * -23 is the EU R128 broadcast standard
- * * -19 is the prior standard for online mono audio
- * * -18 is the ReplayGain standard
- * * -16 is the prior standard for stereo audio
- * * -14 is the new online audio standard recommended by Spotify, as well
- * as Amazon Echo
- * * 0 disables normalization
- *
- * Generated from protobuf field double lufs = 1;
- */
- private $lufs = 0.0;
- /**
- * Enable boosting high frequency components. The default is `false`.
- *
- * Generated from protobuf field bool high_boost = 2;
- */
- private $high_boost = false;
- /**
- * Enable boosting low frequency components. The default is `false`.
- *
- * Generated from protobuf field bool low_boost = 3;
- */
- private $low_boost = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type float $lufs
- * Specify audio loudness normalization in loudness units relative to full
- * scale (LUFS). Enter a value between -24 and 0 (the default), where:
- * * -24 is the Advanced Television Systems Committee (ATSC A/85) standard
- * * -23 is the EU R128 broadcast standard
- * * -19 is the prior standard for online mono audio
- * * -18 is the ReplayGain standard
- * * -16 is the prior standard for stereo audio
- * * -14 is the new online audio standard recommended by Spotify, as well
- * as Amazon Echo
- * * 0 disables normalization
- * @type bool $high_boost
- * Enable boosting high frequency components. The default is `false`.
- * @type bool $low_boost
- * Enable boosting low frequency components. The default is `false`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Specify audio loudness normalization in loudness units relative to full
- * scale (LUFS). Enter a value between -24 and 0 (the default), where:
- * * -24 is the Advanced Television Systems Committee (ATSC A/85) standard
- * * -23 is the EU R128 broadcast standard
- * * -19 is the prior standard for online mono audio
- * * -18 is the ReplayGain standard
- * * -16 is the prior standard for stereo audio
- * * -14 is the new online audio standard recommended by Spotify, as well
- * as Amazon Echo
- * * 0 disables normalization
- *
- * Generated from protobuf field double lufs = 1;
- * @return float
- */
- public function getLufs()
- {
- return $this->lufs;
- }
-
- /**
- * Specify audio loudness normalization in loudness units relative to full
- * scale (LUFS). Enter a value between -24 and 0 (the default), where:
- * * -24 is the Advanced Television Systems Committee (ATSC A/85) standard
- * * -23 is the EU R128 broadcast standard
- * * -19 is the prior standard for online mono audio
- * * -18 is the ReplayGain standard
- * * -16 is the prior standard for stereo audio
- * * -14 is the new online audio standard recommended by Spotify, as well
- * as Amazon Echo
- * * 0 disables normalization
- *
- * Generated from protobuf field double lufs = 1;
- * @param float $var
- * @return $this
- */
- public function setLufs($var)
- {
- GPBUtil::checkDouble($var);
- $this->lufs = $var;
-
- return $this;
- }
-
- /**
- * Enable boosting high frequency components. The default is `false`.
- *
- * Generated from protobuf field bool high_boost = 2;
- * @return bool
- */
- public function getHighBoost()
- {
- return $this->high_boost;
- }
-
- /**
- * Enable boosting high frequency components. The default is `false`.
- *
- * Generated from protobuf field bool high_boost = 2;
- * @param bool $var
- * @return $this
- */
- public function setHighBoost($var)
- {
- GPBUtil::checkBool($var);
- $this->high_boost = $var;
-
- return $this;
- }
-
- /**
- * Enable boosting low frequency components. The default is `false`.
- *
- * Generated from protobuf field bool low_boost = 3;
- * @return bool
- */
- public function getLowBoost()
- {
- return $this->low_boost;
- }
-
- /**
- * Enable boosting low frequency components. The default is `false`.
- *
- * Generated from protobuf field bool low_boost = 3;
- * @param bool $var
- * @return $this
- */
- public function setLowBoost($var)
- {
- GPBUtil::checkBool($var);
- $this->low_boost = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Color.php b/VideoTranscoder/src/V1beta1/PreprocessingConfig/Color.php
deleted file mode 100644
index e5667f14599c..000000000000
--- a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Color.php
+++ /dev/null
@@ -1,160 +0,0 @@
-google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Color
- */
-class Color extends \Google\Protobuf\Internal\Message
-{
- /**
- * Control color saturation of the video. Enter a value between -1 and 1,
- * where -1 is fully desaturated and 1 is maximum saturation. 0 is no
- * change. The default is 0.
- *
- * Generated from protobuf field double saturation = 1;
- */
- private $saturation = 0.0;
- /**
- * Control black and white contrast of the video. Enter a value between -1
- * and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
- * change. The default is 0.
- *
- * Generated from protobuf field double contrast = 2;
- */
- private $contrast = 0.0;
- /**
- * Control brightness of the video. Enter a value between -1 and 1, where -1
- * is minimum brightness and 1 is maximum brightness. 0 is no change. The
- * default is 0.
- *
- * Generated from protobuf field double brightness = 3;
- */
- private $brightness = 0.0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type float $saturation
- * Control color saturation of the video. Enter a value between -1 and 1,
- * where -1 is fully desaturated and 1 is maximum saturation. 0 is no
- * change. The default is 0.
- * @type float $contrast
- * Control black and white contrast of the video. Enter a value between -1
- * and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
- * change. The default is 0.
- * @type float $brightness
- * Control brightness of the video. Enter a value between -1 and 1, where -1
- * is minimum brightness and 1 is maximum brightness. 0 is no change. The
- * default is 0.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Control color saturation of the video. Enter a value between -1 and 1,
- * where -1 is fully desaturated and 1 is maximum saturation. 0 is no
- * change. The default is 0.
- *
- * Generated from protobuf field double saturation = 1;
- * @return float
- */
- public function getSaturation()
- {
- return $this->saturation;
- }
-
- /**
- * Control color saturation of the video. Enter a value between -1 and 1,
- * where -1 is fully desaturated and 1 is maximum saturation. 0 is no
- * change. The default is 0.
- *
- * Generated from protobuf field double saturation = 1;
- * @param float $var
- * @return $this
- */
- public function setSaturation($var)
- {
- GPBUtil::checkDouble($var);
- $this->saturation = $var;
-
- return $this;
- }
-
- /**
- * Control black and white contrast of the video. Enter a value between -1
- * and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
- * change. The default is 0.
- *
- * Generated from protobuf field double contrast = 2;
- * @return float
- */
- public function getContrast()
- {
- return $this->contrast;
- }
-
- /**
- * Control black and white contrast of the video. Enter a value between -1
- * and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
- * change. The default is 0.
- *
- * Generated from protobuf field double contrast = 2;
- * @param float $var
- * @return $this
- */
- public function setContrast($var)
- {
- GPBUtil::checkDouble($var);
- $this->contrast = $var;
-
- return $this;
- }
-
- /**
- * Control brightness of the video. Enter a value between -1 and 1, where -1
- * is minimum brightness and 1 is maximum brightness. 0 is no change. The
- * default is 0.
- *
- * Generated from protobuf field double brightness = 3;
- * @return float
- */
- public function getBrightness()
- {
- return $this->brightness;
- }
-
- /**
- * Control brightness of the video. Enter a value between -1 and 1, where -1
- * is minimum brightness and 1 is maximum brightness. 0 is no change. The
- * default is 0.
- *
- * Generated from protobuf field double brightness = 3;
- * @param float $var
- * @return $this
- */
- public function setBrightness($var)
- {
- GPBUtil::checkDouble($var);
- $this->brightness = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Crop.php b/VideoTranscoder/src/V1beta1/PreprocessingConfig/Crop.php
deleted file mode 100644
index 99d4fe94946b..000000000000
--- a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Crop.php
+++ /dev/null
@@ -1,171 +0,0 @@
-google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop
- */
-class Crop extends \Google\Protobuf\Internal\Message
-{
- /**
- * The number of pixels to crop from the top. The default is 0.
- *
- * Generated from protobuf field int32 top_pixels = 1;
- */
- private $top_pixels = 0;
- /**
- * The number of pixels to crop from the bottom. The default is 0.
- *
- * Generated from protobuf field int32 bottom_pixels = 2;
- */
- private $bottom_pixels = 0;
- /**
- * The number of pixels to crop from the left. The default is 0.
- *
- * Generated from protobuf field int32 left_pixels = 3;
- */
- private $left_pixels = 0;
- /**
- * The number of pixels to crop from the right. The default is 0.
- *
- * Generated from protobuf field int32 right_pixels = 4;
- */
- private $right_pixels = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $top_pixels
- * The number of pixels to crop from the top. The default is 0.
- * @type int $bottom_pixels
- * The number of pixels to crop from the bottom. The default is 0.
- * @type int $left_pixels
- * The number of pixels to crop from the left. The default is 0.
- * @type int $right_pixels
- * The number of pixels to crop from the right. The default is 0.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The number of pixels to crop from the top. The default is 0.
- *
- * Generated from protobuf field int32 top_pixels = 1;
- * @return int
- */
- public function getTopPixels()
- {
- return $this->top_pixels;
- }
-
- /**
- * The number of pixels to crop from the top. The default is 0.
- *
- * Generated from protobuf field int32 top_pixels = 1;
- * @param int $var
- * @return $this
- */
- public function setTopPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->top_pixels = $var;
-
- return $this;
- }
-
- /**
- * The number of pixels to crop from the bottom. The default is 0.
- *
- * Generated from protobuf field int32 bottom_pixels = 2;
- * @return int
- */
- public function getBottomPixels()
- {
- return $this->bottom_pixels;
- }
-
- /**
- * The number of pixels to crop from the bottom. The default is 0.
- *
- * Generated from protobuf field int32 bottom_pixels = 2;
- * @param int $var
- * @return $this
- */
- public function setBottomPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->bottom_pixels = $var;
-
- return $this;
- }
-
- /**
- * The number of pixels to crop from the left. The default is 0.
- *
- * Generated from protobuf field int32 left_pixels = 3;
- * @return int
- */
- public function getLeftPixels()
- {
- return $this->left_pixels;
- }
-
- /**
- * The number of pixels to crop from the left. The default is 0.
- *
- * Generated from protobuf field int32 left_pixels = 3;
- * @param int $var
- * @return $this
- */
- public function setLeftPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->left_pixels = $var;
-
- return $this;
- }
-
- /**
- * The number of pixels to crop from the right. The default is 0.
- *
- * Generated from protobuf field int32 right_pixels = 4;
- * @return int
- */
- public function getRightPixels()
- {
- return $this->right_pixels;
- }
-
- /**
- * The number of pixels to crop from the right. The default is 0.
- *
- * Generated from protobuf field int32 right_pixels = 4;
- * @param int $var
- * @return $this
- */
- public function setRightPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->right_pixels = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Deblock.php b/VideoTranscoder/src/V1beta1/PreprocessingConfig/Deblock.php
deleted file mode 100644
index d109a1ec87a1..000000000000
--- a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Deblock.php
+++ /dev/null
@@ -1,110 +0,0 @@
-google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Deblock
- */
-class Deblock extends \Google\Protobuf\Internal\Message
-{
- /**
- * Set strength of the deblocker. Enter a value between 0 and 1. The higher
- * the value, the stronger the block removal. 0 is no deblocking. The
- * default is 0.
- *
- * Generated from protobuf field double strength = 1;
- */
- private $strength = 0.0;
- /**
- * Enable deblocker. The default is `false`.
- *
- * Generated from protobuf field bool enabled = 2;
- */
- private $enabled = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type float $strength
- * Set strength of the deblocker. Enter a value between 0 and 1. The higher
- * the value, the stronger the block removal. 0 is no deblocking. The
- * default is 0.
- * @type bool $enabled
- * Enable deblocker. The default is `false`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Set strength of the deblocker. Enter a value between 0 and 1. The higher
- * the value, the stronger the block removal. 0 is no deblocking. The
- * default is 0.
- *
- * Generated from protobuf field double strength = 1;
- * @return float
- */
- public function getStrength()
- {
- return $this->strength;
- }
-
- /**
- * Set strength of the deblocker. Enter a value between 0 and 1. The higher
- * the value, the stronger the block removal. 0 is no deblocking. The
- * default is 0.
- *
- * Generated from protobuf field double strength = 1;
- * @param float $var
- * @return $this
- */
- public function setStrength($var)
- {
- GPBUtil::checkDouble($var);
- $this->strength = $var;
-
- return $this;
- }
-
- /**
- * Enable deblocker. The default is `false`.
- *
- * Generated from protobuf field bool enabled = 2;
- * @return bool
- */
- public function getEnabled()
- {
- return $this->enabled;
- }
-
- /**
- * Enable deblocker. The default is `false`.
- *
- * Generated from protobuf field bool enabled = 2;
- * @param bool $var
- * @return $this
- */
- public function setEnabled($var)
- {
- GPBUtil::checkBool($var);
- $this->enabled = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Denoise.php b/VideoTranscoder/src/V1beta1/PreprocessingConfig/Denoise.php
deleted file mode 100644
index 926d0178c6ef..000000000000
--- a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Denoise.php
+++ /dev/null
@@ -1,118 +0,0 @@
-google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Denoise
- */
-class Denoise extends \Google\Protobuf\Internal\Message
-{
- /**
- * Set strength of the denoise. Enter a value between 0 and 1. The higher
- * the value, the smoother the image. 0 is no denoising. The default is 0.
- *
- * Generated from protobuf field double strength = 1;
- */
- private $strength = 0.0;
- /**
- * Set the denoiser mode. The default is `"standard"`.
- * Supported denoiser modes:
- * - 'standard'
- * - 'grain'
- *
- * Generated from protobuf field string tune = 2;
- */
- private $tune = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type float $strength
- * Set strength of the denoise. Enter a value between 0 and 1. The higher
- * the value, the smoother the image. 0 is no denoising. The default is 0.
- * @type string $tune
- * Set the denoiser mode. The default is `"standard"`.
- * Supported denoiser modes:
- * - 'standard'
- * - 'grain'
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Set strength of the denoise. Enter a value between 0 and 1. The higher
- * the value, the smoother the image. 0 is no denoising. The default is 0.
- *
- * Generated from protobuf field double strength = 1;
- * @return float
- */
- public function getStrength()
- {
- return $this->strength;
- }
-
- /**
- * Set strength of the denoise. Enter a value between 0 and 1. The higher
- * the value, the smoother the image. 0 is no denoising. The default is 0.
- *
- * Generated from protobuf field double strength = 1;
- * @param float $var
- * @return $this
- */
- public function setStrength($var)
- {
- GPBUtil::checkDouble($var);
- $this->strength = $var;
-
- return $this;
- }
-
- /**
- * Set the denoiser mode. The default is `"standard"`.
- * Supported denoiser modes:
- * - 'standard'
- * - 'grain'
- *
- * Generated from protobuf field string tune = 2;
- * @return string
- */
- public function getTune()
- {
- return $this->tune;
- }
-
- /**
- * Set the denoiser mode. The default is `"standard"`.
- * Supported denoiser modes:
- * - 'standard'
- * - 'grain'
- *
- * Generated from protobuf field string tune = 2;
- * @param string $var
- * @return $this
- */
- public function setTune($var)
- {
- GPBUtil::checkString($var, True);
- $this->tune = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Pad.php b/VideoTranscoder/src/V1beta1/PreprocessingConfig/Pad.php
deleted file mode 100644
index 9985e8467681..000000000000
--- a/VideoTranscoder/src/V1beta1/PreprocessingConfig/Pad.php
+++ /dev/null
@@ -1,171 +0,0 @@
-google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad
- */
-class Pad extends \Google\Protobuf\Internal\Message
-{
- /**
- * The number of pixels to add to the top. The default is 0.
- *
- * Generated from protobuf field int32 top_pixels = 1;
- */
- private $top_pixels = 0;
- /**
- * The number of pixels to add to the bottom. The default is 0.
- *
- * Generated from protobuf field int32 bottom_pixels = 2;
- */
- private $bottom_pixels = 0;
- /**
- * The number of pixels to add to the left. The default is 0.
- *
- * Generated from protobuf field int32 left_pixels = 3;
- */
- private $left_pixels = 0;
- /**
- * The number of pixels to add to the right. The default is 0.
- *
- * Generated from protobuf field int32 right_pixels = 4;
- */
- private $right_pixels = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $top_pixels
- * The number of pixels to add to the top. The default is 0.
- * @type int $bottom_pixels
- * The number of pixels to add to the bottom. The default is 0.
- * @type int $left_pixels
- * The number of pixels to add to the left. The default is 0.
- * @type int $right_pixels
- * The number of pixels to add to the right. The default is 0.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The number of pixels to add to the top. The default is 0.
- *
- * Generated from protobuf field int32 top_pixels = 1;
- * @return int
- */
- public function getTopPixels()
- {
- return $this->top_pixels;
- }
-
- /**
- * The number of pixels to add to the top. The default is 0.
- *
- * Generated from protobuf field int32 top_pixels = 1;
- * @param int $var
- * @return $this
- */
- public function setTopPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->top_pixels = $var;
-
- return $this;
- }
-
- /**
- * The number of pixels to add to the bottom. The default is 0.
- *
- * Generated from protobuf field int32 bottom_pixels = 2;
- * @return int
- */
- public function getBottomPixels()
- {
- return $this->bottom_pixels;
- }
-
- /**
- * The number of pixels to add to the bottom. The default is 0.
- *
- * Generated from protobuf field int32 bottom_pixels = 2;
- * @param int $var
- * @return $this
- */
- public function setBottomPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->bottom_pixels = $var;
-
- return $this;
- }
-
- /**
- * The number of pixels to add to the left. The default is 0.
- *
- * Generated from protobuf field int32 left_pixels = 3;
- * @return int
- */
- public function getLeftPixels()
- {
- return $this->left_pixels;
- }
-
- /**
- * The number of pixels to add to the left. The default is 0.
- *
- * Generated from protobuf field int32 left_pixels = 3;
- * @param int $var
- * @return $this
- */
- public function setLeftPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->left_pixels = $var;
-
- return $this;
- }
-
- /**
- * The number of pixels to add to the right. The default is 0.
- *
- * Generated from protobuf field int32 right_pixels = 4;
- * @return int
- */
- public function getRightPixels()
- {
- return $this->right_pixels;
- }
-
- /**
- * The number of pixels to add to the right. The default is 0.
- *
- * Generated from protobuf field int32 right_pixels = 4;
- * @param int $var
- * @return $this
- */
- public function setRightPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->right_pixels = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/Progress.php b/VideoTranscoder/src/V1beta1/Progress.php
deleted file mode 100644
index 57e6e20c47ee..000000000000
--- a/VideoTranscoder/src/V1beta1/Progress.php
+++ /dev/null
@@ -1,169 +0,0 @@
-google.cloud.video.transcoder.v1beta1.Progress
- */
-class Progress extends \Google\Protobuf\Internal\Message
-{
- /**
- * Estimated fractional progress for `analyzing` step.
- *
- * Generated from protobuf field double analyzed = 1;
- */
- private $analyzed = 0.0;
- /**
- * Estimated fractional progress for `encoding` step.
- *
- * Generated from protobuf field double encoded = 2;
- */
- private $encoded = 0.0;
- /**
- * Estimated fractional progress for `uploading` step.
- *
- * Generated from protobuf field double uploaded = 3;
- */
- private $uploaded = 0.0;
- /**
- * Estimated fractional progress for `notifying` step.
- *
- * Generated from protobuf field double notified = 4;
- */
- private $notified = 0.0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type float $analyzed
- * Estimated fractional progress for `analyzing` step.
- * @type float $encoded
- * Estimated fractional progress for `encoding` step.
- * @type float $uploaded
- * Estimated fractional progress for `uploading` step.
- * @type float $notified
- * Estimated fractional progress for `notifying` step.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Estimated fractional progress for `analyzing` step.
- *
- * Generated from protobuf field double analyzed = 1;
- * @return float
- */
- public function getAnalyzed()
- {
- return $this->analyzed;
- }
-
- /**
- * Estimated fractional progress for `analyzing` step.
- *
- * Generated from protobuf field double analyzed = 1;
- * @param float $var
- * @return $this
- */
- public function setAnalyzed($var)
- {
- GPBUtil::checkDouble($var);
- $this->analyzed = $var;
-
- return $this;
- }
-
- /**
- * Estimated fractional progress for `encoding` step.
- *
- * Generated from protobuf field double encoded = 2;
- * @return float
- */
- public function getEncoded()
- {
- return $this->encoded;
- }
-
- /**
- * Estimated fractional progress for `encoding` step.
- *
- * Generated from protobuf field double encoded = 2;
- * @param float $var
- * @return $this
- */
- public function setEncoded($var)
- {
- GPBUtil::checkDouble($var);
- $this->encoded = $var;
-
- return $this;
- }
-
- /**
- * Estimated fractional progress for `uploading` step.
- *
- * Generated from protobuf field double uploaded = 3;
- * @return float
- */
- public function getUploaded()
- {
- return $this->uploaded;
- }
-
- /**
- * Estimated fractional progress for `uploading` step.
- *
- * Generated from protobuf field double uploaded = 3;
- * @param float $var
- * @return $this
- */
- public function setUploaded($var)
- {
- GPBUtil::checkDouble($var);
- $this->uploaded = $var;
-
- return $this;
- }
-
- /**
- * Estimated fractional progress for `notifying` step.
- *
- * Generated from protobuf field double notified = 4;
- * @return float
- */
- public function getNotified()
- {
- return $this->notified;
- }
-
- /**
- * Estimated fractional progress for `notifying` step.
- *
- * Generated from protobuf field double notified = 4;
- * @param float $var
- * @return $this
- */
- public function setNotified($var)
- {
- GPBUtil::checkDouble($var);
- $this->notified = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/PubsubDestination.php b/VideoTranscoder/src/V1beta1/PubsubDestination.php
deleted file mode 100644
index ee5033129c8c..000000000000
--- a/VideoTranscoder/src/V1beta1/PubsubDestination.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.video.transcoder.v1beta1.PubsubDestination
- */
-class PubsubDestination extends \Google\Protobuf\Internal\Message
-{
- /**
- * The name of the Pub/Sub topic to publish job completion notification
- * to. For example: `projects/{project}/topics/{topic}`.
- *
- * Generated from protobuf field string topic = 1;
- */
- private $topic = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $topic
- * The name of the Pub/Sub topic to publish job completion notification
- * to. For example: `projects/{project}/topics/{topic}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The name of the Pub/Sub topic to publish job completion notification
- * to. For example: `projects/{project}/topics/{topic}`.
- *
- * Generated from protobuf field string topic = 1;
- * @return string
- */
- public function getTopic()
- {
- return $this->topic;
- }
-
- /**
- * The name of the Pub/Sub topic to publish job completion notification
- * to. For example: `projects/{project}/topics/{topic}`.
- *
- * Generated from protobuf field string topic = 1;
- * @param string $var
- * @return $this
- */
- public function setTopic($var)
- {
- GPBUtil::checkString($var, True);
- $this->topic = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/SegmentSettings.php b/VideoTranscoder/src/V1beta1/SegmentSettings.php
deleted file mode 100644
index 23cb5f067a14..000000000000
--- a/VideoTranscoder/src/V1beta1/SegmentSettings.php
+++ /dev/null
@@ -1,123 +0,0 @@
-google.cloud.video.transcoder.v1beta1.SegmentSettings
- */
-class SegmentSettings extends \Google\Protobuf\Internal\Message
-{
- /**
- * Duration of the segments in seconds. The default is `"6.0s"`. Note that
- * `segmentDuration` must be greater than or equal to
- * [`gopDuration`](#videostream), and `segmentDuration` must be divisible by
- * [`gopDuration`](#videostream).
- *
- * Generated from protobuf field .google.protobuf.Duration segment_duration = 1;
- */
- private $segment_duration = null;
- /**
- * Required. Create an individual segment file. The default is `false`.
- *
- * Generated from protobuf field bool individual_segments = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- private $individual_segments = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Duration $segment_duration
- * Duration of the segments in seconds. The default is `"6.0s"`. Note that
- * `segmentDuration` must be greater than or equal to
- * [`gopDuration`](#videostream), and `segmentDuration` must be divisible by
- * [`gopDuration`](#videostream).
- * @type bool $individual_segments
- * Required. Create an individual segment file. The default is `false`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Duration of the segments in seconds. The default is `"6.0s"`. Note that
- * `segmentDuration` must be greater than or equal to
- * [`gopDuration`](#videostream), and `segmentDuration` must be divisible by
- * [`gopDuration`](#videostream).
- *
- * Generated from protobuf field .google.protobuf.Duration segment_duration = 1;
- * @return \Google\Protobuf\Duration|null
- */
- public function getSegmentDuration()
- {
- return $this->segment_duration;
- }
-
- public function hasSegmentDuration()
- {
- return isset($this->segment_duration);
- }
-
- public function clearSegmentDuration()
- {
- unset($this->segment_duration);
- }
-
- /**
- * Duration of the segments in seconds. The default is `"6.0s"`. Note that
- * `segmentDuration` must be greater than or equal to
- * [`gopDuration`](#videostream), and `segmentDuration` must be divisible by
- * [`gopDuration`](#videostream).
- *
- * Generated from protobuf field .google.protobuf.Duration segment_duration = 1;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setSegmentDuration($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->segment_duration = $var;
-
- return $this;
- }
-
- /**
- * Required. Create an individual segment file. The default is `false`.
- *
- * Generated from protobuf field bool individual_segments = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return bool
- */
- public function getIndividualSegments()
- {
- return $this->individual_segments;
- }
-
- /**
- * Required. Create an individual segment file. The default is `false`.
- *
- * Generated from protobuf field bool individual_segments = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param bool $var
- * @return $this
- */
- public function setIndividualSegments($var)
- {
- GPBUtil::checkBool($var);
- $this->individual_segments = $var;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/SpriteSheet.php b/VideoTranscoder/src/V1beta1/SpriteSheet.php
deleted file mode 100644
index 891467ba4067..000000000000
--- a/VideoTranscoder/src/V1beta1/SpriteSheet.php
+++ /dev/null
@@ -1,519 +0,0 @@
-google.cloud.video.transcoder.v1beta1.SpriteSheet
- */
-class SpriteSheet extends \Google\Protobuf\Internal\Message
-{
- /**
- * Format type. The default is `"jpeg"`.
- * Supported formats:
- * - 'jpeg'
- *
- * Generated from protobuf field string format = 1;
- */
- private $format = '';
- /**
- * Required. File name prefix for the generated sprite sheets.
- * Each sprite sheet has an incremental 10-digit zero-padded suffix starting
- * from 0 before the extension, such as `"sprite_sheet0000000123.jpeg"`.
- *
- * Generated from protobuf field string file_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- private $file_prefix = '';
- /**
- * Required. The width of sprite in pixels. Must be an even integer. To preserve the
- * source aspect ratio, set the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_width_pixels] field or
- * the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_height_pixels] field, but not both (the API will
- * automatically calculate the missing field).
- *
- * Generated from protobuf field int32 sprite_width_pixels = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- private $sprite_width_pixels = 0;
- /**
- * Required. The height of sprite in pixels. Must be an even integer. To preserve the
- * source aspect ratio, set the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_height_pixels] field or
- * the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_width_pixels] field, but not both (the API will
- * automatically calculate the missing field).
- *
- * Generated from protobuf field int32 sprite_height_pixels = 4 [(.google.api.field_behavior) = REQUIRED];
- */
- private $sprite_height_pixels = 0;
- /**
- * The maximum number of sprites per row in a sprite sheet. The default is 0,
- * which indicates no maximum limit.
- *
- * Generated from protobuf field int32 column_count = 5;
- */
- private $column_count = 0;
- /**
- * The maximum number of rows per sprite sheet. When the sprite sheet is full,
- * a new sprite sheet is created. The default is 0, which indicates no maximum
- * limit.
- *
- * Generated from protobuf field int32 row_count = 6;
- */
- private $row_count = 0;
- /**
- * Start time in seconds, relative to the output file timeline. Determines the
- * first sprite to pick. The default is `0s`.
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 7;
- */
- private $start_time_offset = null;
- /**
- * End time in seconds, relative to the output file timeline. When
- * `end_time_offset` is not specified, the sprites are generated until the end
- * of the output file.
- *
- * Generated from protobuf field .google.protobuf.Duration end_time_offset = 8;
- */
- private $end_time_offset = null;
- /**
- * The quality of the generated sprite sheet. Enter a value between 1
- * and 100, where 1 is the lowest quality and 100 is the highest quality.
- * The default is 100. A high quality value corresponds to a low image data
- * compression ratio.
- *
- * Generated from protobuf field int32 quality = 11;
- */
- private $quality = 0;
- protected $extraction_strategy;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $format
- * Format type. The default is `"jpeg"`.
- * Supported formats:
- * - 'jpeg'
- * @type string $file_prefix
- * Required. File name prefix for the generated sprite sheets.
- * Each sprite sheet has an incremental 10-digit zero-padded suffix starting
- * from 0 before the extension, such as `"sprite_sheet0000000123.jpeg"`.
- * @type int $sprite_width_pixels
- * Required. The width of sprite in pixels. Must be an even integer. To preserve the
- * source aspect ratio, set the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_width_pixels] field or
- * the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_height_pixels] field, but not both (the API will
- * automatically calculate the missing field).
- * @type int $sprite_height_pixels
- * Required. The height of sprite in pixels. Must be an even integer. To preserve the
- * source aspect ratio, set the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_height_pixels] field or
- * the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_width_pixels] field, but not both (the API will
- * automatically calculate the missing field).
- * @type int $column_count
- * The maximum number of sprites per row in a sprite sheet. The default is 0,
- * which indicates no maximum limit.
- * @type int $row_count
- * The maximum number of rows per sprite sheet. When the sprite sheet is full,
- * a new sprite sheet is created. The default is 0, which indicates no maximum
- * limit.
- * @type \Google\Protobuf\Duration $start_time_offset
- * Start time in seconds, relative to the output file timeline. Determines the
- * first sprite to pick. The default is `0s`.
- * @type \Google\Protobuf\Duration $end_time_offset
- * End time in seconds, relative to the output file timeline. When
- * `end_time_offset` is not specified, the sprites are generated until the end
- * of the output file.
- * @type int $total_count
- * Total number of sprites. Create the specified number of sprites
- * distributed evenly across the timeline of the output media. The default
- * is 100.
- * @type \Google\Protobuf\Duration $interval
- * Starting from `0s`, create sprites at regular intervals. Specify the
- * interval value in seconds.
- * @type int $quality
- * The quality of the generated sprite sheet. Enter a value between 1
- * and 100, where 1 is the lowest quality and 100 is the highest quality.
- * The default is 100. A high quality value corresponds to a low image data
- * compression ratio.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Format type. The default is `"jpeg"`.
- * Supported formats:
- * - 'jpeg'
- *
- * Generated from protobuf field string format = 1;
- * @return string
- */
- public function getFormat()
- {
- return $this->format;
- }
-
- /**
- * Format type. The default is `"jpeg"`.
- * Supported formats:
- * - 'jpeg'
- *
- * Generated from protobuf field string format = 1;
- * @param string $var
- * @return $this
- */
- public function setFormat($var)
- {
- GPBUtil::checkString($var, True);
- $this->format = $var;
-
- return $this;
- }
-
- /**
- * Required. File name prefix for the generated sprite sheets.
- * Each sprite sheet has an incremental 10-digit zero-padded suffix starting
- * from 0 before the extension, such as `"sprite_sheet0000000123.jpeg"`.
- *
- * Generated from protobuf field string file_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getFilePrefix()
- {
- return $this->file_prefix;
- }
-
- /**
- * Required. File name prefix for the generated sprite sheets.
- * Each sprite sheet has an incremental 10-digit zero-padded suffix starting
- * from 0 before the extension, such as `"sprite_sheet0000000123.jpeg"`.
- *
- * Generated from protobuf field string file_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setFilePrefix($var)
- {
- GPBUtil::checkString($var, True);
- $this->file_prefix = $var;
-
- return $this;
- }
-
- /**
- * Required. The width of sprite in pixels. Must be an even integer. To preserve the
- * source aspect ratio, set the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_width_pixels] field or
- * the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_height_pixels] field, but not both (the API will
- * automatically calculate the missing field).
- *
- * Generated from protobuf field int32 sprite_width_pixels = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getSpriteWidthPixels()
- {
- return $this->sprite_width_pixels;
- }
-
- /**
- * Required. The width of sprite in pixels. Must be an even integer. To preserve the
- * source aspect ratio, set the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_width_pixels] field or
- * the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_height_pixels] field, but not both (the API will
- * automatically calculate the missing field).
- *
- * Generated from protobuf field int32 sprite_width_pixels = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setSpriteWidthPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->sprite_width_pixels = $var;
-
- return $this;
- }
-
- /**
- * Required. The height of sprite in pixels. Must be an even integer. To preserve the
- * source aspect ratio, set the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_height_pixels] field or
- * the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_width_pixels] field, but not both (the API will
- * automatically calculate the missing field).
- *
- * Generated from protobuf field int32 sprite_height_pixels = 4 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getSpriteHeightPixels()
- {
- return $this->sprite_height_pixels;
- }
-
- /**
- * Required. The height of sprite in pixels. Must be an even integer. To preserve the
- * source aspect ratio, set the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_height_pixels] field or
- * the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1beta1.SpriteSheet.sprite_width_pixels] field, but not both (the API will
- * automatically calculate the missing field).
- *
- * Generated from protobuf field int32 sprite_height_pixels = 4 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setSpriteHeightPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->sprite_height_pixels = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of sprites per row in a sprite sheet. The default is 0,
- * which indicates no maximum limit.
- *
- * Generated from protobuf field int32 column_count = 5;
- * @return int
- */
- public function getColumnCount()
- {
- return $this->column_count;
- }
-
- /**
- * The maximum number of sprites per row in a sprite sheet. The default is 0,
- * which indicates no maximum limit.
- *
- * Generated from protobuf field int32 column_count = 5;
- * @param int $var
- * @return $this
- */
- public function setColumnCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->column_count = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of rows per sprite sheet. When the sprite sheet is full,
- * a new sprite sheet is created. The default is 0, which indicates no maximum
- * limit.
- *
- * Generated from protobuf field int32 row_count = 6;
- * @return int
- */
- public function getRowCount()
- {
- return $this->row_count;
- }
-
- /**
- * The maximum number of rows per sprite sheet. When the sprite sheet is full,
- * a new sprite sheet is created. The default is 0, which indicates no maximum
- * limit.
- *
- * Generated from protobuf field int32 row_count = 6;
- * @param int $var
- * @return $this
- */
- public function setRowCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->row_count = $var;
-
- return $this;
- }
-
- /**
- * Start time in seconds, relative to the output file timeline. Determines the
- * first sprite to pick. The default is `0s`.
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 7;
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartTimeOffset()
- {
- return $this->start_time_offset;
- }
-
- public function hasStartTimeOffset()
- {
- return isset($this->start_time_offset);
- }
-
- public function clearStartTimeOffset()
- {
- unset($this->start_time_offset);
- }
-
- /**
- * Start time in seconds, relative to the output file timeline. Determines the
- * first sprite to pick. The default is `0s`.
- *
- * Generated from protobuf field .google.protobuf.Duration start_time_offset = 7;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartTimeOffset($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_time_offset = $var;
-
- return $this;
- }
-
- /**
- * End time in seconds, relative to the output file timeline. When
- * `end_time_offset` is not specified, the sprites are generated until the end
- * of the output file.
- *
- * Generated from protobuf field .google.protobuf.Duration end_time_offset = 8;
- * @return \Google\Protobuf\Duration|null
- */
- public function getEndTimeOffset()
- {
- return $this->end_time_offset;
- }
-
- public function hasEndTimeOffset()
- {
- return isset($this->end_time_offset);
- }
-
- public function clearEndTimeOffset()
- {
- unset($this->end_time_offset);
- }
-
- /**
- * End time in seconds, relative to the output file timeline. When
- * `end_time_offset` is not specified, the sprites are generated until the end
- * of the output file.
- *
- * Generated from protobuf field .google.protobuf.Duration end_time_offset = 8;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setEndTimeOffset($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->end_time_offset = $var;
-
- return $this;
- }
-
- /**
- * Total number of sprites. Create the specified number of sprites
- * distributed evenly across the timeline of the output media. The default
- * is 100.
- *
- * Generated from protobuf field int32 total_count = 9;
- * @return int
- */
- public function getTotalCount()
- {
- return $this->readOneof(9);
- }
-
- public function hasTotalCount()
- {
- return $this->hasOneof(9);
- }
-
- /**
- * Total number of sprites. Create the specified number of sprites
- * distributed evenly across the timeline of the output media. The default
- * is 100.
- *
- * Generated from protobuf field int32 total_count = 9;
- * @param int $var
- * @return $this
- */
- public function setTotalCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->writeOneof(9, $var);
-
- return $this;
- }
-
- /**
- * Starting from `0s`, create sprites at regular intervals. Specify the
- * interval value in seconds.
- *
- * Generated from protobuf field .google.protobuf.Duration interval = 10;
- * @return \Google\Protobuf\Duration|null
- */
- public function getInterval()
- {
- return $this->readOneof(10);
- }
-
- public function hasInterval()
- {
- return $this->hasOneof(10);
- }
-
- /**
- * Starting from `0s`, create sprites at regular intervals. Specify the
- * interval value in seconds.
- *
- * Generated from protobuf field .google.protobuf.Duration interval = 10;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setInterval($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->writeOneof(10, $var);
-
- return $this;
- }
-
- /**
- * The quality of the generated sprite sheet. Enter a value between 1
- * and 100, where 1 is the lowest quality and 100 is the highest quality.
- * The default is 100. A high quality value corresponds to a low image data
- * compression ratio.
- *
- * Generated from protobuf field int32 quality = 11;
- * @return int
- */
- public function getQuality()
- {
- return $this->quality;
- }
-
- /**
- * The quality of the generated sprite sheet. Enter a value between 1
- * and 100, where 1 is the lowest quality and 100 is the highest quality.
- * The default is 100. A high quality value corresponds to a low image data
- * compression ratio.
- *
- * Generated from protobuf field int32 quality = 11;
- * @param int $var
- * @return $this
- */
- public function setQuality($var)
- {
- GPBUtil::checkInt32($var);
- $this->quality = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getExtractionStrategy()
- {
- return $this->whichOneof("extraction_strategy");
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/TextStream.php b/VideoTranscoder/src/V1beta1/TextStream.php
deleted file mode 100644
index c35f1c24fd51..000000000000
--- a/VideoTranscoder/src/V1beta1/TextStream.php
+++ /dev/null
@@ -1,167 +0,0 @@
-google.cloud.video.transcoder.v1beta1.TextStream
- */
-class TextStream extends \Google\Protobuf\Internal\Message
-{
- /**
- * The codec for this text stream. The default is `"webvtt"`.
- * Supported text codecs:
- * - 'srt'
- * - 'ttml'
- * - 'cea608'
- * - 'cea708'
- * - 'webvtt'
- *
- * Generated from protobuf field string codec = 1;
- */
- private $codec = '';
- /**
- * Required. The BCP-47 language code, such as `"en-US"` or `"sr-Latn"`. For more
- * information, see
- * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
- *
- * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- private $language_code = '';
- /**
- * The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
- */
- private $mapping;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $codec
- * The codec for this text stream. The default is `"webvtt"`.
- * Supported text codecs:
- * - 'srt'
- * - 'ttml'
- * - 'cea608'
- * - 'cea708'
- * - 'webvtt'
- * @type string $language_code
- * Required. The BCP-47 language code, such as `"en-US"` or `"sr-Latn"`. For more
- * information, see
- * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\TextStream\TextAtom[]|\Google\Protobuf\Internal\RepeatedField $mapping
- * The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The codec for this text stream. The default is `"webvtt"`.
- * Supported text codecs:
- * - 'srt'
- * - 'ttml'
- * - 'cea608'
- * - 'cea708'
- * - 'webvtt'
- *
- * Generated from protobuf field string codec = 1;
- * @return string
- */
- public function getCodec()
- {
- return $this->codec;
- }
-
- /**
- * The codec for this text stream. The default is `"webvtt"`.
- * Supported text codecs:
- * - 'srt'
- * - 'ttml'
- * - 'cea608'
- * - 'cea708'
- * - 'webvtt'
- *
- * Generated from protobuf field string codec = 1;
- * @param string $var
- * @return $this
- */
- public function setCodec($var)
- {
- GPBUtil::checkString($var, True);
- $this->codec = $var;
-
- return $this;
- }
-
- /**
- * Required. The BCP-47 language code, such as `"en-US"` or `"sr-Latn"`. For more
- * information, see
- * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
- *
- * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getLanguageCode()
- {
- return $this->language_code;
- }
-
- /**
- * Required. The BCP-47 language code, such as `"en-US"` or `"sr-Latn"`. For more
- * information, see
- * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
- *
- * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setLanguageCode($var)
- {
- GPBUtil::checkString($var, True);
- $this->language_code = $var;
-
- return $this;
- }
-
- /**
- * The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMapping()
- {
- return $this->mapping;
- }
-
- /**
- * The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\TextStream\TextAtom[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMapping($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\TextStream\TextAtom::class);
- $this->mapping = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/TextStream/TextAtom.php b/VideoTranscoder/src/V1beta1/TextStream/TextAtom.php
deleted file mode 100644
index 7203940f2be8..000000000000
--- a/VideoTranscoder/src/V1beta1/TextStream/TextAtom.php
+++ /dev/null
@@ -1,110 +0,0 @@
-google.cloud.video.transcoder.v1beta1.TextStream.TextAtom
- */
-class TextAtom extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The `EditAtom.key` that references atom with text inputs in the
- * `Job.edit_list`.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $key = '';
- /**
- * List of `Job.inputs` that should be embedded in this atom. Only one
- * input is supported.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom.TextInput inputs = 2;
- */
- private $inputs;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key
- * Required. The `EditAtom.key` that references atom with text inputs in the
- * `Job.edit_list`.
- * @type \Google\Cloud\Video\Transcoder\V1beta1\TextStream\TextAtom\TextInput[]|\Google\Protobuf\Internal\RepeatedField $inputs
- * List of `Job.inputs` that should be embedded in this atom. Only one
- * input is supported.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The `EditAtom.key` that references atom with text inputs in the
- * `Job.edit_list`.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Required. The `EditAtom.key` that references atom with text inputs in the
- * `Job.edit_list`.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->key = $var;
-
- return $this;
- }
-
- /**
- * List of `Job.inputs` that should be embedded in this atom. Only one
- * input is supported.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom.TextInput inputs = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getInputs()
- {
- return $this->inputs;
- }
-
- /**
- * List of `Job.inputs` that should be embedded in this atom. Only one
- * input is supported.
- *
- * Generated from protobuf field repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom.TextInput inputs = 2;
- * @param \Google\Cloud\Video\Transcoder\V1beta1\TextStream\TextAtom\TextInput[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setInputs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Video\Transcoder\V1beta1\TextStream\TextAtom\TextInput::class);
- $this->inputs = $arr;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/TextStream/TextAtom/TextInput.php b/VideoTranscoder/src/V1beta1/TextStream/TextAtom/TextInput.php
deleted file mode 100644
index 1e8530ecdf82..000000000000
--- a/VideoTranscoder/src/V1beta1/TextStream/TextAtom/TextInput.php
+++ /dev/null
@@ -1,102 +0,0 @@
-google.cloud.video.transcoder.v1beta1.TextStream.TextAtom.TextInput
- */
-class TextInput extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The `Input.key` that identifies the input file.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $key = '';
- /**
- * Required. The zero-based index of the track in the input file.
- *
- * Generated from protobuf field int32 track = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- private $track = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key
- * Required. The `Input.key` that identifies the input file.
- * @type int $track
- * Required. The zero-based index of the track in the input file.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The `Input.key` that identifies the input file.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Required. The `Input.key` that identifies the input file.
- *
- * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->key = $var;
-
- return $this;
- }
-
- /**
- * Required. The zero-based index of the track in the input file.
- *
- * Generated from protobuf field int32 track = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getTrack()
- {
- return $this->track;
- }
-
- /**
- * Required. The zero-based index of the track in the input file.
- *
- * Generated from protobuf field int32 track = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setTrack($var)
- {
- GPBUtil::checkInt32($var);
- $this->track = $var;
-
- return $this;
- }
-
-}
-
-
diff --git a/VideoTranscoder/src/V1beta1/TranscoderServiceClient.php b/VideoTranscoder/src/V1beta1/TranscoderServiceClient.php
deleted file mode 100644
index 6467f84ca0d8..000000000000
--- a/VideoTranscoder/src/V1beta1/TranscoderServiceClient.php
+++ /dev/null
@@ -1,36 +0,0 @@
-_simpleRequest('/google.cloud.video.transcoder.v1beta1.TranscoderService/CreateJob',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1beta1\Job', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Lists jobs in the specified region.
- * @param \Google\Cloud\Video\Transcoder\V1beta1\ListJobsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListJobs(\Google\Cloud\Video\Transcoder\V1beta1\ListJobsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1beta1.TranscoderService/ListJobs',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1beta1\ListJobsResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Returns the job data.
- * @param \Google\Cloud\Video\Transcoder\V1beta1\GetJobRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetJob(\Google\Cloud\Video\Transcoder\V1beta1\GetJobRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1beta1.TranscoderService/GetJob',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1beta1\Job', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Deletes a job.
- * @param \Google\Cloud\Video\Transcoder\V1beta1\DeleteJobRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DeleteJob(\Google\Cloud\Video\Transcoder\V1beta1\DeleteJobRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1beta1.TranscoderService/DeleteJob',
- $argument,
- ['\Google\Protobuf\GPBEmpty', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Creates a job template in the specified region.
- * @param \Google\Cloud\Video\Transcoder\V1beta1\CreateJobTemplateRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function CreateJobTemplate(\Google\Cloud\Video\Transcoder\V1beta1\CreateJobTemplateRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1beta1.TranscoderService/CreateJobTemplate',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1beta1\JobTemplate', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Lists job templates in the specified region.
- * @param \Google\Cloud\Video\Transcoder\V1beta1\ListJobTemplatesRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListJobTemplates(\Google\Cloud\Video\Transcoder\V1beta1\ListJobTemplatesRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1beta1.TranscoderService/ListJobTemplates',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1beta1\ListJobTemplatesResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Returns the job template data.
- * @param \Google\Cloud\Video\Transcoder\V1beta1\GetJobTemplateRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetJobTemplate(\Google\Cloud\Video\Transcoder\V1beta1\GetJobTemplateRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1beta1.TranscoderService/GetJobTemplate',
- $argument,
- ['\Google\Cloud\Video\Transcoder\V1beta1\JobTemplate', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Deletes a job template.
- * @param \Google\Cloud\Video\Transcoder\V1beta1\DeleteJobTemplateRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DeleteJobTemplate(\Google\Cloud\Video\Transcoder\V1beta1\DeleteJobTemplateRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.cloud.video.transcoder.v1beta1.TranscoderService/DeleteJobTemplate',
- $argument,
- ['\Google\Protobuf\GPBEmpty', 'decode'],
- $metadata, $options);
- }
-
-}
diff --git a/VideoTranscoder/src/V1beta1/VideoStream.php b/VideoTranscoder/src/V1beta1/VideoStream.php
deleted file mode 100644
index 89f7b4a444b5..000000000000
--- a/VideoTranscoder/src/V1beta1/VideoStream.php
+++ /dev/null
@@ -1,998 +0,0 @@
-google.cloud.video.transcoder.v1beta1.VideoStream
- */
-class VideoStream extends \Google\Protobuf\Internal\Message
-{
- /**
- * Codec type. The following codecs are supported:
- * * `h264` (default)
- * * `h265`
- * * `vp9`
- *
- * Generated from protobuf field string codec = 1;
- */
- private $codec = '';
- /**
- * Enforces the specified codec profile. The following profiles are supported:
- * * `baseline`
- * * `main`
- * * `high` (default)
- * The available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- *
- * Generated from protobuf field string profile = 2;
- */
- private $profile = '';
- /**
- * Enforces the specified codec tune. The available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- *
- * Generated from protobuf field string tune = 3;
- */
- private $tune = '';
- /**
- * Enforces the specified codec preset. The default is `veryfast`. The
- * available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- *
- * Generated from protobuf field string preset = 4;
- */
- private $preset = '';
- /**
- * The height of the video in pixels. Must be an even integer.
- * When not specified, the height is adjusted to match the specified width and
- * input aspect ratio. If both are omitted, the input height is used.
- *
- * Generated from protobuf field int32 height_pixels = 5;
- */
- private $height_pixels = 0;
- /**
- * The width of the video in pixels. Must be an even integer.
- * When not specified, the width is adjusted to match the specified height and
- * input aspect ratio. If both are omitted, the input width is used.
- *
- * Generated from protobuf field int32 width_pixels = 6;
- */
- private $width_pixels = 0;
- /**
- * Pixel format to use. The default is `"yuv420p"`.
- * Supported pixel formats:
- * - 'yuv420p' pixel format.
- * - 'yuv422p' pixel format.
- * - 'yuv444p' pixel format.
- * - 'yuv420p10' 10-bit HDR pixel format.
- * - 'yuv422p10' 10-bit HDR pixel format.
- * - 'yuv444p10' 10-bit HDR pixel format.
- * - 'yuv420p12' 12-bit HDR pixel format.
- * - 'yuv422p12' 12-bit HDR pixel format.
- * - 'yuv444p12' 12-bit HDR pixel format.
- *
- * Generated from protobuf field string pixel_format = 7;
- */
- private $pixel_format = '';
- /**
- * Required. The video bitrate in bits per second. The minimum value is 1,000.
- * The maximum value for H264/H265 is 800,000,000. The maximum value for VP9
- * is 480,000,000.
- *
- * Generated from protobuf field int32 bitrate_bps = 8 [(.google.api.field_behavior) = REQUIRED];
- */
- private $bitrate_bps = 0;
- /**
- * Specify the `rate_control_mode`. The default is `"vbr"`.
- * Supported rate control modes:
- * - 'vbr' - variable bitrate
- * - 'crf' - constant rate factor
- *
- * Generated from protobuf field string rate_control_mode = 9;
- */
- private $rate_control_mode = '';
- /**
- * Use two-pass encoding strategy to achieve better video quality.
- * `VideoStream.rate_control_mode` must be `"vbr"`. The default is `false`.
- *
- * Generated from protobuf field bool enable_two_pass = 10;
- */
- private $enable_two_pass = false;
- /**
- * Target CRF level. Must be between 10 and 36, where 10 is the highest
- * quality and 36 is the most efficient compression. The default is 21.
- *
- * Generated from protobuf field int32 crf_level = 11;
- */
- private $crf_level = 0;
- /**
- * Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater
- * than zero. The default is equal to `VideoStream.bitrate_bps`.
- *
- * Generated from protobuf field int32 vbv_size_bits = 12;
- */
- private $vbv_size_bits = 0;
- /**
- * Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must
- * be greater than zero. The default is equal to 90% of
- * `VideoStream.vbv_size_bits`.
- *
- * Generated from protobuf field int32 vbv_fullness_bits = 13;
- */
- private $vbv_fullness_bits = 0;
- /**
- * Specifies whether an open Group of Pictures (GOP) structure should be
- * allowed or not. The default is `false`.
- *
- * Generated from protobuf field bool allow_open_gop = 14;
- */
- private $allow_open_gop = false;
- /**
- * The entropy coder to use. The default is `"cabac"`.
- * Supported entropy coders:
- * - 'cavlc'
- * - 'cabac'
- *
- * Generated from protobuf field string entropy_coder = 17;
- */
- private $entropy_coder = '';
- /**
- * Allow B-pyramid for reference frame selection. This may not be supported
- * on all decoders. The default is `false`.
- *
- * Generated from protobuf field bool b_pyramid = 18;
- */
- private $b_pyramid = false;
- /**
- * The number of consecutive B-frames. Must be greater than or equal to zero.
- * Must be less than `VideoStream.gop_frame_count` if set. The default is 0.
- *
- * Generated from protobuf field int32 b_frame_count = 19;
- */
- private $b_frame_count = 0;
- /**
- * Required. The target video frame rate in frames per second (FPS). Must be less than
- * or equal to 120. Will default to the input frame rate if larger than the
- * input frame rate. The API will generate an output FPS that is divisible by
- * the input FPS, and smaller or equal to the target FPS. See
- * [Calculate frame
- * rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
- * more information.
- *
- * Generated from protobuf field double frame_rate = 20 [(.google.api.field_behavior) = REQUIRED];
- */
- private $frame_rate = 0.0;
- /**
- * Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and
- * 1, where 0 disables the quantizer and 1 maximizes the quantizer. A
- * higher value equals a lower bitrate but smoother image. The default is 0.
- *
- * Generated from protobuf field double aq_strength = 21;
- */
- private $aq_strength = 0.0;
- protected $gop_mode;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $codec
- * Codec type. The following codecs are supported:
- * * `h264` (default)
- * * `h265`
- * * `vp9`
- * @type string $profile
- * Enforces the specified codec profile. The following profiles are supported:
- * * `baseline`
- * * `main`
- * * `high` (default)
- * The available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- * @type string $tune
- * Enforces the specified codec tune. The available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- * @type string $preset
- * Enforces the specified codec preset. The default is `veryfast`. The
- * available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- * @type int $height_pixels
- * The height of the video in pixels. Must be an even integer.
- * When not specified, the height is adjusted to match the specified width and
- * input aspect ratio. If both are omitted, the input height is used.
- * @type int $width_pixels
- * The width of the video in pixels. Must be an even integer.
- * When not specified, the width is adjusted to match the specified height and
- * input aspect ratio. If both are omitted, the input width is used.
- * @type string $pixel_format
- * Pixel format to use. The default is `"yuv420p"`.
- * Supported pixel formats:
- * - 'yuv420p' pixel format.
- * - 'yuv422p' pixel format.
- * - 'yuv444p' pixel format.
- * - 'yuv420p10' 10-bit HDR pixel format.
- * - 'yuv422p10' 10-bit HDR pixel format.
- * - 'yuv444p10' 10-bit HDR pixel format.
- * - 'yuv420p12' 12-bit HDR pixel format.
- * - 'yuv422p12' 12-bit HDR pixel format.
- * - 'yuv444p12' 12-bit HDR pixel format.
- * @type int $bitrate_bps
- * Required. The video bitrate in bits per second. The minimum value is 1,000.
- * The maximum value for H264/H265 is 800,000,000. The maximum value for VP9
- * is 480,000,000.
- * @type string $rate_control_mode
- * Specify the `rate_control_mode`. The default is `"vbr"`.
- * Supported rate control modes:
- * - 'vbr' - variable bitrate
- * - 'crf' - constant rate factor
- * @type bool $enable_two_pass
- * Use two-pass encoding strategy to achieve better video quality.
- * `VideoStream.rate_control_mode` must be `"vbr"`. The default is `false`.
- * @type int $crf_level
- * Target CRF level. Must be between 10 and 36, where 10 is the highest
- * quality and 36 is the most efficient compression. The default is 21.
- * @type int $vbv_size_bits
- * Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater
- * than zero. The default is equal to `VideoStream.bitrate_bps`.
- * @type int $vbv_fullness_bits
- * Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must
- * be greater than zero. The default is equal to 90% of
- * `VideoStream.vbv_size_bits`.
- * @type bool $allow_open_gop
- * Specifies whether an open Group of Pictures (GOP) structure should be
- * allowed or not. The default is `false`.
- * @type int $gop_frame_count
- * Select the GOP size based on the specified frame count. Must be greater
- * than zero.
- * @type \Google\Protobuf\Duration $gop_duration
- * Select the GOP size based on the specified duration. The default is
- * `"3s"`. Note that `gopDuration` must be less than or equal to
- * [`segmentDuration`](#SegmentSettings), and
- * [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
- * @type string $entropy_coder
- * The entropy coder to use. The default is `"cabac"`.
- * Supported entropy coders:
- * - 'cavlc'
- * - 'cabac'
- * @type bool $b_pyramid
- * Allow B-pyramid for reference frame selection. This may not be supported
- * on all decoders. The default is `false`.
- * @type int $b_frame_count
- * The number of consecutive B-frames. Must be greater than or equal to zero.
- * Must be less than `VideoStream.gop_frame_count` if set. The default is 0.
- * @type float $frame_rate
- * Required. The target video frame rate in frames per second (FPS). Must be less than
- * or equal to 120. Will default to the input frame rate if larger than the
- * input frame rate. The API will generate an output FPS that is divisible by
- * the input FPS, and smaller or equal to the target FPS. See
- * [Calculate frame
- * rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
- * more information.
- * @type float $aq_strength
- * Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and
- * 1, where 0 disables the quantizer and 1 maximizes the quantizer. A
- * higher value equals a lower bitrate but smoother image. The default is 0.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Codec type. The following codecs are supported:
- * * `h264` (default)
- * * `h265`
- * * `vp9`
- *
- * Generated from protobuf field string codec = 1;
- * @return string
- */
- public function getCodec()
- {
- return $this->codec;
- }
-
- /**
- * Codec type. The following codecs are supported:
- * * `h264` (default)
- * * `h265`
- * * `vp9`
- *
- * Generated from protobuf field string codec = 1;
- * @param string $var
- * @return $this
- */
- public function setCodec($var)
- {
- GPBUtil::checkString($var, True);
- $this->codec = $var;
-
- return $this;
- }
-
- /**
- * Enforces the specified codec profile. The following profiles are supported:
- * * `baseline`
- * * `main`
- * * `high` (default)
- * The available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- *
- * Generated from protobuf field string profile = 2;
- * @return string
- */
- public function getProfile()
- {
- return $this->profile;
- }
-
- /**
- * Enforces the specified codec profile. The following profiles are supported:
- * * `baseline`
- * * `main`
- * * `high` (default)
- * The available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- *
- * Generated from protobuf field string profile = 2;
- * @param string $var
- * @return $this
- */
- public function setProfile($var)
- {
- GPBUtil::checkString($var, True);
- $this->profile = $var;
-
- return $this;
- }
-
- /**
- * Enforces the specified codec tune. The available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- *
- * Generated from protobuf field string tune = 3;
- * @return string
- */
- public function getTune()
- {
- return $this->tune;
- }
-
- /**
- * Enforces the specified codec tune. The available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- *
- * Generated from protobuf field string tune = 3;
- * @param string $var
- * @return $this
- */
- public function setTune($var)
- {
- GPBUtil::checkString($var, True);
- $this->tune = $var;
-
- return $this;
- }
-
- /**
- * Enforces the specified codec preset. The default is `veryfast`. The
- * available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- *
- * Generated from protobuf field string preset = 4;
- * @return string
- */
- public function getPreset()
- {
- return $this->preset;
- }
-
- /**
- * Enforces the specified codec preset. The default is `veryfast`. The
- * available options are
- * FFmpeg-compatible. Note that certain values for this
- * field may cause the transcoder to override other fields you set in the
- * `VideoStream` message.
- *
- * Generated from protobuf field string preset = 4;
- * @param string $var
- * @return $this
- */
- public function setPreset($var)
- {
- GPBUtil::checkString($var, True);
- $this->preset = $var;
-
- return $this;
- }
-
- /**
- * The height of the video in pixels. Must be an even integer.
- * When not specified, the height is adjusted to match the specified width and
- * input aspect ratio. If both are omitted, the input height is used.
- *
- * Generated from protobuf field int32 height_pixels = 5;
- * @return int
- */
- public function getHeightPixels()
- {
- return $this->height_pixels;
- }
-
- /**
- * The height of the video in pixels. Must be an even integer.
- * When not specified, the height is adjusted to match the specified width and
- * input aspect ratio. If both are omitted, the input height is used.
- *
- * Generated from protobuf field int32 height_pixels = 5;
- * @param int $var
- * @return $this
- */
- public function setHeightPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->height_pixels = $var;
-
- return $this;
- }
-
- /**
- * The width of the video in pixels. Must be an even integer.
- * When not specified, the width is adjusted to match the specified height and
- * input aspect ratio. If both are omitted, the input width is used.
- *
- * Generated from protobuf field int32 width_pixels = 6;
- * @return int
- */
- public function getWidthPixels()
- {
- return $this->width_pixels;
- }
-
- /**
- * The width of the video in pixels. Must be an even integer.
- * When not specified, the width is adjusted to match the specified height and
- * input aspect ratio. If both are omitted, the input width is used.
- *
- * Generated from protobuf field int32 width_pixels = 6;
- * @param int $var
- * @return $this
- */
- public function setWidthPixels($var)
- {
- GPBUtil::checkInt32($var);
- $this->width_pixels = $var;
-
- return $this;
- }
-
- /**
- * Pixel format to use. The default is `"yuv420p"`.
- * Supported pixel formats:
- * - 'yuv420p' pixel format.
- * - 'yuv422p' pixel format.
- * - 'yuv444p' pixel format.
- * - 'yuv420p10' 10-bit HDR pixel format.
- * - 'yuv422p10' 10-bit HDR pixel format.
- * - 'yuv444p10' 10-bit HDR pixel format.
- * - 'yuv420p12' 12-bit HDR pixel format.
- * - 'yuv422p12' 12-bit HDR pixel format.
- * - 'yuv444p12' 12-bit HDR pixel format.
- *
- * Generated from protobuf field string pixel_format = 7;
- * @return string
- */
- public function getPixelFormat()
- {
- return $this->pixel_format;
- }
-
- /**
- * Pixel format to use. The default is `"yuv420p"`.
- * Supported pixel formats:
- * - 'yuv420p' pixel format.
- * - 'yuv422p' pixel format.
- * - 'yuv444p' pixel format.
- * - 'yuv420p10' 10-bit HDR pixel format.
- * - 'yuv422p10' 10-bit HDR pixel format.
- * - 'yuv444p10' 10-bit HDR pixel format.
- * - 'yuv420p12' 12-bit HDR pixel format.
- * - 'yuv422p12' 12-bit HDR pixel format.
- * - 'yuv444p12' 12-bit HDR pixel format.
- *
- * Generated from protobuf field string pixel_format = 7;
- * @param string $var
- * @return $this
- */
- public function setPixelFormat($var)
- {
- GPBUtil::checkString($var, True);
- $this->pixel_format = $var;
-
- return $this;
- }
-
- /**
- * Required. The video bitrate in bits per second. The minimum value is 1,000.
- * The maximum value for H264/H265 is 800,000,000. The maximum value for VP9
- * is 480,000,000.
- *
- * Generated from protobuf field int32 bitrate_bps = 8 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getBitrateBps()
- {
- return $this->bitrate_bps;
- }
-
- /**
- * Required. The video bitrate in bits per second. The minimum value is 1,000.
- * The maximum value for H264/H265 is 800,000,000. The maximum value for VP9
- * is 480,000,000.
- *
- * Generated from protobuf field int32 bitrate_bps = 8 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setBitrateBps($var)
- {
- GPBUtil::checkInt32($var);
- $this->bitrate_bps = $var;
-
- return $this;
- }
-
- /**
- * Specify the `rate_control_mode`. The default is `"vbr"`.
- * Supported rate control modes:
- * - 'vbr' - variable bitrate
- * - 'crf' - constant rate factor
- *
- * Generated from protobuf field string rate_control_mode = 9;
- * @return string
- */
- public function getRateControlMode()
- {
- return $this->rate_control_mode;
- }
-
- /**
- * Specify the `rate_control_mode`. The default is `"vbr"`.
- * Supported rate control modes:
- * - 'vbr' - variable bitrate
- * - 'crf' - constant rate factor
- *
- * Generated from protobuf field string rate_control_mode = 9;
- * @param string $var
- * @return $this
- */
- public function setRateControlMode($var)
- {
- GPBUtil::checkString($var, True);
- $this->rate_control_mode = $var;
-
- return $this;
- }
-
- /**
- * Use two-pass encoding strategy to achieve better video quality.
- * `VideoStream.rate_control_mode` must be `"vbr"`. The default is `false`.
- *
- * Generated from protobuf field bool enable_two_pass = 10;
- * @return bool
- */
- public function getEnableTwoPass()
- {
- return $this->enable_two_pass;
- }
-
- /**
- * Use two-pass encoding strategy to achieve better video quality.
- * `VideoStream.rate_control_mode` must be `"vbr"`. The default is `false`.
- *
- * Generated from protobuf field bool enable_two_pass = 10;
- * @param bool $var
- * @return $this
- */
- public function setEnableTwoPass($var)
- {
- GPBUtil::checkBool($var);
- $this->enable_two_pass = $var;
-
- return $this;
- }
-
- /**
- * Target CRF level. Must be between 10 and 36, where 10 is the highest
- * quality and 36 is the most efficient compression. The default is 21.
- *
- * Generated from protobuf field int32 crf_level = 11;
- * @return int
- */
- public function getCrfLevel()
- {
- return $this->crf_level;
- }
-
- /**
- * Target CRF level. Must be between 10 and 36, where 10 is the highest
- * quality and 36 is the most efficient compression. The default is 21.
- *
- * Generated from protobuf field int32 crf_level = 11;
- * @param int $var
- * @return $this
- */
- public function setCrfLevel($var)
- {
- GPBUtil::checkInt32($var);
- $this->crf_level = $var;
-
- return $this;
- }
-
- /**
- * Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater
- * than zero. The default is equal to `VideoStream.bitrate_bps`.
- *
- * Generated from protobuf field int32 vbv_size_bits = 12;
- * @return int
- */
- public function getVbvSizeBits()
- {
- return $this->vbv_size_bits;
- }
-
- /**
- * Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater
- * than zero. The default is equal to `VideoStream.bitrate_bps`.
- *
- * Generated from protobuf field int32 vbv_size_bits = 12;
- * @param int $var
- * @return $this
- */
- public function setVbvSizeBits($var)
- {
- GPBUtil::checkInt32($var);
- $this->vbv_size_bits = $var;
-
- return $this;
- }
-
- /**
- * Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must
- * be greater than zero. The default is equal to 90% of
- * `VideoStream.vbv_size_bits`.
- *
- * Generated from protobuf field int32 vbv_fullness_bits = 13;
- * @return int
- */
- public function getVbvFullnessBits()
- {
- return $this->vbv_fullness_bits;
- }
-
- /**
- * Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must
- * be greater than zero. The default is equal to 90% of
- * `VideoStream.vbv_size_bits`.
- *
- * Generated from protobuf field int32 vbv_fullness_bits = 13;
- * @param int $var
- * @return $this
- */
- public function setVbvFullnessBits($var)
- {
- GPBUtil::checkInt32($var);
- $this->vbv_fullness_bits = $var;
-
- return $this;
- }
-
- /**
- * Specifies whether an open Group of Pictures (GOP) structure should be
- * allowed or not. The default is `false`.
- *
- * Generated from protobuf field bool allow_open_gop = 14;
- * @return bool
- */
- public function getAllowOpenGop()
- {
- return $this->allow_open_gop;
- }
-
- /**
- * Specifies whether an open Group of Pictures (GOP) structure should be
- * allowed or not. The default is `false`.
- *
- * Generated from protobuf field bool allow_open_gop = 14;
- * @param bool $var
- * @return $this
- */
- public function setAllowOpenGop($var)
- {
- GPBUtil::checkBool($var);
- $this->allow_open_gop = $var;
-
- return $this;
- }
-
- /**
- * Select the GOP size based on the specified frame count. Must be greater
- * than zero.
- *
- * Generated from protobuf field int32 gop_frame_count = 15;
- * @return int
- */
- public function getGopFrameCount()
- {
- return $this->readOneof(15);
- }
-
- public function hasGopFrameCount()
- {
- return $this->hasOneof(15);
- }
-
- /**
- * Select the GOP size based on the specified frame count. Must be greater
- * than zero.
- *
- * Generated from protobuf field int32 gop_frame_count = 15;
- * @param int $var
- * @return $this
- */
- public function setGopFrameCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->writeOneof(15, $var);
-
- return $this;
- }
-
- /**
- * Select the GOP size based on the specified duration. The default is
- * `"3s"`. Note that `gopDuration` must be less than or equal to
- * [`segmentDuration`](#SegmentSettings), and
- * [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
- *
- * Generated from protobuf field .google.protobuf.Duration gop_duration = 16;
- * @return \Google\Protobuf\Duration|null
- */
- public function getGopDuration()
- {
- return $this->readOneof(16);
- }
-
- public function hasGopDuration()
- {
- return $this->hasOneof(16);
- }
-
- /**
- * Select the GOP size based on the specified duration. The default is
- * `"3s"`. Note that `gopDuration` must be less than or equal to
- * [`segmentDuration`](#SegmentSettings), and
- * [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
- *
- * Generated from protobuf field .google.protobuf.Duration gop_duration = 16;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setGopDuration($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->writeOneof(16, $var);
-
- return $this;
- }
-
- /**
- * The entropy coder to use. The default is `"cabac"`.
- * Supported entropy coders:
- * - 'cavlc'
- * - 'cabac'
- *
- * Generated from protobuf field string entropy_coder = 17;
- * @return string
- */
- public function getEntropyCoder()
- {
- return $this->entropy_coder;
- }
-
- /**
- * The entropy coder to use. The default is `"cabac"`.
- * Supported entropy coders:
- * - 'cavlc'
- * - 'cabac'
- *
- * Generated from protobuf field string entropy_coder = 17;
- * @param string $var
- * @return $this
- */
- public function setEntropyCoder($var)
- {
- GPBUtil::checkString($var, True);
- $this->entropy_coder = $var;
-
- return $this;
- }
-
- /**
- * Allow B-pyramid for reference frame selection. This may not be supported
- * on all decoders. The default is `false`.
- *
- * Generated from protobuf field bool b_pyramid = 18;
- * @return bool
- */
- public function getBPyramid()
- {
- return $this->b_pyramid;
- }
-
- /**
- * Allow B-pyramid for reference frame selection. This may not be supported
- * on all decoders. The default is `false`.
- *
- * Generated from protobuf field bool b_pyramid = 18;
- * @param bool $var
- * @return $this
- */
- public function setBPyramid($var)
- {
- GPBUtil::checkBool($var);
- $this->b_pyramid = $var;
-
- return $this;
- }
-
- /**
- * The number of consecutive B-frames. Must be greater than or equal to zero.
- * Must be less than `VideoStream.gop_frame_count` if set. The default is 0.
- *
- * Generated from protobuf field int32 b_frame_count = 19;
- * @return int
- */
- public function getBFrameCount()
- {
- return $this->b_frame_count;
- }
-
- /**
- * The number of consecutive B-frames. Must be greater than or equal to zero.
- * Must be less than `VideoStream.gop_frame_count` if set. The default is 0.
- *
- * Generated from protobuf field int32 b_frame_count = 19;
- * @param int $var
- * @return $this
- */
- public function setBFrameCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->b_frame_count = $var;
-
- return $this;
- }
-
- /**
- * Required. The target video frame rate in frames per second (FPS). Must be less than
- * or equal to 120. Will default to the input frame rate if larger than the
- * input frame rate. The API will generate an output FPS that is divisible by
- * the input FPS, and smaller or equal to the target FPS. See
- * [Calculate frame
- * rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
- * more information.
- *
- * Generated from protobuf field double frame_rate = 20 [(.google.api.field_behavior) = REQUIRED];
- * @return float
- */
- public function getFrameRate()
- {
- return $this->frame_rate;
- }
-
- /**
- * Required. The target video frame rate in frames per second (FPS). Must be less than
- * or equal to 120. Will default to the input frame rate if larger than the
- * input frame rate. The API will generate an output FPS that is divisible by
- * the input FPS, and smaller or equal to the target FPS. See
- * [Calculate frame
- * rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
- * more information.
- *
- * Generated from protobuf field double frame_rate = 20 [(.google.api.field_behavior) = REQUIRED];
- * @param float $var
- * @return $this
- */
- public function setFrameRate($var)
- {
- GPBUtil::checkDouble($var);
- $this->frame_rate = $var;
-
- return $this;
- }
-
- /**
- * Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and
- * 1, where 0 disables the quantizer and 1 maximizes the quantizer. A
- * higher value equals a lower bitrate but smoother image. The default is 0.
- *
- * Generated from protobuf field double aq_strength = 21;
- * @return float
- */
- public function getAqStrength()
- {
- return $this->aq_strength;
- }
-
- /**
- * Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and
- * 1, where 0 disables the quantizer and 1 maximizes the quantizer. A
- * higher value equals a lower bitrate but smoother image. The default is 0.
- *
- * Generated from protobuf field double aq_strength = 21;
- * @param float $var
- * @return $this
- */
- public function setAqStrength($var)
- {
- GPBUtil::checkDouble($var);
- $this->aq_strength = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getGopMode()
- {
- return $this->whichOneof("gop_mode");
- }
-
-}
-
diff --git a/VideoTranscoder/src/V1beta1/gapic_metadata.json b/VideoTranscoder/src/V1beta1/gapic_metadata.json
deleted file mode 100644
index 6eb7417d697c..000000000000
--- a/VideoTranscoder/src/V1beta1/gapic_metadata.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "schema": "1.0",
- "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
- "language": "php",
- "protoPackage": "google.cloud.video.transcoder.v1beta1",
- "libraryPackage": "Google\\Cloud\\Video\\Transcoder\\V1beta1",
- "services": {
- "TranscoderService": {
- "clients": {
- "grpc": {
- "libraryClient": "TranscoderServiceGapicClient",
- "rpcs": {
- "CreateJob": {
- "methods": [
- "createJob"
- ]
- },
- "CreateJobTemplate": {
- "methods": [
- "createJobTemplate"
- ]
- },
- "DeleteJob": {
- "methods": [
- "deleteJob"
- ]
- },
- "DeleteJobTemplate": {
- "methods": [
- "deleteJobTemplate"
- ]
- },
- "GetJob": {
- "methods": [
- "getJob"
- ]
- },
- "GetJobTemplate": {
- "methods": [
- "getJobTemplate"
- ]
- },
- "ListJobTemplates": {
- "methods": [
- "listJobTemplates"
- ]
- },
- "ListJobs": {
- "methods": [
- "listJobs"
- ]
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/VideoTranscoder/src/V1beta1/resources/transcoder_service_client_config.json b/VideoTranscoder/src/V1beta1/resources/transcoder_service_client_config.json
deleted file mode 100644
index 20a14c70bd89..000000000000
--- a/VideoTranscoder/src/V1beta1/resources/transcoder_service_client_config.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "interfaces": {
- "google.cloud.video.transcoder.v1beta1.TranscoderService": {
- "retry_codes": {
- "no_retry_codes": [],
- "retry_policy_1_codes": [
- "UNAVAILABLE"
- ],
- "no_retry_1_codes": []
- },
- "retry_params": {
- "no_retry_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 0,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 0,
- "total_timeout_millis": 0
- },
- "retry_policy_1_params": {
- "initial_retry_delay_millis": 1000,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 10000,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- },
- "no_retry_1_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- }
- },
- "methods": {
- "CreateJob": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CreateJobTemplate": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "DeleteJob": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "DeleteJobTemplate": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "GetJob": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "GetJobTemplate": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "ListJobTemplates": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "ListJobs": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- }
- }
- }
- }
-}
diff --git a/VideoTranscoder/src/V1beta1/resources/transcoder_service_descriptor_config.php b/VideoTranscoder/src/V1beta1/resources/transcoder_service_descriptor_config.php
deleted file mode 100644
index 4765ff7321fd..000000000000
--- a/VideoTranscoder/src/V1beta1/resources/transcoder_service_descriptor_config.php
+++ /dev/null
@@ -1,28 +0,0 @@
- [
- 'google.cloud.video.transcoder.v1beta1.TranscoderService' => [
- 'ListJobTemplates' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getJobTemplates',
- ],
- ],
- 'ListJobs' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getJobs',
- ],
- ],
- ],
- ],
-];
diff --git a/VideoTranscoder/src/V1beta1/resources/transcoder_service_rest_client_config.php b/VideoTranscoder/src/V1beta1/resources/transcoder_service_rest_client_config.php
deleted file mode 100644
index 24099c30848e..000000000000
--- a/VideoTranscoder/src/V1beta1/resources/transcoder_service_rest_client_config.php
+++ /dev/null
@@ -1,101 +0,0 @@
- [
- 'google.cloud.video.transcoder.v1beta1.TranscoderService' => [
- 'CreateJob' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/jobs',
- 'body' => 'job',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateJobTemplate' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/jobTemplates',
- 'body' => 'job_template',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'job_template_id',
- ],
- ],
- 'DeleteJob' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/jobs/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteJobTemplate' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/jobTemplates/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetJob' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/jobs/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetJobTemplate' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/jobTemplates/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListJobTemplates' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/jobTemplates',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListJobs' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/jobs',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- ],
- ],
-];
diff --git a/VideoTranscoder/tests/Unit/V1/Client/TranscoderServiceClientTest.php b/VideoTranscoder/tests/Unit/V1/Client/TranscoderServiceClientTest.php
index 3a9a8088e2d6..d3614dd8de14 100644
--- a/VideoTranscoder/tests/Unit/V1/Client/TranscoderServiceClientTest.php
+++ b/VideoTranscoder/tests/Unit/V1/Client/TranscoderServiceClientTest.php
@@ -1,6 +1,6 @@
getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
+ return $this->getMockBuilder(CredentialsWrapper::class)
+ ->disableOriginalConstructor()
+ ->getMock();
}
/** @return TranscoderServiceClient */
@@ -97,9 +99,7 @@ public function createJobTest()
// Mock request
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
$job = new Job();
- $request = (new CreateJobRequest())
- ->setParent($formattedParent)
- ->setJob($job);
+ $request = (new CreateJobRequest())->setParent($formattedParent)->setJob($job);
$response = $gapicClient->createJob($request);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
@@ -125,19 +125,20 @@ public function createJobExceptionTest()
$status = new stdClass();
$status->code = Code::DATA_LOSS;
$status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
+ $expectedExceptionMessage = json_encode(
+ [
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ],
+ JSON_PRETTY_PRINT
+ );
$transport->addResponse(null, $status);
// Mock request
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
$job = new Job();
- $request = (new CreateJobRequest())
- ->setParent($formattedParent)
- ->setJob($job);
+ $request = (new CreateJobRequest())->setParent($formattedParent)->setJob($job);
try {
$gapicClient->createJob($request);
// If the $gapicClient method call did not throw, fail the test
@@ -199,12 +200,15 @@ public function createJobTemplateExceptionTest()
$status = new stdClass();
$status->code = Code::DATA_LOSS;
$status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
+ $expectedExceptionMessage = json_encode(
+ [
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ],
+ JSON_PRETTY_PRINT
+ );
$transport->addResponse(null, $status);
// Mock request
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
@@ -240,8 +244,7 @@ public function deleteJobTest()
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- $request = (new DeleteJobRequest())
- ->setName($formattedName);
+ $request = (new DeleteJobRequest())->setName($formattedName);
$gapicClient->deleteJob($request);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -264,17 +267,19 @@ public function deleteJobExceptionTest()
$status = new stdClass();
$status->code = Code::DATA_LOSS;
$status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
+ $expectedExceptionMessage = json_encode(
+ [
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ],
+ JSON_PRETTY_PRINT
+ );
$transport->addResponse(null, $status);
// Mock request
$formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- $request = (new DeleteJobRequest())
- ->setName($formattedName);
+ $request = (new DeleteJobRequest())->setName($formattedName);
try {
$gapicClient->deleteJob($request);
// If the $gapicClient method call did not throw, fail the test
@@ -301,8 +306,7 @@ public function deleteJobTemplateTest()
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- $request = (new DeleteJobTemplateRequest())
- ->setName($formattedName);
+ $request = (new DeleteJobTemplateRequest())->setName($formattedName);
$gapicClient->deleteJobTemplate($request);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -325,17 +329,19 @@ public function deleteJobTemplateExceptionTest()
$status = new stdClass();
$status->code = Code::DATA_LOSS;
$status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
+ $expectedExceptionMessage = json_encode(
+ [
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ],
+ JSON_PRETTY_PRINT
+ );
$transport->addResponse(null, $status);
// Mock request
$formattedName = $gapicClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- $request = (new DeleteJobTemplateRequest())
- ->setName($formattedName);
+ $request = (new DeleteJobTemplateRequest())->setName($formattedName);
try {
$gapicClient->deleteJobTemplate($request);
// If the $gapicClient method call did not throw, fail the test
@@ -374,8 +380,7 @@ public function getJobTest()
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- $request = (new GetJobRequest())
- ->setName($formattedName);
+ $request = (new GetJobRequest())->setName($formattedName);
$response = $gapicClient->getJob($request);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
@@ -399,17 +404,19 @@ public function getJobExceptionTest()
$status = new stdClass();
$status->code = Code::DATA_LOSS;
$status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
+ $expectedExceptionMessage = json_encode(
+ [
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ],
+ JSON_PRETTY_PRINT
+ );
$transport->addResponse(null, $status);
// Mock request
$formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- $request = (new GetJobRequest())
- ->setName($formattedName);
+ $request = (new GetJobRequest())->setName($formattedName);
try {
$gapicClient->getJob($request);
// If the $gapicClient method call did not throw, fail the test
@@ -438,8 +445,7 @@ public function getJobTemplateTest()
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- $request = (new GetJobTemplateRequest())
- ->setName($formattedName);
+ $request = (new GetJobTemplateRequest())->setName($formattedName);
$response = $gapicClient->getJobTemplate($request);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
@@ -463,17 +469,19 @@ public function getJobTemplateExceptionTest()
$status = new stdClass();
$status->code = Code::DATA_LOSS;
$status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
+ $expectedExceptionMessage = json_encode(
+ [
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ],
+ JSON_PRETTY_PRINT
+ );
$transport->addResponse(null, $status);
// Mock request
$formattedName = $gapicClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- $request = (new GetJobTemplateRequest())
- ->setName($formattedName);
+ $request = (new GetJobTemplateRequest())->setName($formattedName);
try {
$gapicClient->getJobTemplate($request);
// If the $gapicClient method call did not throw, fail the test
@@ -498,17 +506,14 @@ public function listJobTemplatesTest()
// Mock response
$nextPageToken = '';
$jobTemplatesElement = new JobTemplate();
- $jobTemplates = [
- $jobTemplatesElement,
- ];
+ $jobTemplates = [$jobTemplatesElement];
$expectedResponse = new ListJobTemplatesResponse();
$expectedResponse->setNextPageToken($nextPageToken);
$expectedResponse->setJobTemplates($jobTemplates);
$transport->addResponse($expectedResponse);
// Mock request
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListJobTemplatesRequest())
- ->setParent($formattedParent);
+ $request = (new ListJobTemplatesRequest())->setParent($formattedParent);
$response = $gapicClient->listJobTemplates($request);
$this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
$resources = iterator_to_array($response->iterateAllElements());
@@ -535,17 +540,19 @@ public function listJobTemplatesExceptionTest()
$status = new stdClass();
$status->code = Code::DATA_LOSS;
$status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
+ $expectedExceptionMessage = json_encode(
+ [
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ],
+ JSON_PRETTY_PRINT
+ );
$transport->addResponse(null, $status);
// Mock request
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListJobTemplatesRequest())
- ->setParent($formattedParent);
+ $request = (new ListJobTemplatesRequest())->setParent($formattedParent);
try {
$gapicClient->listJobTemplates($request);
// If the $gapicClient method call did not throw, fail the test
@@ -570,17 +577,14 @@ public function listJobsTest()
// Mock response
$nextPageToken = '';
$jobsElement = new Job();
- $jobs = [
- $jobsElement,
- ];
+ $jobs = [$jobsElement];
$expectedResponse = new ListJobsResponse();
$expectedResponse->setNextPageToken($nextPageToken);
$expectedResponse->setJobs($jobs);
$transport->addResponse($expectedResponse);
// Mock request
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListJobsRequest())
- ->setParent($formattedParent);
+ $request = (new ListJobsRequest())->setParent($formattedParent);
$response = $gapicClient->listJobs($request);
$this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
$resources = iterator_to_array($response->iterateAllElements());
@@ -607,17 +611,19 @@ public function listJobsExceptionTest()
$status = new stdClass();
$status->code = Code::DATA_LOSS;
$status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
+ $expectedExceptionMessage = json_encode(
+ [
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ],
+ JSON_PRETTY_PRINT
+ );
$transport->addResponse(null, $status);
// Mock request
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListJobsRequest())
- ->setParent($formattedParent);
+ $request = (new ListJobsRequest())->setParent($formattedParent);
try {
$gapicClient->listJobs($request);
// If the $gapicClient method call did not throw, fail the test
@@ -657,9 +663,7 @@ public function createJobAsyncTest()
// Mock request
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
$job = new Job();
- $request = (new CreateJobRequest())
- ->setParent($formattedParent)
- ->setJob($job);
+ $request = (new CreateJobRequest())->setParent($formattedParent)->setJob($job);
$response = $gapicClient->createJobAsync($request)->wait();
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
diff --git a/VideoTranscoder/tests/Unit/V1/TranscoderServiceClientTest.php b/VideoTranscoder/tests/Unit/V1/TranscoderServiceClientTest.php
deleted file mode 100644
index 5b31d4bb99d3..000000000000
--- a/VideoTranscoder/tests/Unit/V1/TranscoderServiceClientTest.php
+++ /dev/null
@@ -1,587 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return TranscoderServiceClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new TranscoderServiceClient($options);
- }
-
- /** @test */
- public function createJobTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $inputUri = 'inputUri1707300727';
- $outputUri = 'outputUri-1273518802';
- $templateId = 'templateId1769642752';
- $ttlAfterCompletionDays = 107576420;
- $batchModePriority = 2137003131;
- $expectedResponse = new Job();
- $expectedResponse->setName($name);
- $expectedResponse->setInputUri($inputUri);
- $expectedResponse->setOutputUri($outputUri);
- $expectedResponse->setTemplateId($templateId);
- $expectedResponse->setTtlAfterCompletionDays($ttlAfterCompletionDays);
- $expectedResponse->setBatchModePriority($batchModePriority);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $job = new Job();
- $response = $gapicClient->createJob($formattedParent, $job);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1.TranscoderService/CreateJob', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getJob();
- $this->assertProtobufEquals($job, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createJobExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $job = new Job();
- try {
- $gapicClient->createJob($formattedParent, $job);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createJobTemplateTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $expectedResponse = new JobTemplate();
- $expectedResponse->setName($name);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $jobTemplate = new JobTemplate();
- $jobTemplateId = 'jobTemplateId-1231822466';
- $response = $gapicClient->createJobTemplate($formattedParent, $jobTemplate, $jobTemplateId);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1.TranscoderService/CreateJobTemplate', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getJobTemplate();
- $this->assertProtobufEquals($jobTemplate, $actualValue);
- $actualValue = $actualRequestObject->getJobTemplateId();
- $this->assertProtobufEquals($jobTemplateId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createJobTemplateExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $jobTemplate = new JobTemplate();
- $jobTemplateId = 'jobTemplateId-1231822466';
- try {
- $gapicClient->createJobTemplate($formattedParent, $jobTemplate, $jobTemplateId);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteJobTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- $gapicClient->deleteJob($formattedName);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1.TranscoderService/DeleteJob', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteJobExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- try {
- $gapicClient->deleteJob($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteJobTemplateTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- $gapicClient->deleteJobTemplate($formattedName);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1.TranscoderService/DeleteJobTemplate', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteJobTemplateExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- try {
- $gapicClient->deleteJobTemplate($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getJobTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $inputUri = 'inputUri1707300727';
- $outputUri = 'outputUri-1273518802';
- $templateId = 'templateId1769642752';
- $ttlAfterCompletionDays = 107576420;
- $batchModePriority = 2137003131;
- $expectedResponse = new Job();
- $expectedResponse->setName($name2);
- $expectedResponse->setInputUri($inputUri);
- $expectedResponse->setOutputUri($outputUri);
- $expectedResponse->setTemplateId($templateId);
- $expectedResponse->setTtlAfterCompletionDays($ttlAfterCompletionDays);
- $expectedResponse->setBatchModePriority($batchModePriority);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- $response = $gapicClient->getJob($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1.TranscoderService/GetJob', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getJobExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- try {
- $gapicClient->getJob($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getJobTemplateTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $expectedResponse = new JobTemplate();
- $expectedResponse->setName($name2);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- $response = $gapicClient->getJobTemplate($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1.TranscoderService/GetJobTemplate', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getJobTemplateExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- try {
- $gapicClient->getJobTemplate($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listJobTemplatesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $jobTemplatesElement = new JobTemplate();
- $jobTemplates = [
- $jobTemplatesElement,
- ];
- $expectedResponse = new ListJobTemplatesResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setJobTemplates($jobTemplates);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $response = $gapicClient->listJobTemplates($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getJobTemplates()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1.TranscoderService/ListJobTemplates', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listJobTemplatesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- try {
- $gapicClient->listJobTemplates($formattedParent);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listJobsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $jobsElement = new Job();
- $jobs = [
- $jobsElement,
- ];
- $expectedResponse = new ListJobsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setJobs($jobs);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $response = $gapicClient->listJobs($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1.TranscoderService/ListJobs', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listJobsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- try {
- $gapicClient->listJobs($formattedParent);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-}
diff --git a/VideoTranscoder/tests/Unit/V1beta1/TranscoderServiceClientTest.php b/VideoTranscoder/tests/Unit/V1beta1/TranscoderServiceClientTest.php
deleted file mode 100644
index 0b0a04ba513e..000000000000
--- a/VideoTranscoder/tests/Unit/V1beta1/TranscoderServiceClientTest.php
+++ /dev/null
@@ -1,631 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /**
- * @return TranscoderServiceClient
- */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new TranscoderServiceClient($options);
- }
-
- /**
- * @test
- */
- public function createJobTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $inputUri = 'inputUri1707300727';
- $outputUri = 'outputUri-1273518802';
- $templateId = 'templateId1769642752';
- $priority = 1165461084;
- $failureReason = 'failureReason1743941273';
- $ttlAfterCompletionDays = 107576420;
- $expectedResponse = new Job();
- $expectedResponse->setName($name);
- $expectedResponse->setInputUri($inputUri);
- $expectedResponse->setOutputUri($outputUri);
- $expectedResponse->setTemplateId($templateId);
- $expectedResponse->setPriority($priority);
- $expectedResponse->setFailureReason($failureReason);
- $expectedResponse->setTtlAfterCompletionDays($ttlAfterCompletionDays);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]');
- $job = new Job();
- $response = $client->createJob($formattedParent, $job);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1beta1.TranscoderService/CreateJob', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getJob();
- $this->assertProtobufEquals($job, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function createJobExceptionTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]');
- $job = new Job();
- try {
- $client->createJob($formattedParent, $job);
- // If the $client method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function createJobTemplateTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $expectedResponse = new JobTemplate();
- $expectedResponse->setName($name);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]');
- $jobTemplate = new JobTemplate();
- $jobTemplateId = 'jobTemplateId-1231822466';
- $response = $client->createJobTemplate($formattedParent, $jobTemplate, $jobTemplateId);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1beta1.TranscoderService/CreateJobTemplate', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getJobTemplate();
- $this->assertProtobufEquals($jobTemplate, $actualValue);
- $actualValue = $actualRequestObject->getJobTemplateId();
- $this->assertProtobufEquals($jobTemplateId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function createJobTemplateExceptionTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]');
- $jobTemplate = new JobTemplate();
- $jobTemplateId = 'jobTemplateId-1231822466';
- try {
- $client->createJobTemplate($formattedParent, $jobTemplate, $jobTemplateId);
- // If the $client method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function deleteJobTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $client->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- $client->deleteJob($formattedName);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1beta1.TranscoderService/DeleteJob', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function deleteJobExceptionTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $client->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- try {
- $client->deleteJob($formattedName);
- // If the $client method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function deleteJobTemplateTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $client->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- $client->deleteJobTemplate($formattedName);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1beta1.TranscoderService/DeleteJobTemplate', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function deleteJobTemplateExceptionTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $client->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- try {
- $client->deleteJobTemplate($formattedName);
- // If the $client method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function getJobTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $inputUri = 'inputUri1707300727';
- $outputUri = 'outputUri-1273518802';
- $templateId = 'templateId1769642752';
- $priority = 1165461084;
- $failureReason = 'failureReason1743941273';
- $ttlAfterCompletionDays = 107576420;
- $expectedResponse = new Job();
- $expectedResponse->setName($name2);
- $expectedResponse->setInputUri($inputUri);
- $expectedResponse->setOutputUri($outputUri);
- $expectedResponse->setTemplateId($templateId);
- $expectedResponse->setPriority($priority);
- $expectedResponse->setFailureReason($failureReason);
- $expectedResponse->setTtlAfterCompletionDays($ttlAfterCompletionDays);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $client->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- $response = $client->getJob($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1beta1.TranscoderService/GetJob', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function getJobExceptionTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $client->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
- try {
- $client->getJob($formattedName);
- // If the $client method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function getJobTemplateTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $expectedResponse = new JobTemplate();
- $expectedResponse->setName($name2);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $client->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- $response = $client->getJobTemplate($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1beta1.TranscoderService/GetJobTemplate', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function getJobTemplateExceptionTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $client->jobTemplateName('[PROJECT]', '[LOCATION]', '[JOB_TEMPLATE]');
- try {
- $client->getJobTemplate($formattedName);
- // If the $client method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function listJobTemplatesTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $jobTemplatesElement = new JobTemplate();
- $jobTemplates = [
- $jobTemplatesElement,
- ];
- $expectedResponse = new ListJobTemplatesResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setJobTemplates($jobTemplates);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]');
- $response = $client->listJobTemplates($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getJobTemplates()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1beta1.TranscoderService/ListJobTemplates', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function listJobTemplatesExceptionTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]');
- try {
- $client->listJobTemplates($formattedParent);
- // If the $client method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function listJobsTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $jobsElement = new Job();
- $jobs = [
- $jobsElement,
- ];
- $expectedResponse = new ListJobsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setJobs($jobs);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]');
- $response = $client->listJobs($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.video.transcoder.v1beta1.TranscoderService/ListJobs', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /**
- * @test
- */
- public function listJobsExceptionTest()
- {
- $transport = $this->createTransport();
- $client = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]');
- try {
- $client->listJobs($formattedParent);
- // If the $client method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-}