diff --git a/packages/google-cloud-video-stitcher/README.md b/packages/google-cloud-video-stitcher/README.md index 5a9f347ce1d..f80e6060570 100644 --- a/packages/google-cloud-video-stitcher/README.md +++ b/packages/google-cloud-video-stitcher/README.md @@ -66,16 +66,19 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Video_stitcher_service.create_live_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_live_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_live_config.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.create_live_session | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_live_session.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_live_session.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.create_slate | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_slate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_slate.js,packages/google-cloud-video-stitcher/samples/README.md) | +| Video_stitcher_service.create_vod_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_vod_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_vod_config.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.create_vod_session | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_vod_session.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_vod_session.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.delete_cdn_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_cdn_key.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_cdn_key.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.delete_live_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_live_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_live_config.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.delete_slate | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_slate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_slate.js,packages/google-cloud-video-stitcher/samples/README.md) | +| Video_stitcher_service.delete_vod_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_vod_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_vod_config.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.get_cdn_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_cdn_key.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_cdn_key.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.get_live_ad_tag_detail | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_live_ad_tag_detail.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_live_ad_tag_detail.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.get_live_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_live_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_live_config.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.get_live_session | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_live_session.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_live_session.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.get_slate | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_slate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_slate.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.get_vod_ad_tag_detail | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_ad_tag_detail.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_ad_tag_detail.js,packages/google-cloud-video-stitcher/samples/README.md) | +| Video_stitcher_service.get_vod_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_config.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.get_vod_session | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_session.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_session.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.get_vod_stitch_detail | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_stitch_detail.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_stitch_detail.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.list_cdn_keys | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_cdn_keys.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_cdn_keys.js,packages/google-cloud-video-stitcher/samples/README.md) | @@ -83,9 +86,12 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Video_stitcher_service.list_live_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_live_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_live_configs.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.list_slates | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_slates.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_slates.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.list_vod_ad_tag_details | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_ad_tag_details.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_ad_tag_details.js,packages/google-cloud-video-stitcher/samples/README.md) | +| Video_stitcher_service.list_vod_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_configs.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.list_vod_stitch_details | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_stitch_details.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_stitch_details.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.update_cdn_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_cdn_key.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_cdn_key.js,packages/google-cloud-video-stitcher/samples/README.md) | +| Video_stitcher_service.update_live_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_live_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_live_config.js,packages/google-cloud-video-stitcher/samples/README.md) | | Video_stitcher_service.update_slate | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_slate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_slate.js,packages/google-cloud-video-stitcher/samples/README.md) | +| Video_stitcher_service.update_vod_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_vod_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_vod_config.js,packages/google-cloud-video-stitcher/samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/quickstart.js,packages/google-cloud-video-stitcher/samples/README.md) | diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/ad_tag_details.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/ad_tag_details.proto index 87a5f964a75..f710dd0d0e5 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/ad_tag_details.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/ad_tag_details.proto @@ -25,7 +25,9 @@ option java_multiple_files = true; option java_outer_classname = "AdTagDetailsProto"; option java_package = "com.google.cloud.video.stitcher.v1"; -// Container for a live session's ad tag detail. +// Information related to the details for one ad tag. This resource is only +// available for live sessions that do not implement Google Ad Manager ad +// insertion. message LiveAdTagDetail { option (google.api.resource) = { type: "videostitcher.googleapis.com/LiveAdTagDetail" diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/cdn_keys.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/cdn_keys.proto index b9284f66dca..4533ec9a95e 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/cdn_keys.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/cdn_keys.proto @@ -71,9 +71,26 @@ message AkamaiCdnKey { // Configuration for a Media CDN key. message MediaCdnKey { + // Configuration for a Media CDN token. + message TokenConfig { + // Optional. The query parameter in which to find the token. + // + // The name must be 1-64 characters long and match + // the regular expression `[a-zA-Z]([a-zA-Z0-9_-])*` which means the + // first character must be a letter, and all following characters + // must be a dash, underscore, letter or digit. + // + // Defaults to `edge-cache-token`. + string query_parameter = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // Input only. 64-byte ed25519 private key for this Media CDN key. bytes private_key = 1 [(google.api.field_behavior) = INPUT_ONLY]; // The keyset name of the Media CDN key. string key_name = 2; + + // Optional. If set, the URL will be signed using the Media CDN token. + // Otherwise, the URL would be signed using the standard Media CDN signature. + TokenConfig token_config = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/fetch_options.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/fetch_options.proto new file mode 100644 index 00000000000..febf89d38fc --- /dev/null +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/fetch_options.proto @@ -0,0 +1,31 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.video.stitcher.v1; + +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; +option java_multiple_files = true; +option java_outer_classname = "FetchOptionsProto"; +option java_package = "com.google.cloud.video.stitcher.v1"; + +// Options on how fetches should be made. +message FetchOptions { + // Custom headers to pass into fetch request. + // Headers must have a maximum of 3 key value pairs. + // Each key value pair must have a maximum of 256 characters per key and 256 + // characters per value. + map headers = 1; +} diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/live_configs.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/live_configs.proto index 727af7777bd..f63886a6443 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/live_configs.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/live_configs.proto @@ -18,6 +18,7 @@ package google.cloud.video.stitcher.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/video/stitcher/v1/fetch_options.proto"; import "google/protobuf/duration.proto"; option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; @@ -92,9 +93,7 @@ message LiveConfig { // Output only. State of the live config. State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. Determines how the ads are tracked. If - // [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.gam_live_config] - // is set, the value must be `CLIENT` because the IMA SDK handles ad tracking. + // Required. Determines how the ads are tracked. AdTracking ad_tracking = 6 [(google.api.field_behavior) = REQUIRED]; // This must refer to a slate in the same @@ -111,6 +110,9 @@ message LiveConfig { // The configuration for prefetching ads. PrefetchConfig prefetch_config = 10; + + // Options for fetching source manifests and segments. + FetchOptions source_fetch_options = 16; } // The configuration for prefetch ads. diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/sessions.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/sessions.proto index 2a2c70d3785..3bff646c277 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/sessions.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/sessions.proto @@ -55,24 +55,29 @@ message VodSession { // Output only. The playback URI of the stitched content. string play_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. URI of the media to stitch. - string source_uri = 5 [(google.api.field_behavior) = REQUIRED]; - - // Required. Ad tag URI. - string ad_tag_uri = 6 [(google.api.field_behavior) = REQUIRED]; - - // Key value pairs for ad tag macro replacement. If the - // specified ad tag URI has macros, this field provides the mapping - // to the value that will replace the macro in the ad tag URI. - // Macros are designated by square brackets. - // For example: + // URI of the media to stitch. For most use cases, you should create a + // [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information + // rather than setting this field directly. + string source_uri = 5; + + // Ad tag URI. For most use cases, you should create a + // [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information + // rather than setting this field directly. + string ad_tag_uri = 6; + + // Key value pairs for ad tag macro replacement, only available for VOD + // sessions that do not implement Google Ad manager ad insertion. If the + // specified ad tag URI has macros, this field provides the mapping to the + // value that will replace the macro in the ad tag URI. + // + // Macros are designated by square brackets, for example: // // Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"` // // Ad tag macro map: `{"geoId": "123"}` // // Fully qualified ad tag: - // `"`https://doubleclick.google.com/ad/1?geo_id=123"` + // `"https://doubleclick.google.com/ad/1?geo_id=123"` map ad_tag_macro_map = 7; // Additional options that affect the output of the manifest. @@ -87,6 +92,12 @@ message VodSession { // This field should be set with appropriate values if GAM is being used for // ads. GamSettings gam_settings = 13; + + // The resource name of the VOD config for this session, in the form of + // `projects/{project}/locations/{location}/vodConfigs/{id}`. + string vod_config = 14 [(google.api.resource_reference) = { + type: "videostitcher.googleapis.com/VodConfig" + }]; } // Describes what was stitched into a VOD session's manifest. @@ -144,11 +155,17 @@ message LiveSession { pattern: "projects/{project}/locations/{location}/liveSessions/{live_session}" }; - // Defines fields related to Google Ad Manager (GAM). This should be set if - // GAM is being used for ads. + // Defines fields related to Google Ad Manager (GAM). message GamSettings { - // Required. The stream ID generated by Ad Manager. + // Required. The stream ID generated by Ad Manager. This must be set if GAM + // is being used for ads and the session uses client-side ad tracking. string stream_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // [Targeting + // parameters](https://support.google.com/admanager/answer/7320899) to send + // to Ad Manager to generate a stream ID. This should only be set if the + // session uses server-side ad tracking. + map targeting_parameters = 4; } // Output only. The name of the live session, in the form of @@ -158,12 +175,12 @@ message LiveSession { // Output only. The URI to play the live session's ad-stitched stream. string play_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Key value pairs for ad tag macro replacement. If the - // specified ad tag URI has macros, this field provides the mapping - // to the value that will replace the macro in the ad tag URI. - // Macros are designated by square brackets. + // Key value pairs for ad tag macro replacement, only available for live + // sessions that do not implement Google Ad manager ad insertion. If the + // specified ad tag URI has macros, this field provides the mapping to the + // value that will replace the macro in the ad tag URI. // - // For example: + // Macros are designated by square brackets, for example: // // Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]" // @@ -188,6 +205,10 @@ message LiveSession { type: "videostitcher.googleapis.com/LiveConfig" } ]; + + // Determines how the ad should be tracked. This overrides the value set in + // the live config for this session. + AdTracking ad_tracking = 17; } // Options for manifest generation. diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/stitch_details.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/stitch_details.proto index a70839811a2..71edf60f96d 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/stitch_details.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/stitch_details.proto @@ -26,9 +26,9 @@ option java_multiple_files = true; option java_outer_classname = "StitchDetailsProto"; option java_package = "com.google.cloud.video.stitcher.v1"; -// Detailed information related to the interstitial of a VOD session. This -// resource is only available for VOD sessions that do not implement Google Ad -// Manager ad insertion. +// Information related to the interstitial of a VOD session. This resource is +// only available for VOD sessions that do not implement Google Ad Manager ad +// insertion. message VodStitchDetail { option (google.api.resource) = { type: "videostitcher.googleapis.com/VodStitchDetail" diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/video_stitcher_service.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/video_stitcher_service.proto index 38f7954e17d..d5b1841f790 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/video_stitcher_service.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/video_stitcher_service.proto @@ -26,6 +26,7 @@ import "google/cloud/video/stitcher/v1/live_configs.proto"; import "google/cloud/video/stitcher/v1/sessions.proto"; import "google/cloud/video/stitcher/v1/slates.proto"; import "google/cloud/video/stitcher/v1/stitch_details.proto"; +import "google/cloud/video/stitcher/v1/vod_configs.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -289,6 +290,82 @@ service VideoStitcherService { metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata" }; } + + // Updates the specified LiveConfig. Only update fields specified + // in the call method body. + rpc UpdateLiveConfig(UpdateLiveConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{live_config.name=projects/*/locations/*/liveConfigs/*}" + body: "live_config" + }; + option (google.api.method_signature) = "live_config,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.video.stitcher.v1.LiveConfig" + metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata" + }; + } + + // Registers the VOD config with the provided unique ID in + // the specified region. + rpc CreateVodConfig(CreateVodConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/vodConfigs" + body: "vod_config" + }; + option (google.api.method_signature) = "parent,vod_config,vod_config_id"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.video.stitcher.v1.VodConfig" + metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata" + }; + } + + // Lists all VOD configs managed by the Video Stitcher API that + // belong to the specified project and region. + rpc ListVodConfigs(ListVodConfigsRequest) returns (ListVodConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/vodConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the specified VOD config managed by the Video + // Stitcher API service. + rpc GetVodConfig(GetVodConfigRequest) returns (VodConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/vodConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes the specified VOD config. + rpc DeleteVodConfig(DeleteVodConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/vodConfigs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata" + }; + } + + // Updates the specified VOD config. Only update fields specified + // in the call method body. + rpc UpdateVodConfig(UpdateVodConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{vod_config.name=projects/*/locations/*/vodConfigs/*}" + body: "vod_config" + }; + option (google.api.method_signature) = "vod_config,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.video.stitcher.v1.VodConfig" + metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata" + }; + } } // Request message for VideoStitcherService.createCdnKey. @@ -764,6 +841,129 @@ message DeleteLiveConfigRequest { ]; } +// Request message for VideoStitcherService.updateLiveConfig. +message UpdateLiveConfigRequest { + // Required. The LiveConfig resource which replaces the resource on the + // server. + LiveConfig live_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. + // For the `FieldMask` definition, see + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for VideoStitcherService.createVodConfig +message CreateVodConfigRequest { + // Required. The project in which the VOD config should be created, in + // the form of `projects/{project_number}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "videostitcher.googleapis.com/VodConfig" + } + ]; + + // Required. The unique identifier ID to use for the VOD config. + string vod_config_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The VOD config resource to create. + VodConfig vod_config = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported `(00000000-0000-0000-0000-000000000000)`. + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for VideoStitcherService.listVodConfig. +message ListVodConfigsRequest { + // Required. The project that contains the list of VOD configs, in the + // form of `projects/{project_number}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "videostitcher.googleapis.com/VodConfig" + } + ]; + + // Optional. The maximum number of items to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to apply to list results (see + // [Filtering](https://google.aip.dev/160)). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the ordering of results following + // [Cloud API + // syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order). + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for VideoStitcher.ListVodConfig. +message ListVodConfigsResponse { + // List of VOD configs. + repeated VodConfig vod_configs = 1; + + // The pagination token. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for VideoStitcherService.getVodConfig. +message GetVodConfigRequest { + // Required. The name of the VOD config to be retrieved, in the form + // of `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "videostitcher.googleapis.com/VodConfig" + } + ]; +} + +// Request message for VideoStitcherService.deleteVodConfig. +message DeleteVodConfigRequest { + // Required. The name of the VOD config to be deleted, in the form of + // `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "videostitcher.googleapis.com/VodConfig" + } + ]; +} + +// Request message for VideoStitcherService.updateVodConfig. +message UpdateVodConfigRequest { + // Required. The VOD config resource which replaces the resource on the + // server. + VodConfig vod_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. + // For the `FieldMask` definition, see + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + // Represents the metadata of the long-running operation. message OperationMetadata { // The time the operation was created. diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/vod_configs.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/vod_configs.proto new file mode 100644 index 00000000000..17a47d47f96 --- /dev/null +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/vod_configs.proto @@ -0,0 +1,74 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.video.stitcher.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/video/stitcher/v1/fetch_options.proto"; + +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; +option java_multiple_files = true; +option java_outer_classname = "VodConfigsProto"; +option java_package = "com.google.cloud.video.stitcher.v1"; + +// Metadata used to register VOD configs. +message VodConfig { + option (google.api.resource) = { + type: "videostitcher.googleapis.com/VodConfig" + pattern: "projects/{project}/locations/{location}/vodConfigs/{vod_config}" + }; + + // State of the VOD config. + enum State { + // State is not specified. + STATE_UNSPECIFIED = 0; + + // VOD config is being created. + CREATING = 1; + + // VOD config is ready for use. + READY = 2; + + // VOD config is queued up for deletion. + DELETING = 3; + } + + // Output only. The resource name of the VOD config, in the form of + // `projects/{project}/locations/{location}/vodConfigs/{id}`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Source URI for the VOD stream manifest. + string source_uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The default ad tag associated with this VOD config. + string ad_tag_uri = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Google Ad Manager (GAM) metadata. + GamVodConfig gam_vod_config = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the VOD config. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Options for fetching source manifests and segments. + FetchOptions source_fetch_options = 8; +} + +// Metadata used for GAM ad decisioning. +message GamVodConfig { + // Required. Ad Manager network code to associate with the VOD config. + string network_code = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/packages/google-cloud-video-stitcher/protos/protos.d.ts b/packages/google-cloud-video-stitcher/protos/protos.d.ts index 4f42c17fb2c..7b669732a73 100644 --- a/packages/google-cloud-video-stitcher/protos/protos.d.ts +++ b/packages/google-cloud-video-stitcher/protos/protos.d.ts @@ -900,6 +900,9 @@ export namespace google { /** MediaCdnKey keyName */ keyName?: (string|null); + + /** MediaCdnKey tokenConfig */ + tokenConfig?: (google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig|null); } /** Represents a MediaCdnKey. */ @@ -917,6 +920,9 @@ export namespace google { /** MediaCdnKey keyName. */ public keyName: string; + /** MediaCdnKey tokenConfig. */ + public tokenConfig?: (google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig|null); + /** * Creates a new MediaCdnKey instance using the specified properties. * @param [properties] Properties to set @@ -995,6 +1001,106 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace MediaCdnKey { + + /** Properties of a TokenConfig. */ + interface ITokenConfig { + + /** TokenConfig queryParameter */ + queryParameter?: (string|null); + } + + /** Represents a TokenConfig. */ + class TokenConfig implements ITokenConfig { + + /** + * Constructs a new TokenConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig); + + /** TokenConfig queryParameter. */ + public queryParameter: string; + + /** + * Creates a new TokenConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TokenConfig instance + */ + public static create(properties?: google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig): google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig; + + /** + * Encodes the specified TokenConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.verify|verify} messages. + * @param message TokenConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TokenConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.verify|verify} messages. + * @param message TokenConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TokenConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TokenConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig; + + /** + * Decodes a TokenConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TokenConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig; + + /** + * Verifies a TokenConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TokenConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TokenConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig; + + /** + * Creates a plain object from a TokenConfig message. Also converts values to other types if specified. + * @param message TokenConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TokenConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TokenConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Properties of a CompanionAds. */ interface ICompanionAds { @@ -1822,6 +1928,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a FetchOptions. */ + interface IFetchOptions { + + /** FetchOptions headers */ + headers?: ({ [k: string]: string }|null); + } + + /** Represents a FetchOptions. */ + class FetchOptions implements IFetchOptions { + + /** + * Constructs a new FetchOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.video.stitcher.v1.IFetchOptions); + + /** FetchOptions headers. */ + public headers: { [k: string]: string }; + + /** + * Creates a new FetchOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FetchOptions instance + */ + public static create(properties?: google.cloud.video.stitcher.v1.IFetchOptions): google.cloud.video.stitcher.v1.FetchOptions; + + /** + * Encodes the specified FetchOptions message. Does not implicitly {@link google.cloud.video.stitcher.v1.FetchOptions.verify|verify} messages. + * @param message FetchOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.video.stitcher.v1.IFetchOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FetchOptions message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.FetchOptions.verify|verify} messages. + * @param message FetchOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.video.stitcher.v1.IFetchOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FetchOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FetchOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.FetchOptions; + + /** + * Decodes a FetchOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FetchOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.FetchOptions; + + /** + * Verifies a FetchOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FetchOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FetchOptions + */ + public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.FetchOptions; + + /** + * Creates a plain object from a FetchOptions message. Also converts values to other types if specified. + * @param message FetchOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.video.stitcher.v1.FetchOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FetchOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FetchOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** AdTracking enum. */ enum AdTracking { AD_TRACKING_UNSPECIFIED = 0, @@ -1858,6 +2061,9 @@ export namespace google { /** LiveConfig prefetchConfig */ prefetchConfig?: (google.cloud.video.stitcher.v1.IPrefetchConfig|null); + + /** LiveConfig sourceFetchOptions */ + sourceFetchOptions?: (google.cloud.video.stitcher.v1.IFetchOptions|null); } /** Represents a LiveConfig. */ @@ -1896,6 +2102,9 @@ export namespace google { /** LiveConfig prefetchConfig. */ public prefetchConfig?: (google.cloud.video.stitcher.v1.IPrefetchConfig|null); + /** LiveConfig sourceFetchOptions. */ + public sourceFetchOptions?: (google.cloud.video.stitcher.v1.IFetchOptions|null); + /** * Creates a new LiveConfig instance using the specified properties. * @param [properties] Properties to set @@ -2236,6 +2445,9 @@ export namespace google { /** VodSession gamSettings */ gamSettings?: (google.cloud.video.stitcher.v1.VodSession.IGamSettings|null); + + /** VodSession vodConfig */ + vodConfig?: (string|null); } /** Represents a VodSession. */ @@ -2277,6 +2489,9 @@ export namespace google { /** VodSession gamSettings. */ public gamSettings?: (google.cloud.video.stitcher.v1.VodSession.IGamSettings|null); + /** VodSession vodConfig. */ + public vodConfig: string; + /** * Creates a new VodSession instance using the specified properties. * @param [properties] Properties to set @@ -2905,6 +3120,9 @@ export namespace google { /** LiveSession liveConfig */ liveConfig?: (string|null); + + /** LiveSession adTracking */ + adTracking?: (google.cloud.video.stitcher.v1.AdTracking|keyof typeof google.cloud.video.stitcher.v1.AdTracking|null); } /** Represents a LiveSession. */ @@ -2934,6 +3152,9 @@ export namespace google { /** LiveSession liveConfig. */ public liveConfig: string; + /** LiveSession adTracking. */ + public adTracking: (google.cloud.video.stitcher.v1.AdTracking|keyof typeof google.cloud.video.stitcher.v1.AdTracking); + /** * Creates a new LiveSession instance using the specified properties. * @param [properties] Properties to set @@ -3019,6 +3240,9 @@ export namespace google { /** GamSettings streamId */ streamId?: (string|null); + + /** GamSettings targetingParameters */ + targetingParameters?: ({ [k: string]: string }|null); } /** Represents a GamSettings. */ @@ -3033,6 +3257,9 @@ export namespace google { /** GamSettings streamId. */ public streamId: string; + /** GamSettings targetingParameters. */ + public targetingParameters: { [k: string]: string }; + /** * Creates a new GamSettings instance using the specified properties. * @param [properties] Properties to set @@ -4122,6 +4349,90 @@ export namespace google { * @returns Promise */ public deleteLiveConfig(request: google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest): Promise; + + /** + * Calls UpdateLiveConfig. + * @param request UpdateLiveConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateLiveConfig(request: google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.UpdateLiveConfigCallback): void; + + /** + * Calls UpdateLiveConfig. + * @param request UpdateLiveConfigRequest message or plain object + * @returns Promise + */ + public updateLiveConfig(request: google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest): Promise; + + /** + * Calls CreateVodConfig. + * @param request CreateVodConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createVodConfig(request: google.cloud.video.stitcher.v1.ICreateVodConfigRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.CreateVodConfigCallback): void; + + /** + * Calls CreateVodConfig. + * @param request CreateVodConfigRequest message or plain object + * @returns Promise + */ + public createVodConfig(request: google.cloud.video.stitcher.v1.ICreateVodConfigRequest): Promise; + + /** + * Calls ListVodConfigs. + * @param request ListVodConfigsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListVodConfigsResponse + */ + public listVodConfigs(request: google.cloud.video.stitcher.v1.IListVodConfigsRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.ListVodConfigsCallback): void; + + /** + * Calls ListVodConfigs. + * @param request ListVodConfigsRequest message or plain object + * @returns Promise + */ + public listVodConfigs(request: google.cloud.video.stitcher.v1.IListVodConfigsRequest): Promise; + + /** + * Calls GetVodConfig. + * @param request GetVodConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VodConfig + */ + public getVodConfig(request: google.cloud.video.stitcher.v1.IGetVodConfigRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.GetVodConfigCallback): void; + + /** + * Calls GetVodConfig. + * @param request GetVodConfigRequest message or plain object + * @returns Promise + */ + public getVodConfig(request: google.cloud.video.stitcher.v1.IGetVodConfigRequest): Promise; + + /** + * Calls DeleteVodConfig. + * @param request DeleteVodConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteVodConfig(request: google.cloud.video.stitcher.v1.IDeleteVodConfigRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.DeleteVodConfigCallback): void; + + /** + * Calls DeleteVodConfig. + * @param request DeleteVodConfigRequest message or plain object + * @returns Promise + */ + public deleteVodConfig(request: google.cloud.video.stitcher.v1.IDeleteVodConfigRequest): Promise; + + /** + * Calls UpdateVodConfig. + * @param request UpdateVodConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateVodConfig(request: google.cloud.video.stitcher.v1.IUpdateVodConfigRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.UpdateVodConfigCallback): void; + + /** + * Calls UpdateVodConfig. + * @param request UpdateVodConfigRequest message or plain object + * @returns Promise + */ + public updateVodConfig(request: google.cloud.video.stitcher.v1.IUpdateVodConfigRequest): Promise; } namespace VideoStitcherService { @@ -4293,6 +4604,48 @@ export namespace google { * @param [response] Operation */ type DeleteLiveConfigCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|updateLiveConfig}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateLiveConfigCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createVodConfig}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateVodConfigCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listVodConfigs}. + * @param error Error, if any + * @param [response] ListVodConfigsResponse + */ + type ListVodConfigsCallback = (error: (Error|null), response?: google.cloud.video.stitcher.v1.ListVodConfigsResponse) => void; + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getVodConfig}. + * @param error Error, if any + * @param [response] VodConfig + */ + type GetVodConfigCallback = (error: (Error|null), response?: google.cloud.video.stitcher.v1.VodConfig) => void; + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteVodConfig}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteVodConfigCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|updateVodConfig}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateVodConfigCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } /** Properties of a CreateCdnKeyRequest. */ @@ -7439,75 +7792,820 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an OperationMetadata. */ - interface IOperationMetadata { - - /** OperationMetadata createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** Properties of an UpdateLiveConfigRequest. */ + interface IUpdateLiveConfigRequest { - /** OperationMetadata target */ - target?: (string|null); + /** UpdateLiveConfigRequest liveConfig */ + liveConfig?: (google.cloud.video.stitcher.v1.ILiveConfig|null); - /** OperationMetadata verb */ - verb?: (string|null); + /** UpdateLiveConfigRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an OperationMetadata. */ - class OperationMetadata implements IOperationMetadata { + /** Represents an UpdateLiveConfigRequest. */ + class UpdateLiveConfigRequest implements IUpdateLiveConfigRequest { /** - * Constructs a new OperationMetadata. + * Constructs a new UpdateLiveConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.video.stitcher.v1.IOperationMetadata); + constructor(properties?: google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest); - /** OperationMetadata createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata target. */ - public target: string; + /** UpdateLiveConfigRequest liveConfig. */ + public liveConfig?: (google.cloud.video.stitcher.v1.ILiveConfig|null); - /** OperationMetadata verb. */ - public verb: string; + /** UpdateLiveConfigRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new UpdateLiveConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns OperationMetadata instance + * @returns UpdateLiveConfigRequest instance */ - public static create(properties?: google.cloud.video.stitcher.v1.IOperationMetadata): google.cloud.video.stitcher.v1.OperationMetadata; + public static create(properties?: google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest): google.cloud.video.stitcher.v1.UpdateLiveConfigRequest; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.video.stitcher.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified UpdateLiveConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.verify|verify} messages. + * @param message UpdateLiveConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.video.stitcher.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified UpdateLiveConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.verify|verify} messages. + * @param message UpdateLiveConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.video.stitcher.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes an UpdateLiveConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OperationMetadata + * @returns UpdateLiveConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.OperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.UpdateLiveConfigRequest; + + /** + * Decodes an UpdateLiveConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateLiveConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.UpdateLiveConfigRequest; + + /** + * Verifies an UpdateLiveConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateLiveConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateLiveConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.UpdateLiveConfigRequest; + + /** + * Creates a plain object from an UpdateLiveConfigRequest message. Also converts values to other types if specified. + * @param message UpdateLiveConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.video.stitcher.v1.UpdateLiveConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateLiveConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateLiveConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateVodConfigRequest. */ + interface ICreateVodConfigRequest { + + /** CreateVodConfigRequest parent */ + parent?: (string|null); + + /** CreateVodConfigRequest vodConfigId */ + vodConfigId?: (string|null); + + /** CreateVodConfigRequest vodConfig */ + vodConfig?: (google.cloud.video.stitcher.v1.IVodConfig|null); + + /** CreateVodConfigRequest requestId */ + requestId?: (string|null); + } + + /** Represents a CreateVodConfigRequest. */ + class CreateVodConfigRequest implements ICreateVodConfigRequest { + + /** + * Constructs a new CreateVodConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.video.stitcher.v1.ICreateVodConfigRequest); + + /** CreateVodConfigRequest parent. */ + public parent: string; + + /** CreateVodConfigRequest vodConfigId. */ + public vodConfigId: string; + + /** CreateVodConfigRequest vodConfig. */ + public vodConfig?: (google.cloud.video.stitcher.v1.IVodConfig|null); + + /** CreateVodConfigRequest requestId. */ + public requestId: string; + + /** + * Creates a new CreateVodConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateVodConfigRequest instance + */ + public static create(properties?: google.cloud.video.stitcher.v1.ICreateVodConfigRequest): google.cloud.video.stitcher.v1.CreateVodConfigRequest; + + /** + * Encodes the specified CreateVodConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateVodConfigRequest.verify|verify} messages. + * @param message CreateVodConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.video.stitcher.v1.ICreateVodConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateVodConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateVodConfigRequest.verify|verify} messages. + * @param message CreateVodConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.video.stitcher.v1.ICreateVodConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateVodConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateVodConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.CreateVodConfigRequest; + + /** + * Decodes a CreateVodConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateVodConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.CreateVodConfigRequest; + + /** + * Verifies a CreateVodConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateVodConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateVodConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.CreateVodConfigRequest; + + /** + * Creates a plain object from a CreateVodConfigRequest message. Also converts values to other types if specified. + * @param message CreateVodConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.video.stitcher.v1.CreateVodConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateVodConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateVodConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListVodConfigsRequest. */ + interface IListVodConfigsRequest { + + /** ListVodConfigsRequest parent */ + parent?: (string|null); + + /** ListVodConfigsRequest pageSize */ + pageSize?: (number|null); + + /** ListVodConfigsRequest pageToken */ + pageToken?: (string|null); + + /** ListVodConfigsRequest filter */ + filter?: (string|null); + + /** ListVodConfigsRequest orderBy */ + orderBy?: (string|null); + } + + /** Represents a ListVodConfigsRequest. */ + class ListVodConfigsRequest implements IListVodConfigsRequest { + + /** + * Constructs a new ListVodConfigsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.video.stitcher.v1.IListVodConfigsRequest); + + /** ListVodConfigsRequest parent. */ + public parent: string; + + /** ListVodConfigsRequest pageSize. */ + public pageSize: number; + + /** ListVodConfigsRequest pageToken. */ + public pageToken: string; + + /** ListVodConfigsRequest filter. */ + public filter: string; + + /** ListVodConfigsRequest orderBy. */ + public orderBy: string; + + /** + * Creates a new ListVodConfigsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListVodConfigsRequest instance + */ + public static create(properties?: google.cloud.video.stitcher.v1.IListVodConfigsRequest): google.cloud.video.stitcher.v1.ListVodConfigsRequest; + + /** + * Encodes the specified ListVodConfigsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodConfigsRequest.verify|verify} messages. + * @param message ListVodConfigsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.video.stitcher.v1.IListVodConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListVodConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodConfigsRequest.verify|verify} messages. + * @param message ListVodConfigsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.video.stitcher.v1.IListVodConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListVodConfigsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListVodConfigsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.ListVodConfigsRequest; + + /** + * Decodes a ListVodConfigsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListVodConfigsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.ListVodConfigsRequest; + + /** + * Verifies a ListVodConfigsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListVodConfigsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListVodConfigsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.ListVodConfigsRequest; + + /** + * Creates a plain object from a ListVodConfigsRequest message. Also converts values to other types if specified. + * @param message ListVodConfigsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.video.stitcher.v1.ListVodConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListVodConfigsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListVodConfigsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListVodConfigsResponse. */ + interface IListVodConfigsResponse { + + /** ListVodConfigsResponse vodConfigs */ + vodConfigs?: (google.cloud.video.stitcher.v1.IVodConfig[]|null); + + /** ListVodConfigsResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListVodConfigsResponse unreachable */ + unreachable?: (string[]|null); + } + + /** Represents a ListVodConfigsResponse. */ + class ListVodConfigsResponse implements IListVodConfigsResponse { + + /** + * Constructs a new ListVodConfigsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.video.stitcher.v1.IListVodConfigsResponse); + + /** ListVodConfigsResponse vodConfigs. */ + public vodConfigs: google.cloud.video.stitcher.v1.IVodConfig[]; + + /** ListVodConfigsResponse nextPageToken. */ + public nextPageToken: string; + + /** ListVodConfigsResponse unreachable. */ + public unreachable: string[]; + + /** + * Creates a new ListVodConfigsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListVodConfigsResponse instance + */ + public static create(properties?: google.cloud.video.stitcher.v1.IListVodConfigsResponse): google.cloud.video.stitcher.v1.ListVodConfigsResponse; + + /** + * Encodes the specified ListVodConfigsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodConfigsResponse.verify|verify} messages. + * @param message ListVodConfigsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.video.stitcher.v1.IListVodConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListVodConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodConfigsResponse.verify|verify} messages. + * @param message ListVodConfigsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.video.stitcher.v1.IListVodConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListVodConfigsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListVodConfigsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.ListVodConfigsResponse; + + /** + * Decodes a ListVodConfigsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListVodConfigsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.ListVodConfigsResponse; + + /** + * Verifies a ListVodConfigsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListVodConfigsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListVodConfigsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.ListVodConfigsResponse; + + /** + * Creates a plain object from a ListVodConfigsResponse message. Also converts values to other types if specified. + * @param message ListVodConfigsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.video.stitcher.v1.ListVodConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListVodConfigsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListVodConfigsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVodConfigRequest. */ + interface IGetVodConfigRequest { + + /** GetVodConfigRequest name */ + name?: (string|null); + } + + /** Represents a GetVodConfigRequest. */ + class GetVodConfigRequest implements IGetVodConfigRequest { + + /** + * Constructs a new GetVodConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.video.stitcher.v1.IGetVodConfigRequest); + + /** GetVodConfigRequest name. */ + public name: string; + + /** + * Creates a new GetVodConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVodConfigRequest instance + */ + public static create(properties?: google.cloud.video.stitcher.v1.IGetVodConfigRequest): google.cloud.video.stitcher.v1.GetVodConfigRequest; + + /** + * Encodes the specified GetVodConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodConfigRequest.verify|verify} messages. + * @param message GetVodConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.video.stitcher.v1.IGetVodConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVodConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodConfigRequest.verify|verify} messages. + * @param message GetVodConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.video.stitcher.v1.IGetVodConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVodConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVodConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.GetVodConfigRequest; + + /** + * Decodes a GetVodConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVodConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.GetVodConfigRequest; + + /** + * Verifies a GetVodConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVodConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVodConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.GetVodConfigRequest; + + /** + * Creates a plain object from a GetVodConfigRequest message. Also converts values to other types if specified. + * @param message GetVodConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.video.stitcher.v1.GetVodConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVodConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVodConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteVodConfigRequest. */ + interface IDeleteVodConfigRequest { + + /** DeleteVodConfigRequest name */ + name?: (string|null); + } + + /** Represents a DeleteVodConfigRequest. */ + class DeleteVodConfigRequest implements IDeleteVodConfigRequest { + + /** + * Constructs a new DeleteVodConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.video.stitcher.v1.IDeleteVodConfigRequest); + + /** DeleteVodConfigRequest name. */ + public name: string; + + /** + * Creates a new DeleteVodConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteVodConfigRequest instance + */ + public static create(properties?: google.cloud.video.stitcher.v1.IDeleteVodConfigRequest): google.cloud.video.stitcher.v1.DeleteVodConfigRequest; + + /** + * Encodes the specified DeleteVodConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteVodConfigRequest.verify|verify} messages. + * @param message DeleteVodConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.video.stitcher.v1.IDeleteVodConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteVodConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteVodConfigRequest.verify|verify} messages. + * @param message DeleteVodConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.video.stitcher.v1.IDeleteVodConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteVodConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteVodConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.DeleteVodConfigRequest; + + /** + * Decodes a DeleteVodConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteVodConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.DeleteVodConfigRequest; + + /** + * Verifies a DeleteVodConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteVodConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteVodConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.DeleteVodConfigRequest; + + /** + * Creates a plain object from a DeleteVodConfigRequest message. Also converts values to other types if specified. + * @param message DeleteVodConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.video.stitcher.v1.DeleteVodConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteVodConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteVodConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateVodConfigRequest. */ + interface IUpdateVodConfigRequest { + + /** UpdateVodConfigRequest vodConfig */ + vodConfig?: (google.cloud.video.stitcher.v1.IVodConfig|null); + + /** UpdateVodConfigRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateVodConfigRequest. */ + class UpdateVodConfigRequest implements IUpdateVodConfigRequest { + + /** + * Constructs a new UpdateVodConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.video.stitcher.v1.IUpdateVodConfigRequest); + + /** UpdateVodConfigRequest vodConfig. */ + public vodConfig?: (google.cloud.video.stitcher.v1.IVodConfig|null); + + /** UpdateVodConfigRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateVodConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateVodConfigRequest instance + */ + public static create(properties?: google.cloud.video.stitcher.v1.IUpdateVodConfigRequest): google.cloud.video.stitcher.v1.UpdateVodConfigRequest; + + /** + * Encodes the specified UpdateVodConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateVodConfigRequest.verify|verify} messages. + * @param message UpdateVodConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.video.stitcher.v1.IUpdateVodConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateVodConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateVodConfigRequest.verify|verify} messages. + * @param message UpdateVodConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.video.stitcher.v1.IUpdateVodConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateVodConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateVodConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.UpdateVodConfigRequest; + + /** + * Decodes an UpdateVodConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateVodConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.UpdateVodConfigRequest; + + /** + * Verifies an UpdateVodConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateVodConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateVodConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.UpdateVodConfigRequest; + + /** + * Creates a plain object from an UpdateVodConfigRequest message. Also converts values to other types if specified. + * @param message UpdateVodConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.video.stitcher.v1.UpdateVodConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateVodConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateVodConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OperationMetadata. */ + interface IOperationMetadata { + + /** OperationMetadata createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** OperationMetadata endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** OperationMetadata target */ + target?: (string|null); + + /** OperationMetadata verb */ + verb?: (string|null); + } + + /** Represents an OperationMetadata. */ + class OperationMetadata implements IOperationMetadata { + + /** + * Constructs a new OperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.video.stitcher.v1.IOperationMetadata); + + /** OperationMetadata createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** OperationMetadata endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** OperationMetadata target. */ + public target: string; + + /** OperationMetadata verb. */ + public verb: string; + + /** + * Creates a new OperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns OperationMetadata instance + */ + public static create(properties?: google.cloud.video.stitcher.v1.IOperationMetadata): google.cloud.video.stitcher.v1.OperationMetadata; + + /** + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.video.stitcher.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.video.stitcher.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.video.stitcher.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.OperationMetadata; /** * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. @@ -7553,6 +8651,241 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of a VodConfig. */ + interface IVodConfig { + + /** VodConfig name */ + name?: (string|null); + + /** VodConfig sourceUri */ + sourceUri?: (string|null); + + /** VodConfig adTagUri */ + adTagUri?: (string|null); + + /** VodConfig gamVodConfig */ + gamVodConfig?: (google.cloud.video.stitcher.v1.IGamVodConfig|null); + + /** VodConfig state */ + state?: (google.cloud.video.stitcher.v1.VodConfig.State|keyof typeof google.cloud.video.stitcher.v1.VodConfig.State|null); + + /** VodConfig sourceFetchOptions */ + sourceFetchOptions?: (google.cloud.video.stitcher.v1.IFetchOptions|null); + } + + /** Represents a VodConfig. */ + class VodConfig implements IVodConfig { + + /** + * Constructs a new VodConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.video.stitcher.v1.IVodConfig); + + /** VodConfig name. */ + public name: string; + + /** VodConfig sourceUri. */ + public sourceUri: string; + + /** VodConfig adTagUri. */ + public adTagUri: string; + + /** VodConfig gamVodConfig. */ + public gamVodConfig?: (google.cloud.video.stitcher.v1.IGamVodConfig|null); + + /** VodConfig state. */ + public state: (google.cloud.video.stitcher.v1.VodConfig.State|keyof typeof google.cloud.video.stitcher.v1.VodConfig.State); + + /** VodConfig sourceFetchOptions. */ + public sourceFetchOptions?: (google.cloud.video.stitcher.v1.IFetchOptions|null); + + /** + * Creates a new VodConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns VodConfig instance + */ + public static create(properties?: google.cloud.video.stitcher.v1.IVodConfig): google.cloud.video.stitcher.v1.VodConfig; + + /** + * Encodes the specified VodConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodConfig.verify|verify} messages. + * @param message VodConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.video.stitcher.v1.IVodConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VodConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodConfig.verify|verify} messages. + * @param message VodConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.video.stitcher.v1.IVodConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VodConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VodConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.VodConfig; + + /** + * Decodes a VodConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VodConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.VodConfig; + + /** + * Verifies a VodConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VodConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VodConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.VodConfig; + + /** + * Creates a plain object from a VodConfig message. Also converts values to other types if specified. + * @param message VodConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.video.stitcher.v1.VodConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VodConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VodConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace VodConfig { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + CREATING = 1, + READY = 2, + DELETING = 3 + } + } + + /** Properties of a GamVodConfig. */ + interface IGamVodConfig { + + /** GamVodConfig networkCode */ + networkCode?: (string|null); + } + + /** Represents a GamVodConfig. */ + class GamVodConfig implements IGamVodConfig { + + /** + * Constructs a new GamVodConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.video.stitcher.v1.IGamVodConfig); + + /** GamVodConfig networkCode. */ + public networkCode: string; + + /** + * Creates a new GamVodConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns GamVodConfig instance + */ + public static create(properties?: google.cloud.video.stitcher.v1.IGamVodConfig): google.cloud.video.stitcher.v1.GamVodConfig; + + /** + * Encodes the specified GamVodConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.GamVodConfig.verify|verify} messages. + * @param message GamVodConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.video.stitcher.v1.IGamVodConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GamVodConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GamVodConfig.verify|verify} messages. + * @param message GamVodConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.video.stitcher.v1.IGamVodConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GamVodConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GamVodConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.stitcher.v1.GamVodConfig; + + /** + * Decodes a GamVodConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GamVodConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.GamVodConfig; + + /** + * Verifies a GamVodConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GamVodConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GamVodConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.GamVodConfig; + + /** + * Creates a plain object from a GamVodConfig message. Also converts values to other types if specified. + * @param message GamVodConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.video.stitcher.v1.GamVodConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GamVodConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GamVodConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } } } diff --git a/packages/google-cloud-video-stitcher/protos/protos.js b/packages/google-cloud-video-stitcher/protos/protos.js index dfacef9bbeb..cfe51651cb7 100644 --- a/packages/google-cloud-video-stitcher/protos/protos.js +++ b/packages/google-cloud-video-stitcher/protos/protos.js @@ -2169,6 +2169,7 @@ * @interface IMediaCdnKey * @property {Uint8Array|null} [privateKey] MediaCdnKey privateKey * @property {string|null} [keyName] MediaCdnKey keyName + * @property {google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig|null} [tokenConfig] MediaCdnKey tokenConfig */ /** @@ -2202,6 +2203,14 @@ */ MediaCdnKey.prototype.keyName = ""; + /** + * MediaCdnKey tokenConfig. + * @member {google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig|null|undefined} tokenConfig + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey + * @instance + */ + MediaCdnKey.prototype.tokenConfig = null; + /** * Creates a new MediaCdnKey instance using the specified properties. * @function create @@ -2230,6 +2239,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.privateKey); if (message.keyName != null && Object.hasOwnProperty.call(message, "keyName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyName); + if (message.tokenConfig != null && Object.hasOwnProperty.call(message, "tokenConfig")) + $root.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.encode(message.tokenConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -2272,6 +2283,10 @@ message.keyName = reader.string(); break; } + case 3: { + message.tokenConfig = $root.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -2313,6 +2328,11 @@ if (message.keyName != null && message.hasOwnProperty("keyName")) if (!$util.isString(message.keyName)) return "keyName: string expected"; + if (message.tokenConfig != null && message.hasOwnProperty("tokenConfig")) { + var error = $root.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.verify(message.tokenConfig); + if (error) + return "tokenConfig." + error; + } return null; }; @@ -2335,6 +2355,11 @@ message.privateKey = object.privateKey; if (object.keyName != null) message.keyName = String(object.keyName); + if (object.tokenConfig != null) { + if (typeof object.tokenConfig !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.MediaCdnKey.tokenConfig: object expected"); + message.tokenConfig = $root.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.fromObject(object.tokenConfig); + } return message; }; @@ -2360,11 +2385,14 @@ object.privateKey = $util.newBuffer(object.privateKey); } object.keyName = ""; + object.tokenConfig = null; } if (message.privateKey != null && message.hasOwnProperty("privateKey")) object.privateKey = options.bytes === String ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateKey) : message.privateKey; if (message.keyName != null && message.hasOwnProperty("keyName")) object.keyName = message.keyName; + if (message.tokenConfig != null && message.hasOwnProperty("tokenConfig")) + object.tokenConfig = $root.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.toObject(message.tokenConfig, options); return object; }; @@ -2394,6 +2422,209 @@ return typeUrlPrefix + "/google.cloud.video.stitcher.v1.MediaCdnKey"; }; + MediaCdnKey.TokenConfig = (function() { + + /** + * Properties of a TokenConfig. + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey + * @interface ITokenConfig + * @property {string|null} [queryParameter] TokenConfig queryParameter + */ + + /** + * Constructs a new TokenConfig. + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey + * @classdesc Represents a TokenConfig. + * @implements ITokenConfig + * @constructor + * @param {google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig=} [properties] Properties to set + */ + function TokenConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TokenConfig queryParameter. + * @member {string} queryParameter + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + * @instance + */ + TokenConfig.prototype.queryParameter = ""; + + /** + * Creates a new TokenConfig instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + * @static + * @param {google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig} TokenConfig instance + */ + TokenConfig.create = function create(properties) { + return new TokenConfig(properties); + }; + + /** + * Encodes the specified TokenConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + * @static + * @param {google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig} message TokenConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TokenConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.queryParameter != null && Object.hasOwnProperty.call(message, "queryParameter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.queryParameter); + return writer; + }; + + /** + * Encodes the specified TokenConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + * @static + * @param {google.cloud.video.stitcher.v1.MediaCdnKey.ITokenConfig} message TokenConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TokenConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TokenConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig} TokenConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TokenConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.queryParameter = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TokenConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig} TokenConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TokenConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TokenConfig message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TokenConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.queryParameter != null && message.hasOwnProperty("queryParameter")) + if (!$util.isString(message.queryParameter)) + return "queryParameter: string expected"; + return null; + }; + + /** + * Creates a TokenConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig} TokenConfig + */ + TokenConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig) + return object; + var message = new $root.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig(); + if (object.queryParameter != null) + message.queryParameter = String(object.queryParameter); + return message; + }; + + /** + * Creates a plain object from a TokenConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + * @static + * @param {google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig} message TokenConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TokenConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.queryParameter = ""; + if (message.queryParameter != null && message.hasOwnProperty("queryParameter")) + object.queryParameter = message.queryParameter; + return object; + }; + + /** + * Converts this TokenConfig to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + * @instance + * @returns {Object.} JSON object + */ + TokenConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TokenConfig + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TokenConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig"; + }; + + return TokenConfig; + })(); + return MediaCdnKey; })(); @@ -4578,48 +4809,25 @@ return ProgressEvent; })(); - /** - * AdTracking enum. - * @name google.cloud.video.stitcher.v1.AdTracking - * @enum {number} - * @property {number} AD_TRACKING_UNSPECIFIED=0 AD_TRACKING_UNSPECIFIED value - * @property {number} CLIENT=1 CLIENT value - * @property {number} SERVER=2 SERVER value - */ - v1.AdTracking = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AD_TRACKING_UNSPECIFIED"] = 0; - values[valuesById[1] = "CLIENT"] = 1; - values[valuesById[2] = "SERVER"] = 2; - return values; - })(); - - v1.LiveConfig = (function() { + v1.FetchOptions = (function() { /** - * Properties of a LiveConfig. + * Properties of a FetchOptions. * @memberof google.cloud.video.stitcher.v1 - * @interface ILiveConfig - * @property {string|null} [name] LiveConfig name - * @property {string|null} [sourceUri] LiveConfig sourceUri - * @property {string|null} [adTagUri] LiveConfig adTagUri - * @property {google.cloud.video.stitcher.v1.IGamLiveConfig|null} [gamLiveConfig] LiveConfig gamLiveConfig - * @property {google.cloud.video.stitcher.v1.LiveConfig.State|null} [state] LiveConfig state - * @property {google.cloud.video.stitcher.v1.AdTracking|null} [adTracking] LiveConfig adTracking - * @property {string|null} [defaultSlate] LiveConfig defaultSlate - * @property {google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy|null} [stitchingPolicy] LiveConfig stitchingPolicy - * @property {google.cloud.video.stitcher.v1.IPrefetchConfig|null} [prefetchConfig] LiveConfig prefetchConfig + * @interface IFetchOptions + * @property {Object.|null} [headers] FetchOptions headers */ /** - * Constructs a new LiveConfig. + * Constructs a new FetchOptions. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a LiveConfig. - * @implements ILiveConfig + * @classdesc Represents a FetchOptions. + * @implements IFetchOptions * @constructor - * @param {google.cloud.video.stitcher.v1.ILiveConfig=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IFetchOptions=} [properties] Properties to set */ - function LiveConfig(properties) { + function FetchOptions(properties) { + this.headers = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4627,187 +4835,95 @@ } /** - * LiveConfig name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.LiveConfig - * @instance - */ - LiveConfig.prototype.name = ""; - - /** - * LiveConfig sourceUri. - * @member {string} sourceUri - * @memberof google.cloud.video.stitcher.v1.LiveConfig - * @instance - */ - LiveConfig.prototype.sourceUri = ""; - - /** - * LiveConfig adTagUri. - * @member {string} adTagUri - * @memberof google.cloud.video.stitcher.v1.LiveConfig - * @instance - */ - LiveConfig.prototype.adTagUri = ""; - - /** - * LiveConfig gamLiveConfig. - * @member {google.cloud.video.stitcher.v1.IGamLiveConfig|null|undefined} gamLiveConfig - * @memberof google.cloud.video.stitcher.v1.LiveConfig - * @instance - */ - LiveConfig.prototype.gamLiveConfig = null; - - /** - * LiveConfig state. - * @member {google.cloud.video.stitcher.v1.LiveConfig.State} state - * @memberof google.cloud.video.stitcher.v1.LiveConfig - * @instance - */ - LiveConfig.prototype.state = 0; - - /** - * LiveConfig adTracking. - * @member {google.cloud.video.stitcher.v1.AdTracking} adTracking - * @memberof google.cloud.video.stitcher.v1.LiveConfig - * @instance - */ - LiveConfig.prototype.adTracking = 0; - - /** - * LiveConfig defaultSlate. - * @member {string} defaultSlate - * @memberof google.cloud.video.stitcher.v1.LiveConfig - * @instance - */ - LiveConfig.prototype.defaultSlate = ""; - - /** - * LiveConfig stitchingPolicy. - * @member {google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy} stitchingPolicy - * @memberof google.cloud.video.stitcher.v1.LiveConfig - * @instance - */ - LiveConfig.prototype.stitchingPolicy = 0; - - /** - * LiveConfig prefetchConfig. - * @member {google.cloud.video.stitcher.v1.IPrefetchConfig|null|undefined} prefetchConfig - * @memberof google.cloud.video.stitcher.v1.LiveConfig + * FetchOptions headers. + * @member {Object.} headers + * @memberof google.cloud.video.stitcher.v1.FetchOptions * @instance */ - LiveConfig.prototype.prefetchConfig = null; + FetchOptions.prototype.headers = $util.emptyObject; /** - * Creates a new LiveConfig instance using the specified properties. + * Creates a new FetchOptions instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @memberof google.cloud.video.stitcher.v1.FetchOptions * @static - * @param {google.cloud.video.stitcher.v1.ILiveConfig=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.LiveConfig} LiveConfig instance + * @param {google.cloud.video.stitcher.v1.IFetchOptions=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.FetchOptions} FetchOptions instance */ - LiveConfig.create = function create(properties) { - return new LiveConfig(properties); + FetchOptions.create = function create(properties) { + return new FetchOptions(properties); }; /** - * Encodes the specified LiveConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveConfig.verify|verify} messages. + * Encodes the specified FetchOptions message. Does not implicitly {@link google.cloud.video.stitcher.v1.FetchOptions.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @memberof google.cloud.video.stitcher.v1.FetchOptions * @static - * @param {google.cloud.video.stitcher.v1.ILiveConfig} message LiveConfig message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IFetchOptions} message FetchOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LiveConfig.encode = function encode(message, writer) { + FetchOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.sourceUri != null && Object.hasOwnProperty.call(message, "sourceUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceUri); - if (message.adTagUri != null && Object.hasOwnProperty.call(message, "adTagUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.adTagUri); - if (message.gamLiveConfig != null && Object.hasOwnProperty.call(message, "gamLiveConfig")) - $root.google.cloud.video.stitcher.v1.GamLiveConfig.encode(message.gamLiveConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); - if (message.adTracking != null && Object.hasOwnProperty.call(message, "adTracking")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.adTracking); - if (message.defaultSlate != null && Object.hasOwnProperty.call(message, "defaultSlate")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultSlate); - if (message.stitchingPolicy != null && Object.hasOwnProperty.call(message, "stitchingPolicy")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.stitchingPolicy); - if (message.prefetchConfig != null && Object.hasOwnProperty.call(message, "prefetchConfig")) - $root.google.cloud.video.stitcher.v1.PrefetchConfig.encode(message.prefetchConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.headers != null && Object.hasOwnProperty.call(message, "headers")) + for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.headers[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified LiveConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveConfig.verify|verify} messages. + * Encodes the specified FetchOptions message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.FetchOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @memberof google.cloud.video.stitcher.v1.FetchOptions * @static - * @param {google.cloud.video.stitcher.v1.ILiveConfig} message LiveConfig message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IFetchOptions} message FetchOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + FetchOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LiveConfig message from the specified reader or buffer. + * Decodes a FetchOptions message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @memberof google.cloud.video.stitcher.v1.FetchOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.LiveConfig} LiveConfig + * @returns {google.cloud.video.stitcher.v1.FetchOptions} FetchOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LiveConfig.decode = function decode(reader, length) { + FetchOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.LiveConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.FetchOptions(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.sourceUri = reader.string(); - break; - } - case 3: { - message.adTagUri = reader.string(); - break; - } - case 4: { - message.gamLiveConfig = $root.google.cloud.video.stitcher.v1.GamLiveConfig.decode(reader, reader.uint32()); - break; - } - case 5: { - message.state = reader.int32(); - break; - } - case 6: { - message.adTracking = reader.int32(); - break; - } - case 7: { - message.defaultSlate = reader.string(); - break; - } - case 8: { - message.stitchingPolicy = reader.int32(); - break; - } - case 10: { - message.prefetchConfig = $root.google.cloud.video.stitcher.v1.PrefetchConfig.decode(reader, reader.uint32()); + if (message.headers === $util.emptyObject) + message.headers = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.headers[key] = value; break; } default: @@ -4819,309 +4935,161 @@ }; /** - * Decodes a LiveConfig message from the specified reader or buffer, length delimited. + * Decodes a FetchOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @memberof google.cloud.video.stitcher.v1.FetchOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.LiveConfig} LiveConfig + * @returns {google.cloud.video.stitcher.v1.FetchOptions} FetchOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LiveConfig.decodeDelimited = function decodeDelimited(reader) { + FetchOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LiveConfig message. + * Verifies a FetchOptions message. * @function verify - * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @memberof google.cloud.video.stitcher.v1.FetchOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LiveConfig.verify = function verify(message) { + FetchOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.sourceUri != null && message.hasOwnProperty("sourceUri")) - if (!$util.isString(message.sourceUri)) - return "sourceUri: string expected"; - if (message.adTagUri != null && message.hasOwnProperty("adTagUri")) - if (!$util.isString(message.adTagUri)) - return "adTagUri: string expected"; - if (message.gamLiveConfig != null && message.hasOwnProperty("gamLiveConfig")) { - var error = $root.google.cloud.video.stitcher.v1.GamLiveConfig.verify(message.gamLiveConfig); - if (error) - return "gamLiveConfig." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.adTracking != null && message.hasOwnProperty("adTracking")) - switch (message.adTracking) { - default: - return "adTracking: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.defaultSlate != null && message.hasOwnProperty("defaultSlate")) - if (!$util.isString(message.defaultSlate)) - return "defaultSlate: string expected"; - if (message.stitchingPolicy != null && message.hasOwnProperty("stitchingPolicy")) - switch (message.stitchingPolicy) { - default: - return "stitchingPolicy: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.prefetchConfig != null && message.hasOwnProperty("prefetchConfig")) { - var error = $root.google.cloud.video.stitcher.v1.PrefetchConfig.verify(message.prefetchConfig); - if (error) - return "prefetchConfig." + error; + if (message.headers != null && message.hasOwnProperty("headers")) { + if (!$util.isObject(message.headers)) + return "headers: object expected"; + var key = Object.keys(message.headers); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.headers[key[i]])) + return "headers: string{k:string} expected"; } return null; }; /** - * Creates a LiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a FetchOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @memberof google.cloud.video.stitcher.v1.FetchOptions * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.LiveConfig} LiveConfig + * @returns {google.cloud.video.stitcher.v1.FetchOptions} FetchOptions */ - LiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.LiveConfig) + FetchOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.FetchOptions) return object; - var message = new $root.google.cloud.video.stitcher.v1.LiveConfig(); - if (object.name != null) - message.name = String(object.name); - if (object.sourceUri != null) - message.sourceUri = String(object.sourceUri); - if (object.adTagUri != null) - message.adTagUri = String(object.adTagUri); - if (object.gamLiveConfig != null) { - if (typeof object.gamLiveConfig !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.LiveConfig.gamLiveConfig: object expected"); - message.gamLiveConfig = $root.google.cloud.video.stitcher.v1.GamLiveConfig.fromObject(object.gamLiveConfig); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "CREATING": - case 1: - message.state = 1; - break; - case "READY": - case 2: - message.state = 2; - break; - case "DELETING": - case 3: - message.state = 3; - break; - } - switch (object.adTracking) { - default: - if (typeof object.adTracking === "number") { - message.adTracking = object.adTracking; - break; - } - break; - case "AD_TRACKING_UNSPECIFIED": - case 0: - message.adTracking = 0; - break; - case "CLIENT": - case 1: - message.adTracking = 1; - break; - case "SERVER": - case 2: - message.adTracking = 2; - break; - } - if (object.defaultSlate != null) - message.defaultSlate = String(object.defaultSlate); - switch (object.stitchingPolicy) { - default: - if (typeof object.stitchingPolicy === "number") { - message.stitchingPolicy = object.stitchingPolicy; - break; - } - break; - case "STITCHING_POLICY_UNSPECIFIED": - case 0: - message.stitchingPolicy = 0; - break; - case "CUT_CURRENT": - case 1: - message.stitchingPolicy = 1; - break; - case "COMPLETE_AD": - case 2: - message.stitchingPolicy = 2; - break; - } - if (object.prefetchConfig != null) { - if (typeof object.prefetchConfig !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.LiveConfig.prefetchConfig: object expected"); - message.prefetchConfig = $root.google.cloud.video.stitcher.v1.PrefetchConfig.fromObject(object.prefetchConfig); + var message = new $root.google.cloud.video.stitcher.v1.FetchOptions(); + if (object.headers) { + if (typeof object.headers !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.FetchOptions.headers: object expected"); + message.headers = {}; + for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) + message.headers[keys[i]] = String(object.headers[keys[i]]); } return message; }; /** - * Creates a plain object from a LiveConfig message. Also converts values to other types if specified. + * Creates a plain object from a FetchOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @memberof google.cloud.video.stitcher.v1.FetchOptions * @static - * @param {google.cloud.video.stitcher.v1.LiveConfig} message LiveConfig + * @param {google.cloud.video.stitcher.v1.FetchOptions} message FetchOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LiveConfig.toObject = function toObject(message, options) { + FetchOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.sourceUri = ""; - object.adTagUri = ""; - object.gamLiveConfig = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.adTracking = options.enums === String ? "AD_TRACKING_UNSPECIFIED" : 0; - object.defaultSlate = ""; - object.stitchingPolicy = options.enums === String ? "STITCHING_POLICY_UNSPECIFIED" : 0; - object.prefetchConfig = null; + if (options.objects || options.defaults) + object.headers = {}; + var keys2; + if (message.headers && (keys2 = Object.keys(message.headers)).length) { + object.headers = {}; + for (var j = 0; j < keys2.length; ++j) + object.headers[keys2[j]] = message.headers[keys2[j]]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.sourceUri != null && message.hasOwnProperty("sourceUri")) - object.sourceUri = message.sourceUri; - if (message.adTagUri != null && message.hasOwnProperty("adTagUri")) - object.adTagUri = message.adTagUri; - if (message.gamLiveConfig != null && message.hasOwnProperty("gamLiveConfig")) - object.gamLiveConfig = $root.google.cloud.video.stitcher.v1.GamLiveConfig.toObject(message.gamLiveConfig, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.video.stitcher.v1.LiveConfig.State[message.state] === undefined ? message.state : $root.google.cloud.video.stitcher.v1.LiveConfig.State[message.state] : message.state; - if (message.adTracking != null && message.hasOwnProperty("adTracking")) - object.adTracking = options.enums === String ? $root.google.cloud.video.stitcher.v1.AdTracking[message.adTracking] === undefined ? message.adTracking : $root.google.cloud.video.stitcher.v1.AdTracking[message.adTracking] : message.adTracking; - if (message.defaultSlate != null && message.hasOwnProperty("defaultSlate")) - object.defaultSlate = message.defaultSlate; - if (message.stitchingPolicy != null && message.hasOwnProperty("stitchingPolicy")) - object.stitchingPolicy = options.enums === String ? $root.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy[message.stitchingPolicy] === undefined ? message.stitchingPolicy : $root.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy[message.stitchingPolicy] : message.stitchingPolicy; - if (message.prefetchConfig != null && message.hasOwnProperty("prefetchConfig")) - object.prefetchConfig = $root.google.cloud.video.stitcher.v1.PrefetchConfig.toObject(message.prefetchConfig, options); return object; }; /** - * Converts this LiveConfig to JSON. + * Converts this FetchOptions to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @memberof google.cloud.video.stitcher.v1.FetchOptions * @instance * @returns {Object.} JSON object */ - LiveConfig.prototype.toJSON = function toJSON() { + FetchOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LiveConfig + * Gets the default type url for FetchOptions * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @memberof google.cloud.video.stitcher.v1.FetchOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.LiveConfig"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.FetchOptions"; }; - /** - * State enum. - * @name google.cloud.video.stitcher.v1.LiveConfig.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} CREATING=1 CREATING value - * @property {number} READY=2 READY value - * @property {number} DELETING=3 DELETING value - */ - LiveConfig.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATING"] = 1; - values[valuesById[2] = "READY"] = 2; - values[valuesById[3] = "DELETING"] = 3; - return values; - })(); - - /** - * StitchingPolicy enum. - * @name google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy - * @enum {number} - * @property {number} STITCHING_POLICY_UNSPECIFIED=0 STITCHING_POLICY_UNSPECIFIED value - * @property {number} CUT_CURRENT=1 CUT_CURRENT value - * @property {number} COMPLETE_AD=2 COMPLETE_AD value - */ - LiveConfig.StitchingPolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STITCHING_POLICY_UNSPECIFIED"] = 0; - values[valuesById[1] = "CUT_CURRENT"] = 1; - values[valuesById[2] = "COMPLETE_AD"] = 2; - return values; - })(); + return FetchOptions; + })(); - return LiveConfig; + /** + * AdTracking enum. + * @name google.cloud.video.stitcher.v1.AdTracking + * @enum {number} + * @property {number} AD_TRACKING_UNSPECIFIED=0 AD_TRACKING_UNSPECIFIED value + * @property {number} CLIENT=1 CLIENT value + * @property {number} SERVER=2 SERVER value + */ + v1.AdTracking = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AD_TRACKING_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLIENT"] = 1; + values[valuesById[2] = "SERVER"] = 2; + return values; })(); - v1.PrefetchConfig = (function() { + v1.LiveConfig = (function() { /** - * Properties of a PrefetchConfig. + * Properties of a LiveConfig. * @memberof google.cloud.video.stitcher.v1 - * @interface IPrefetchConfig - * @property {boolean|null} [enabled] PrefetchConfig enabled - * @property {google.protobuf.IDuration|null} [initialAdRequestDuration] PrefetchConfig initialAdRequestDuration + * @interface ILiveConfig + * @property {string|null} [name] LiveConfig name + * @property {string|null} [sourceUri] LiveConfig sourceUri + * @property {string|null} [adTagUri] LiveConfig adTagUri + * @property {google.cloud.video.stitcher.v1.IGamLiveConfig|null} [gamLiveConfig] LiveConfig gamLiveConfig + * @property {google.cloud.video.stitcher.v1.LiveConfig.State|null} [state] LiveConfig state + * @property {google.cloud.video.stitcher.v1.AdTracking|null} [adTracking] LiveConfig adTracking + * @property {string|null} [defaultSlate] LiveConfig defaultSlate + * @property {google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy|null} [stitchingPolicy] LiveConfig stitchingPolicy + * @property {google.cloud.video.stitcher.v1.IPrefetchConfig|null} [prefetchConfig] LiveConfig prefetchConfig + * @property {google.cloud.video.stitcher.v1.IFetchOptions|null} [sourceFetchOptions] LiveConfig sourceFetchOptions */ /** - * Constructs a new PrefetchConfig. + * Constructs a new LiveConfig. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a PrefetchConfig. - * @implements IPrefetchConfig + * @classdesc Represents a LiveConfig. + * @implements ILiveConfig * @constructor - * @param {google.cloud.video.stitcher.v1.IPrefetchConfig=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.ILiveConfig=} [properties] Properties to set */ - function PrefetchConfig(properties) { + function LiveConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5129,336 +5097,201 @@ } /** - * PrefetchConfig enabled. - * @member {boolean} enabled - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig + * LiveConfig name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @instance */ - PrefetchConfig.prototype.enabled = false; + LiveConfig.prototype.name = ""; /** - * PrefetchConfig initialAdRequestDuration. - * @member {google.protobuf.IDuration|null|undefined} initialAdRequestDuration - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig + * LiveConfig sourceUri. + * @member {string} sourceUri + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @instance */ - PrefetchConfig.prototype.initialAdRequestDuration = null; + LiveConfig.prototype.sourceUri = ""; /** - * Creates a new PrefetchConfig instance using the specified properties. + * LiveConfig adTagUri. + * @member {string} adTagUri + * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @instance + */ + LiveConfig.prototype.adTagUri = ""; + + /** + * LiveConfig gamLiveConfig. + * @member {google.cloud.video.stitcher.v1.IGamLiveConfig|null|undefined} gamLiveConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @instance + */ + LiveConfig.prototype.gamLiveConfig = null; + + /** + * LiveConfig state. + * @member {google.cloud.video.stitcher.v1.LiveConfig.State} state + * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @instance + */ + LiveConfig.prototype.state = 0; + + /** + * LiveConfig adTracking. + * @member {google.cloud.video.stitcher.v1.AdTracking} adTracking + * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @instance + */ + LiveConfig.prototype.adTracking = 0; + + /** + * LiveConfig defaultSlate. + * @member {string} defaultSlate + * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @instance + */ + LiveConfig.prototype.defaultSlate = ""; + + /** + * LiveConfig stitchingPolicy. + * @member {google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy} stitchingPolicy + * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @instance + */ + LiveConfig.prototype.stitchingPolicy = 0; + + /** + * LiveConfig prefetchConfig. + * @member {google.cloud.video.stitcher.v1.IPrefetchConfig|null|undefined} prefetchConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @instance + */ + LiveConfig.prototype.prefetchConfig = null; + + /** + * LiveConfig sourceFetchOptions. + * @member {google.cloud.video.stitcher.v1.IFetchOptions|null|undefined} sourceFetchOptions + * @memberof google.cloud.video.stitcher.v1.LiveConfig + * @instance + */ + LiveConfig.prototype.sourceFetchOptions = null; + + /** + * Creates a new LiveConfig instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @static - * @param {google.cloud.video.stitcher.v1.IPrefetchConfig=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.PrefetchConfig} PrefetchConfig instance + * @param {google.cloud.video.stitcher.v1.ILiveConfig=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.LiveConfig} LiveConfig instance */ - PrefetchConfig.create = function create(properties) { - return new PrefetchConfig(properties); + LiveConfig.create = function create(properties) { + return new LiveConfig(properties); }; /** - * Encodes the specified PrefetchConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.PrefetchConfig.verify|verify} messages. + * Encodes the specified LiveConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @static - * @param {google.cloud.video.stitcher.v1.IPrefetchConfig} message PrefetchConfig message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ILiveConfig} message LiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrefetchConfig.encode = function encode(message, writer) { + LiveConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.initialAdRequestDuration != null && Object.hasOwnProperty.call(message, "initialAdRequestDuration")) - $root.google.protobuf.Duration.encode(message.initialAdRequestDuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.sourceUri != null && Object.hasOwnProperty.call(message, "sourceUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceUri); + if (message.adTagUri != null && Object.hasOwnProperty.call(message, "adTagUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.adTagUri); + if (message.gamLiveConfig != null && Object.hasOwnProperty.call(message, "gamLiveConfig")) + $root.google.cloud.video.stitcher.v1.GamLiveConfig.encode(message.gamLiveConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); + if (message.adTracking != null && Object.hasOwnProperty.call(message, "adTracking")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.adTracking); + if (message.defaultSlate != null && Object.hasOwnProperty.call(message, "defaultSlate")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultSlate); + if (message.stitchingPolicy != null && Object.hasOwnProperty.call(message, "stitchingPolicy")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.stitchingPolicy); + if (message.prefetchConfig != null && Object.hasOwnProperty.call(message, "prefetchConfig")) + $root.google.cloud.video.stitcher.v1.PrefetchConfig.encode(message.prefetchConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.sourceFetchOptions != null && Object.hasOwnProperty.call(message, "sourceFetchOptions")) + $root.google.cloud.video.stitcher.v1.FetchOptions.encode(message.sourceFetchOptions, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); return writer; }; /** - * Encodes the specified PrefetchConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.PrefetchConfig.verify|verify} messages. + * Encodes the specified LiveConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @static - * @param {google.cloud.video.stitcher.v1.IPrefetchConfig} message PrefetchConfig message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ILiveConfig} message LiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrefetchConfig.encodeDelimited = function encodeDelimited(message, writer) { + LiveConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrefetchConfig message from the specified reader or buffer. + * Decodes a LiveConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.PrefetchConfig} PrefetchConfig + * @returns {google.cloud.video.stitcher.v1.LiveConfig} LiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrefetchConfig.decode = function decode(reader, length) { + LiveConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.PrefetchConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.LiveConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enabled = reader.bool(); + message.name = reader.string(); break; } case 2: { - message.initialAdRequestDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.sourceUri = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PrefetchConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.PrefetchConfig} PrefetchConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PrefetchConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PrefetchConfig message. - * @function verify - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PrefetchConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.initialAdRequestDuration != null && message.hasOwnProperty("initialAdRequestDuration")) { - var error = $root.google.protobuf.Duration.verify(message.initialAdRequestDuration); - if (error) - return "initialAdRequestDuration." + error; - } - return null; - }; - - /** - * Creates a PrefetchConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.PrefetchConfig} PrefetchConfig - */ - PrefetchConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.PrefetchConfig) - return object; - var message = new $root.google.cloud.video.stitcher.v1.PrefetchConfig(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.initialAdRequestDuration != null) { - if (typeof object.initialAdRequestDuration !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.PrefetchConfig.initialAdRequestDuration: object expected"); - message.initialAdRequestDuration = $root.google.protobuf.Duration.fromObject(object.initialAdRequestDuration); - } - return message; - }; - - /** - * Creates a plain object from a PrefetchConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig - * @static - * @param {google.cloud.video.stitcher.v1.PrefetchConfig} message PrefetchConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PrefetchConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.enabled = false; - object.initialAdRequestDuration = null; - } - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.initialAdRequestDuration != null && message.hasOwnProperty("initialAdRequestDuration")) - object.initialAdRequestDuration = $root.google.protobuf.Duration.toObject(message.initialAdRequestDuration, options); - return object; - }; - - /** - * Converts this PrefetchConfig to JSON. - * @function toJSON - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig - * @instance - * @returns {Object.} JSON object - */ - PrefetchConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PrefetchConfig - * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.PrefetchConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PrefetchConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.PrefetchConfig"; - }; - - return PrefetchConfig; - })(); - - v1.GamLiveConfig = (function() { - - /** - * Properties of a GamLiveConfig. - * @memberof google.cloud.video.stitcher.v1 - * @interface IGamLiveConfig - * @property {string|null} [networkCode] GamLiveConfig networkCode - * @property {string|null} [assetKey] GamLiveConfig assetKey - * @property {string|null} [customAssetKey] GamLiveConfig customAssetKey - */ - - /** - * Constructs a new GamLiveConfig. - * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a GamLiveConfig. - * @implements IGamLiveConfig - * @constructor - * @param {google.cloud.video.stitcher.v1.IGamLiveConfig=} [properties] Properties to set - */ - function GamLiveConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GamLiveConfig networkCode. - * @member {string} networkCode - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig - * @instance - */ - GamLiveConfig.prototype.networkCode = ""; - - /** - * GamLiveConfig assetKey. - * @member {string} assetKey - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig - * @instance - */ - GamLiveConfig.prototype.assetKey = ""; - - /** - * GamLiveConfig customAssetKey. - * @member {string} customAssetKey - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig - * @instance - */ - GamLiveConfig.prototype.customAssetKey = ""; - - /** - * Creates a new GamLiveConfig instance using the specified properties. - * @function create - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig - * @static - * @param {google.cloud.video.stitcher.v1.IGamLiveConfig=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.GamLiveConfig} GamLiveConfig instance - */ - GamLiveConfig.create = function create(properties) { - return new GamLiveConfig(properties); - }; - - /** - * Encodes the specified GamLiveConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.GamLiveConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig - * @static - * @param {google.cloud.video.stitcher.v1.IGamLiveConfig} message GamLiveConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GamLiveConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.networkCode != null && Object.hasOwnProperty.call(message, "networkCode")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.networkCode); - if (message.assetKey != null && Object.hasOwnProperty.call(message, "assetKey")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.assetKey); - if (message.customAssetKey != null && Object.hasOwnProperty.call(message, "customAssetKey")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.customAssetKey); - return writer; - }; - - /** - * Encodes the specified GamLiveConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GamLiveConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig - * @static - * @param {google.cloud.video.stitcher.v1.IGamLiveConfig} message GamLiveConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GamLiveConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GamLiveConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.GamLiveConfig} GamLiveConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GamLiveConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GamLiveConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.networkCode = reader.string(); + case 3: { + message.adTagUri = reader.string(); break; } - case 2: { - message.assetKey = reader.string(); + case 4: { + message.gamLiveConfig = $root.google.cloud.video.stitcher.v1.GamLiveConfig.decode(reader, reader.uint32()); break; } - case 3: { - message.customAssetKey = reader.string(); + case 5: { + message.state = reader.int32(); + break; + } + case 6: { + message.adTracking = reader.int32(); + break; + } + case 7: { + message.defaultSlate = reader.string(); + break; + } + case 8: { + message.stitchingPolicy = reader.int32(); + break; + } + case 10: { + message.prefetchConfig = $root.google.cloud.video.stitcher.v1.PrefetchConfig.decode(reader, reader.uint32()); + break; + } + case 16: { + message.sourceFetchOptions = $root.google.cloud.video.stitcher.v1.FetchOptions.decode(reader, reader.uint32()); break; } default: @@ -5470,149 +5303,322 @@ }; /** - * Decodes a GamLiveConfig message from the specified reader or buffer, length delimited. + * Decodes a LiveConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.GamLiveConfig} GamLiveConfig + * @returns {google.cloud.video.stitcher.v1.LiveConfig} LiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GamLiveConfig.decodeDelimited = function decodeDelimited(reader) { + LiveConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GamLiveConfig message. + * Verifies a LiveConfig message. * @function verify - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GamLiveConfig.verify = function verify(message) { + LiveConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.networkCode != null && message.hasOwnProperty("networkCode")) - if (!$util.isString(message.networkCode)) - return "networkCode: string expected"; - if (message.assetKey != null && message.hasOwnProperty("assetKey")) - if (!$util.isString(message.assetKey)) - return "assetKey: string expected"; - if (message.customAssetKey != null && message.hasOwnProperty("customAssetKey")) - if (!$util.isString(message.customAssetKey)) - return "customAssetKey: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.sourceUri != null && message.hasOwnProperty("sourceUri")) + if (!$util.isString(message.sourceUri)) + return "sourceUri: string expected"; + if (message.adTagUri != null && message.hasOwnProperty("adTagUri")) + if (!$util.isString(message.adTagUri)) + return "adTagUri: string expected"; + if (message.gamLiveConfig != null && message.hasOwnProperty("gamLiveConfig")) { + var error = $root.google.cloud.video.stitcher.v1.GamLiveConfig.verify(message.gamLiveConfig); + if (error) + return "gamLiveConfig." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.adTracking != null && message.hasOwnProperty("adTracking")) + switch (message.adTracking) { + default: + return "adTracking: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.defaultSlate != null && message.hasOwnProperty("defaultSlate")) + if (!$util.isString(message.defaultSlate)) + return "defaultSlate: string expected"; + if (message.stitchingPolicy != null && message.hasOwnProperty("stitchingPolicy")) + switch (message.stitchingPolicy) { + default: + return "stitchingPolicy: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.prefetchConfig != null && message.hasOwnProperty("prefetchConfig")) { + var error = $root.google.cloud.video.stitcher.v1.PrefetchConfig.verify(message.prefetchConfig); + if (error) + return "prefetchConfig." + error; + } + if (message.sourceFetchOptions != null && message.hasOwnProperty("sourceFetchOptions")) { + var error = $root.google.cloud.video.stitcher.v1.FetchOptions.verify(message.sourceFetchOptions); + if (error) + return "sourceFetchOptions." + error; + } return null; }; /** - * Creates a GamLiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a LiveConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.GamLiveConfig} GamLiveConfig + * @returns {google.cloud.video.stitcher.v1.LiveConfig} LiveConfig */ - GamLiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.GamLiveConfig) + LiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.LiveConfig) return object; - var message = new $root.google.cloud.video.stitcher.v1.GamLiveConfig(); - if (object.networkCode != null) - message.networkCode = String(object.networkCode); - if (object.assetKey != null) - message.assetKey = String(object.assetKey); - if (object.customAssetKey != null) - message.customAssetKey = String(object.customAssetKey); + var message = new $root.google.cloud.video.stitcher.v1.LiveConfig(); + if (object.name != null) + message.name = String(object.name); + if (object.sourceUri != null) + message.sourceUri = String(object.sourceUri); + if (object.adTagUri != null) + message.adTagUri = String(object.adTagUri); + if (object.gamLiveConfig != null) { + if (typeof object.gamLiveConfig !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.LiveConfig.gamLiveConfig: object expected"); + message.gamLiveConfig = $root.google.cloud.video.stitcher.v1.GamLiveConfig.fromObject(object.gamLiveConfig); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "CREATING": + case 1: + message.state = 1; + break; + case "READY": + case 2: + message.state = 2; + break; + case "DELETING": + case 3: + message.state = 3; + break; + } + switch (object.adTracking) { + default: + if (typeof object.adTracking === "number") { + message.adTracking = object.adTracking; + break; + } + break; + case "AD_TRACKING_UNSPECIFIED": + case 0: + message.adTracking = 0; + break; + case "CLIENT": + case 1: + message.adTracking = 1; + break; + case "SERVER": + case 2: + message.adTracking = 2; + break; + } + if (object.defaultSlate != null) + message.defaultSlate = String(object.defaultSlate); + switch (object.stitchingPolicy) { + default: + if (typeof object.stitchingPolicy === "number") { + message.stitchingPolicy = object.stitchingPolicy; + break; + } + break; + case "STITCHING_POLICY_UNSPECIFIED": + case 0: + message.stitchingPolicy = 0; + break; + case "CUT_CURRENT": + case 1: + message.stitchingPolicy = 1; + break; + case "COMPLETE_AD": + case 2: + message.stitchingPolicy = 2; + break; + } + if (object.prefetchConfig != null) { + if (typeof object.prefetchConfig !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.LiveConfig.prefetchConfig: object expected"); + message.prefetchConfig = $root.google.cloud.video.stitcher.v1.PrefetchConfig.fromObject(object.prefetchConfig); + } + if (object.sourceFetchOptions != null) { + if (typeof object.sourceFetchOptions !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.LiveConfig.sourceFetchOptions: object expected"); + message.sourceFetchOptions = $root.google.cloud.video.stitcher.v1.FetchOptions.fromObject(object.sourceFetchOptions); + } return message; }; /** - * Creates a plain object from a GamLiveConfig message. Also converts values to other types if specified. + * Creates a plain object from a LiveConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @static - * @param {google.cloud.video.stitcher.v1.GamLiveConfig} message GamLiveConfig + * @param {google.cloud.video.stitcher.v1.LiveConfig} message LiveConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GamLiveConfig.toObject = function toObject(message, options) { + LiveConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.networkCode = ""; - object.assetKey = ""; - object.customAssetKey = ""; + object.name = ""; + object.sourceUri = ""; + object.adTagUri = ""; + object.gamLiveConfig = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.adTracking = options.enums === String ? "AD_TRACKING_UNSPECIFIED" : 0; + object.defaultSlate = ""; + object.stitchingPolicy = options.enums === String ? "STITCHING_POLICY_UNSPECIFIED" : 0; + object.prefetchConfig = null; + object.sourceFetchOptions = null; } - if (message.networkCode != null && message.hasOwnProperty("networkCode")) - object.networkCode = message.networkCode; - if (message.assetKey != null && message.hasOwnProperty("assetKey")) - object.assetKey = message.assetKey; - if (message.customAssetKey != null && message.hasOwnProperty("customAssetKey")) - object.customAssetKey = message.customAssetKey; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.sourceUri != null && message.hasOwnProperty("sourceUri")) + object.sourceUri = message.sourceUri; + if (message.adTagUri != null && message.hasOwnProperty("adTagUri")) + object.adTagUri = message.adTagUri; + if (message.gamLiveConfig != null && message.hasOwnProperty("gamLiveConfig")) + object.gamLiveConfig = $root.google.cloud.video.stitcher.v1.GamLiveConfig.toObject(message.gamLiveConfig, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.video.stitcher.v1.LiveConfig.State[message.state] === undefined ? message.state : $root.google.cloud.video.stitcher.v1.LiveConfig.State[message.state] : message.state; + if (message.adTracking != null && message.hasOwnProperty("adTracking")) + object.adTracking = options.enums === String ? $root.google.cloud.video.stitcher.v1.AdTracking[message.adTracking] === undefined ? message.adTracking : $root.google.cloud.video.stitcher.v1.AdTracking[message.adTracking] : message.adTracking; + if (message.defaultSlate != null && message.hasOwnProperty("defaultSlate")) + object.defaultSlate = message.defaultSlate; + if (message.stitchingPolicy != null && message.hasOwnProperty("stitchingPolicy")) + object.stitchingPolicy = options.enums === String ? $root.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy[message.stitchingPolicy] === undefined ? message.stitchingPolicy : $root.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy[message.stitchingPolicy] : message.stitchingPolicy; + if (message.prefetchConfig != null && message.hasOwnProperty("prefetchConfig")) + object.prefetchConfig = $root.google.cloud.video.stitcher.v1.PrefetchConfig.toObject(message.prefetchConfig, options); + if (message.sourceFetchOptions != null && message.hasOwnProperty("sourceFetchOptions")) + object.sourceFetchOptions = $root.google.cloud.video.stitcher.v1.FetchOptions.toObject(message.sourceFetchOptions, options); return object; }; /** - * Converts this GamLiveConfig to JSON. + * Converts this LiveConfig to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @instance * @returns {Object.} JSON object */ - GamLiveConfig.prototype.toJSON = function toJSON() { + LiveConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GamLiveConfig + * Gets the default type url for LiveConfig * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.GamLiveConfig + * @memberof google.cloud.video.stitcher.v1.LiveConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GamLiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GamLiveConfig"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.LiveConfig"; }; - return GamLiveConfig; + /** + * State enum. + * @name google.cloud.video.stitcher.v1.LiveConfig.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} CREATING=1 CREATING value + * @property {number} READY=2 READY value + * @property {number} DELETING=3 DELETING value + */ + LiveConfig.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATING"] = 1; + values[valuesById[2] = "READY"] = 2; + values[valuesById[3] = "DELETING"] = 3; + return values; + })(); + + /** + * StitchingPolicy enum. + * @name google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy + * @enum {number} + * @property {number} STITCHING_POLICY_UNSPECIFIED=0 STITCHING_POLICY_UNSPECIFIED value + * @property {number} CUT_CURRENT=1 CUT_CURRENT value + * @property {number} COMPLETE_AD=2 COMPLETE_AD value + */ + LiveConfig.StitchingPolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STITCHING_POLICY_UNSPECIFIED"] = 0; + values[valuesById[1] = "CUT_CURRENT"] = 1; + values[valuesById[2] = "COMPLETE_AD"] = 2; + return values; + })(); + + return LiveConfig; })(); - v1.VodSession = (function() { + v1.PrefetchConfig = (function() { /** - * Properties of a VodSession. + * Properties of a PrefetchConfig. * @memberof google.cloud.video.stitcher.v1 - * @interface IVodSession - * @property {string|null} [name] VodSession name - * @property {google.cloud.video.stitcher.v1.IInterstitials|null} [interstitials] VodSession interstitials - * @property {string|null} [playUri] VodSession playUri - * @property {string|null} [sourceUri] VodSession sourceUri - * @property {string|null} [adTagUri] VodSession adTagUri - * @property {Object.|null} [adTagMacroMap] VodSession adTagMacroMap - * @property {google.cloud.video.stitcher.v1.IManifestOptions|null} [manifestOptions] VodSession manifestOptions - * @property {string|null} [assetId] VodSession assetId - * @property {google.cloud.video.stitcher.v1.AdTracking|null} [adTracking] VodSession adTracking - * @property {google.cloud.video.stitcher.v1.VodSession.IGamSettings|null} [gamSettings] VodSession gamSettings + * @interface IPrefetchConfig + * @property {boolean|null} [enabled] PrefetchConfig enabled + * @property {google.protobuf.IDuration|null} [initialAdRequestDuration] PrefetchConfig initialAdRequestDuration */ /** - * Constructs a new VodSession. + * Constructs a new PrefetchConfig. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a VodSession. - * @implements IVodSession + * @classdesc Represents a PrefetchConfig. + * @implements IPrefetchConfig * @constructor - * @param {google.cloud.video.stitcher.v1.IVodSession=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IPrefetchConfig=} [properties] Properties to set */ - function VodSession(properties) { - this.adTagMacroMap = {}; + function PrefetchConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5620,221 +5626,89 @@ } /** - * VodSession name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.VodSession - * @instance - */ - VodSession.prototype.name = ""; - - /** - * VodSession interstitials. - * @member {google.cloud.video.stitcher.v1.IInterstitials|null|undefined} interstitials - * @memberof google.cloud.video.stitcher.v1.VodSession - * @instance - */ - VodSession.prototype.interstitials = null; - - /** - * VodSession playUri. - * @member {string} playUri - * @memberof google.cloud.video.stitcher.v1.VodSession - * @instance - */ - VodSession.prototype.playUri = ""; - - /** - * VodSession sourceUri. - * @member {string} sourceUri - * @memberof google.cloud.video.stitcher.v1.VodSession - * @instance - */ - VodSession.prototype.sourceUri = ""; - - /** - * VodSession adTagUri. - * @member {string} adTagUri - * @memberof google.cloud.video.stitcher.v1.VodSession - * @instance - */ - VodSession.prototype.adTagUri = ""; - - /** - * VodSession adTagMacroMap. - * @member {Object.} adTagMacroMap - * @memberof google.cloud.video.stitcher.v1.VodSession - * @instance - */ - VodSession.prototype.adTagMacroMap = $util.emptyObject; - - /** - * VodSession manifestOptions. - * @member {google.cloud.video.stitcher.v1.IManifestOptions|null|undefined} manifestOptions - * @memberof google.cloud.video.stitcher.v1.VodSession - * @instance - */ - VodSession.prototype.manifestOptions = null; - - /** - * VodSession assetId. - * @member {string} assetId - * @memberof google.cloud.video.stitcher.v1.VodSession - * @instance - */ - VodSession.prototype.assetId = ""; - - /** - * VodSession adTracking. - * @member {google.cloud.video.stitcher.v1.AdTracking} adTracking - * @memberof google.cloud.video.stitcher.v1.VodSession + * PrefetchConfig enabled. + * @member {boolean} enabled + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @instance */ - VodSession.prototype.adTracking = 0; + PrefetchConfig.prototype.enabled = false; /** - * VodSession gamSettings. - * @member {google.cloud.video.stitcher.v1.VodSession.IGamSettings|null|undefined} gamSettings - * @memberof google.cloud.video.stitcher.v1.VodSession + * PrefetchConfig initialAdRequestDuration. + * @member {google.protobuf.IDuration|null|undefined} initialAdRequestDuration + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @instance */ - VodSession.prototype.gamSettings = null; + PrefetchConfig.prototype.initialAdRequestDuration = null; /** - * Creates a new VodSession instance using the specified properties. + * Creates a new PrefetchConfig instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.VodSession + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @static - * @param {google.cloud.video.stitcher.v1.IVodSession=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.VodSession} VodSession instance + * @param {google.cloud.video.stitcher.v1.IPrefetchConfig=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.PrefetchConfig} PrefetchConfig instance */ - VodSession.create = function create(properties) { - return new VodSession(properties); + PrefetchConfig.create = function create(properties) { + return new PrefetchConfig(properties); }; /** - * Encodes the specified VodSession message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSession.verify|verify} messages. + * Encodes the specified PrefetchConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.PrefetchConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.VodSession + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @static - * @param {google.cloud.video.stitcher.v1.IVodSession} message VodSession message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IPrefetchConfig} message PrefetchConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VodSession.encode = function encode(message, writer) { + PrefetchConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.interstitials != null && Object.hasOwnProperty.call(message, "interstitials")) - $root.google.cloud.video.stitcher.v1.Interstitials.encode(message.interstitials, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.playUri != null && Object.hasOwnProperty.call(message, "playUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.playUri); - if (message.sourceUri != null && Object.hasOwnProperty.call(message, "sourceUri")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.sourceUri); - if (message.adTagUri != null && Object.hasOwnProperty.call(message, "adTagUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.adTagUri); - if (message.adTagMacroMap != null && Object.hasOwnProperty.call(message, "adTagMacroMap")) - for (var keys = Object.keys(message.adTagMacroMap), i = 0; i < keys.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.adTagMacroMap[keys[i]]).ldelim(); - if (message.manifestOptions != null && Object.hasOwnProperty.call(message, "manifestOptions")) - $root.google.cloud.video.stitcher.v1.ManifestOptions.encode(message.manifestOptions, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.assetId != null && Object.hasOwnProperty.call(message, "assetId")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.assetId); - if (message.adTracking != null && Object.hasOwnProperty.call(message, "adTracking")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.adTracking); - if (message.gamSettings != null && Object.hasOwnProperty.call(message, "gamSettings")) - $root.google.cloud.video.stitcher.v1.VodSession.GamSettings.encode(message.gamSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.initialAdRequestDuration != null && Object.hasOwnProperty.call(message, "initialAdRequestDuration")) + $root.google.protobuf.Duration.encode(message.initialAdRequestDuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified VodSession message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSession.verify|verify} messages. + * Encodes the specified PrefetchConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.PrefetchConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodSession + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @static - * @param {google.cloud.video.stitcher.v1.IVodSession} message VodSession message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IPrefetchConfig} message PrefetchConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VodSession.encodeDelimited = function encodeDelimited(message, writer) { + PrefetchConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VodSession message from the specified reader or buffer. + * Decodes a PrefetchConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.VodSession + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.VodSession} VodSession + * @returns {google.cloud.video.stitcher.v1.PrefetchConfig} PrefetchConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VodSession.decode = function decode(reader, length) { + PrefetchConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodSession(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.PrefetchConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.enabled = reader.bool(); break; } case 2: { - message.interstitials = $root.google.cloud.video.stitcher.v1.Interstitials.decode(reader, reader.uint32()); - break; - } - case 4: { - message.playUri = reader.string(); - break; - } - case 5: { - message.sourceUri = reader.string(); - break; - } - case 6: { - message.adTagUri = reader.string(); - break; - } - case 7: { - if (message.adTagMacroMap === $util.emptyObject) - message.adTagMacroMap = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.adTagMacroMap[key] = value; - break; - } - case 9: { - message.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.decode(reader, reader.uint32()); - break; - } - case 10: { - message.assetId = reader.string(); - break; - } - case 11: { - message.adTracking = reader.int32(); - break; - } - case 13: { - message.gamSettings = $root.google.cloud.video.stitcher.v1.VodSession.GamSettings.decode(reader, reader.uint32()); + message.initialAdRequestDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } default: @@ -5846,571 +5720,242 @@ }; /** - * Decodes a VodSession message from the specified reader or buffer, length delimited. + * Decodes a PrefetchConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodSession + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.VodSession} VodSession + * @returns {google.cloud.video.stitcher.v1.PrefetchConfig} PrefetchConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VodSession.decodeDelimited = function decodeDelimited(reader) { + PrefetchConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VodSession message. + * Verifies a PrefetchConfig message. * @function verify - * @memberof google.cloud.video.stitcher.v1.VodSession + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VodSession.verify = function verify(message) { + PrefetchConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.interstitials != null && message.hasOwnProperty("interstitials")) { - var error = $root.google.cloud.video.stitcher.v1.Interstitials.verify(message.interstitials); + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.initialAdRequestDuration != null && message.hasOwnProperty("initialAdRequestDuration")) { + var error = $root.google.protobuf.Duration.verify(message.initialAdRequestDuration); if (error) - return "interstitials." + error; - } - if (message.playUri != null && message.hasOwnProperty("playUri")) - if (!$util.isString(message.playUri)) - return "playUri: string expected"; - if (message.sourceUri != null && message.hasOwnProperty("sourceUri")) - if (!$util.isString(message.sourceUri)) - return "sourceUri: string expected"; - if (message.adTagUri != null && message.hasOwnProperty("adTagUri")) - if (!$util.isString(message.adTagUri)) - return "adTagUri: string expected"; - if (message.adTagMacroMap != null && message.hasOwnProperty("adTagMacroMap")) { - if (!$util.isObject(message.adTagMacroMap)) - return "adTagMacroMap: object expected"; - var key = Object.keys(message.adTagMacroMap); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.adTagMacroMap[key[i]])) - return "adTagMacroMap: string{k:string} expected"; - } - if (message.manifestOptions != null && message.hasOwnProperty("manifestOptions")) { - var error = $root.google.cloud.video.stitcher.v1.ManifestOptions.verify(message.manifestOptions); - if (error) - return "manifestOptions." + error; - } - if (message.assetId != null && message.hasOwnProperty("assetId")) - if (!$util.isString(message.assetId)) - return "assetId: string expected"; - if (message.adTracking != null && message.hasOwnProperty("adTracking")) - switch (message.adTracking) { - default: - return "adTracking: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.gamSettings != null && message.hasOwnProperty("gamSettings")) { - var error = $root.google.cloud.video.stitcher.v1.VodSession.GamSettings.verify(message.gamSettings); - if (error) - return "gamSettings." + error; + return "initialAdRequestDuration." + error; } return null; }; /** - * Creates a VodSession message from a plain object. Also converts values to their respective internal types. + * Creates a PrefetchConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.VodSession + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.VodSession} VodSession + * @returns {google.cloud.video.stitcher.v1.PrefetchConfig} PrefetchConfig */ - VodSession.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.VodSession) + PrefetchConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.PrefetchConfig) return object; - var message = new $root.google.cloud.video.stitcher.v1.VodSession(); - if (object.name != null) - message.name = String(object.name); - if (object.interstitials != null) { - if (typeof object.interstitials !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSession.interstitials: object expected"); - message.interstitials = $root.google.cloud.video.stitcher.v1.Interstitials.fromObject(object.interstitials); - } - if (object.playUri != null) - message.playUri = String(object.playUri); - if (object.sourceUri != null) - message.sourceUri = String(object.sourceUri); - if (object.adTagUri != null) - message.adTagUri = String(object.adTagUri); - if (object.adTagMacroMap) { - if (typeof object.adTagMacroMap !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSession.adTagMacroMap: object expected"); - message.adTagMacroMap = {}; - for (var keys = Object.keys(object.adTagMacroMap), i = 0; i < keys.length; ++i) - message.adTagMacroMap[keys[i]] = String(object.adTagMacroMap[keys[i]]); - } - if (object.manifestOptions != null) { - if (typeof object.manifestOptions !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSession.manifestOptions: object expected"); - message.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.fromObject(object.manifestOptions); - } - if (object.assetId != null) - message.assetId = String(object.assetId); - switch (object.adTracking) { - default: - if (typeof object.adTracking === "number") { - message.adTracking = object.adTracking; - break; - } - break; - case "AD_TRACKING_UNSPECIFIED": - case 0: - message.adTracking = 0; - break; - case "CLIENT": - case 1: - message.adTracking = 1; - break; - case "SERVER": - case 2: - message.adTracking = 2; - break; - } - if (object.gamSettings != null) { - if (typeof object.gamSettings !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSession.gamSettings: object expected"); - message.gamSettings = $root.google.cloud.video.stitcher.v1.VodSession.GamSettings.fromObject(object.gamSettings); + var message = new $root.google.cloud.video.stitcher.v1.PrefetchConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.initialAdRequestDuration != null) { + if (typeof object.initialAdRequestDuration !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.PrefetchConfig.initialAdRequestDuration: object expected"); + message.initialAdRequestDuration = $root.google.protobuf.Duration.fromObject(object.initialAdRequestDuration); } return message; }; /** - * Creates a plain object from a VodSession message. Also converts values to other types if specified. + * Creates a plain object from a PrefetchConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.VodSession + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @static - * @param {google.cloud.video.stitcher.v1.VodSession} message VodSession + * @param {google.cloud.video.stitcher.v1.PrefetchConfig} message PrefetchConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VodSession.toObject = function toObject(message, options) { + PrefetchConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.adTagMacroMap = {}; if (options.defaults) { - object.name = ""; - object.interstitials = null; - object.playUri = ""; - object.sourceUri = ""; - object.adTagUri = ""; - object.manifestOptions = null; - object.assetId = ""; - object.adTracking = options.enums === String ? "AD_TRACKING_UNSPECIFIED" : 0; - object.gamSettings = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.interstitials != null && message.hasOwnProperty("interstitials")) - object.interstitials = $root.google.cloud.video.stitcher.v1.Interstitials.toObject(message.interstitials, options); - if (message.playUri != null && message.hasOwnProperty("playUri")) - object.playUri = message.playUri; - if (message.sourceUri != null && message.hasOwnProperty("sourceUri")) - object.sourceUri = message.sourceUri; - if (message.adTagUri != null && message.hasOwnProperty("adTagUri")) - object.adTagUri = message.adTagUri; - var keys2; - if (message.adTagMacroMap && (keys2 = Object.keys(message.adTagMacroMap)).length) { - object.adTagMacroMap = {}; - for (var j = 0; j < keys2.length; ++j) - object.adTagMacroMap[keys2[j]] = message.adTagMacroMap[keys2[j]]; + object.enabled = false; + object.initialAdRequestDuration = null; } - if (message.manifestOptions != null && message.hasOwnProperty("manifestOptions")) - object.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.toObject(message.manifestOptions, options); - if (message.assetId != null && message.hasOwnProperty("assetId")) - object.assetId = message.assetId; - if (message.adTracking != null && message.hasOwnProperty("adTracking")) - object.adTracking = options.enums === String ? $root.google.cloud.video.stitcher.v1.AdTracking[message.adTracking] === undefined ? message.adTracking : $root.google.cloud.video.stitcher.v1.AdTracking[message.adTracking] : message.adTracking; - if (message.gamSettings != null && message.hasOwnProperty("gamSettings")) - object.gamSettings = $root.google.cloud.video.stitcher.v1.VodSession.GamSettings.toObject(message.gamSettings, options); + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.initialAdRequestDuration != null && message.hasOwnProperty("initialAdRequestDuration")) + object.initialAdRequestDuration = $root.google.protobuf.Duration.toObject(message.initialAdRequestDuration, options); return object; }; /** - * Converts this VodSession to JSON. + * Converts this PrefetchConfig to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.VodSession + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @instance * @returns {Object.} JSON object */ - VodSession.prototype.toJSON = function toJSON() { + PrefetchConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VodSession + * Gets the default type url for PrefetchConfig * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.VodSession + * @memberof google.cloud.video.stitcher.v1.PrefetchConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VodSession.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PrefetchConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodSession"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.PrefetchConfig"; }; - VodSession.GamSettings = (function() { + return PrefetchConfig; + })(); - /** - * Properties of a GamSettings. - * @memberof google.cloud.video.stitcher.v1.VodSession - * @interface IGamSettings - * @property {string|null} [networkCode] GamSettings networkCode - * @property {string|null} [streamId] GamSettings streamId - */ + v1.GamLiveConfig = (function() { - /** - * Constructs a new GamSettings. - * @memberof google.cloud.video.stitcher.v1.VodSession - * @classdesc Represents a GamSettings. - * @implements IGamSettings - * @constructor - * @param {google.cloud.video.stitcher.v1.VodSession.IGamSettings=} [properties] Properties to set - */ - function GamSettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a GamLiveConfig. + * @memberof google.cloud.video.stitcher.v1 + * @interface IGamLiveConfig + * @property {string|null} [networkCode] GamLiveConfig networkCode + * @property {string|null} [assetKey] GamLiveConfig assetKey + * @property {string|null} [customAssetKey] GamLiveConfig customAssetKey + */ - /** - * GamSettings networkCode. - * @member {string} networkCode - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @instance - */ - GamSettings.prototype.networkCode = ""; + /** + * Constructs a new GamLiveConfig. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a GamLiveConfig. + * @implements IGamLiveConfig + * @constructor + * @param {google.cloud.video.stitcher.v1.IGamLiveConfig=} [properties] Properties to set + */ + function GamLiveConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * GamSettings streamId. - * @member {string} streamId - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @instance - */ - GamSettings.prototype.streamId = ""; + /** + * GamLiveConfig networkCode. + * @member {string} networkCode + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig + * @instance + */ + GamLiveConfig.prototype.networkCode = ""; - /** - * Creates a new GamSettings instance using the specified properties. - * @function create - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @static - * @param {google.cloud.video.stitcher.v1.VodSession.IGamSettings=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.VodSession.GamSettings} GamSettings instance - */ - GamSettings.create = function create(properties) { - return new GamSettings(properties); - }; - - /** - * Encodes the specified GamSettings message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSession.GamSettings.verify|verify} messages. - * @function encode - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @static - * @param {google.cloud.video.stitcher.v1.VodSession.IGamSettings} message GamSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GamSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.networkCode != null && Object.hasOwnProperty.call(message, "networkCode")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.networkCode); - if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.streamId); - return writer; - }; - - /** - * Encodes the specified GamSettings message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSession.GamSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @static - * @param {google.cloud.video.stitcher.v1.VodSession.IGamSettings} message GamSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GamSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GamSettings message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.VodSession.GamSettings} GamSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GamSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodSession.GamSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.networkCode = reader.string(); - break; - } - case 2: { - message.streamId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GamSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.VodSession.GamSettings} GamSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GamSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GamSettings message. - * @function verify - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GamSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.networkCode != null && message.hasOwnProperty("networkCode")) - if (!$util.isString(message.networkCode)) - return "networkCode: string expected"; - if (message.streamId != null && message.hasOwnProperty("streamId")) - if (!$util.isString(message.streamId)) - return "streamId: string expected"; - return null; - }; - - /** - * Creates a GamSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.VodSession.GamSettings} GamSettings - */ - GamSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.VodSession.GamSettings) - return object; - var message = new $root.google.cloud.video.stitcher.v1.VodSession.GamSettings(); - if (object.networkCode != null) - message.networkCode = String(object.networkCode); - if (object.streamId != null) - message.streamId = String(object.streamId); - return message; - }; - - /** - * Creates a plain object from a GamSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @static - * @param {google.cloud.video.stitcher.v1.VodSession.GamSettings} message GamSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GamSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.networkCode = ""; - object.streamId = ""; - } - if (message.networkCode != null && message.hasOwnProperty("networkCode")) - object.networkCode = message.networkCode; - if (message.streamId != null && message.hasOwnProperty("streamId")) - object.streamId = message.streamId; - return object; - }; - - /** - * Converts this GamSettings to JSON. - * @function toJSON - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @instance - * @returns {Object.} JSON object - */ - GamSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GamSettings - * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GamSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodSession.GamSettings"; - }; - - return GamSettings; - })(); - - return VodSession; - })(); - - v1.Interstitials = (function() { - - /** - * Properties of an Interstitials. - * @memberof google.cloud.video.stitcher.v1 - * @interface IInterstitials - * @property {Array.|null} [adBreaks] Interstitials adBreaks - * @property {google.cloud.video.stitcher.v1.IVodSessionContent|null} [sessionContent] Interstitials sessionContent - */ - - /** - * Constructs a new Interstitials. - * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents an Interstitials. - * @implements IInterstitials - * @constructor - * @param {google.cloud.video.stitcher.v1.IInterstitials=} [properties] Properties to set - */ - function Interstitials(properties) { - this.adBreaks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Interstitials adBreaks. - * @member {Array.} adBreaks - * @memberof google.cloud.video.stitcher.v1.Interstitials - * @instance - */ - Interstitials.prototype.adBreaks = $util.emptyArray; + /** + * GamLiveConfig assetKey. + * @member {string} assetKey + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig + * @instance + */ + GamLiveConfig.prototype.assetKey = ""; /** - * Interstitials sessionContent. - * @member {google.cloud.video.stitcher.v1.IVodSessionContent|null|undefined} sessionContent - * @memberof google.cloud.video.stitcher.v1.Interstitials + * GamLiveConfig customAssetKey. + * @member {string} customAssetKey + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig * @instance */ - Interstitials.prototype.sessionContent = null; + GamLiveConfig.prototype.customAssetKey = ""; /** - * Creates a new Interstitials instance using the specified properties. + * Creates a new GamLiveConfig instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.Interstitials + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig * @static - * @param {google.cloud.video.stitcher.v1.IInterstitials=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.Interstitials} Interstitials instance + * @param {google.cloud.video.stitcher.v1.IGamLiveConfig=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.GamLiveConfig} GamLiveConfig instance */ - Interstitials.create = function create(properties) { - return new Interstitials(properties); + GamLiveConfig.create = function create(properties) { + return new GamLiveConfig(properties); }; /** - * Encodes the specified Interstitials message. Does not implicitly {@link google.cloud.video.stitcher.v1.Interstitials.verify|verify} messages. + * Encodes the specified GamLiveConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.GamLiveConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.Interstitials + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig * @static - * @param {google.cloud.video.stitcher.v1.IInterstitials} message Interstitials message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGamLiveConfig} message GamLiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Interstitials.encode = function encode(message, writer) { + GamLiveConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.adBreaks != null && message.adBreaks.length) - for (var i = 0; i < message.adBreaks.length; ++i) - $root.google.cloud.video.stitcher.v1.VodSessionAdBreak.encode(message.adBreaks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.sessionContent != null && Object.hasOwnProperty.call(message, "sessionContent")) - $root.google.cloud.video.stitcher.v1.VodSessionContent.encode(message.sessionContent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.networkCode != null && Object.hasOwnProperty.call(message, "networkCode")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.networkCode); + if (message.assetKey != null && Object.hasOwnProperty.call(message, "assetKey")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.assetKey); + if (message.customAssetKey != null && Object.hasOwnProperty.call(message, "customAssetKey")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.customAssetKey); return writer; }; /** - * Encodes the specified Interstitials message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.Interstitials.verify|verify} messages. + * Encodes the specified GamLiveConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GamLiveConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.Interstitials + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig * @static - * @param {google.cloud.video.stitcher.v1.IInterstitials} message Interstitials message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGamLiveConfig} message GamLiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Interstitials.encodeDelimited = function encodeDelimited(message, writer) { + GamLiveConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Interstitials message from the specified reader or buffer. + * Decodes a GamLiveConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.Interstitials + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.Interstitials} Interstitials + * @returns {google.cloud.video.stitcher.v1.GamLiveConfig} GamLiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Interstitials.decode = function decode(reader, length) { + GamLiveConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.Interstitials(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GamLiveConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.adBreaks && message.adBreaks.length)) - message.adBreaks = []; - message.adBreaks.push($root.google.cloud.video.stitcher.v1.VodSessionAdBreak.decode(reader, reader.uint32())); + message.networkCode = reader.string(); break; } case 2: { - message.sessionContent = $root.google.cloud.video.stitcher.v1.VodSessionContent.decode(reader, reader.uint32()); + message.assetKey = reader.string(); + break; + } + case 3: { + message.customAssetKey = reader.string(); break; } default: @@ -6422,156 +5967,150 @@ }; /** - * Decodes an Interstitials message from the specified reader or buffer, length delimited. + * Decodes a GamLiveConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.Interstitials + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.Interstitials} Interstitials + * @returns {google.cloud.video.stitcher.v1.GamLiveConfig} GamLiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Interstitials.decodeDelimited = function decodeDelimited(reader) { + GamLiveConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Interstitials message. + * Verifies a GamLiveConfig message. * @function verify - * @memberof google.cloud.video.stitcher.v1.Interstitials + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Interstitials.verify = function verify(message) { + GamLiveConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.adBreaks != null && message.hasOwnProperty("adBreaks")) { - if (!Array.isArray(message.adBreaks)) - return "adBreaks: array expected"; - for (var i = 0; i < message.adBreaks.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.VodSessionAdBreak.verify(message.adBreaks[i]); - if (error) - return "adBreaks." + error; - } - } - if (message.sessionContent != null && message.hasOwnProperty("sessionContent")) { - var error = $root.google.cloud.video.stitcher.v1.VodSessionContent.verify(message.sessionContent); - if (error) - return "sessionContent." + error; - } + if (message.networkCode != null && message.hasOwnProperty("networkCode")) + if (!$util.isString(message.networkCode)) + return "networkCode: string expected"; + if (message.assetKey != null && message.hasOwnProperty("assetKey")) + if (!$util.isString(message.assetKey)) + return "assetKey: string expected"; + if (message.customAssetKey != null && message.hasOwnProperty("customAssetKey")) + if (!$util.isString(message.customAssetKey)) + return "customAssetKey: string expected"; return null; }; /** - * Creates an Interstitials message from a plain object. Also converts values to their respective internal types. + * Creates a GamLiveConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.Interstitials + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.Interstitials} Interstitials + * @returns {google.cloud.video.stitcher.v1.GamLiveConfig} GamLiveConfig */ - Interstitials.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.Interstitials) + GamLiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.GamLiveConfig) return object; - var message = new $root.google.cloud.video.stitcher.v1.Interstitials(); - if (object.adBreaks) { - if (!Array.isArray(object.adBreaks)) - throw TypeError(".google.cloud.video.stitcher.v1.Interstitials.adBreaks: array expected"); - message.adBreaks = []; - for (var i = 0; i < object.adBreaks.length; ++i) { - if (typeof object.adBreaks[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.Interstitials.adBreaks: object expected"); - message.adBreaks[i] = $root.google.cloud.video.stitcher.v1.VodSessionAdBreak.fromObject(object.adBreaks[i]); - } - } - if (object.sessionContent != null) { - if (typeof object.sessionContent !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.Interstitials.sessionContent: object expected"); - message.sessionContent = $root.google.cloud.video.stitcher.v1.VodSessionContent.fromObject(object.sessionContent); - } + var message = new $root.google.cloud.video.stitcher.v1.GamLiveConfig(); + if (object.networkCode != null) + message.networkCode = String(object.networkCode); + if (object.assetKey != null) + message.assetKey = String(object.assetKey); + if (object.customAssetKey != null) + message.customAssetKey = String(object.customAssetKey); return message; }; /** - * Creates a plain object from an Interstitials message. Also converts values to other types if specified. + * Creates a plain object from a GamLiveConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.Interstitials + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig * @static - * @param {google.cloud.video.stitcher.v1.Interstitials} message Interstitials + * @param {google.cloud.video.stitcher.v1.GamLiveConfig} message GamLiveConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Interstitials.toObject = function toObject(message, options) { + GamLiveConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.adBreaks = []; - if (options.defaults) - object.sessionContent = null; - if (message.adBreaks && message.adBreaks.length) { - object.adBreaks = []; - for (var j = 0; j < message.adBreaks.length; ++j) - object.adBreaks[j] = $root.google.cloud.video.stitcher.v1.VodSessionAdBreak.toObject(message.adBreaks[j], options); + if (options.defaults) { + object.networkCode = ""; + object.assetKey = ""; + object.customAssetKey = ""; } - if (message.sessionContent != null && message.hasOwnProperty("sessionContent")) - object.sessionContent = $root.google.cloud.video.stitcher.v1.VodSessionContent.toObject(message.sessionContent, options); + if (message.networkCode != null && message.hasOwnProperty("networkCode")) + object.networkCode = message.networkCode; + if (message.assetKey != null && message.hasOwnProperty("assetKey")) + object.assetKey = message.assetKey; + if (message.customAssetKey != null && message.hasOwnProperty("customAssetKey")) + object.customAssetKey = message.customAssetKey; return object; }; /** - * Converts this Interstitials to JSON. + * Converts this GamLiveConfig to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.Interstitials + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig * @instance * @returns {Object.} JSON object */ - Interstitials.prototype.toJSON = function toJSON() { + GamLiveConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Interstitials + * Gets the default type url for GamLiveConfig * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.Interstitials + * @memberof google.cloud.video.stitcher.v1.GamLiveConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Interstitials.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GamLiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.Interstitials"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GamLiveConfig"; }; - return Interstitials; + return GamLiveConfig; })(); - v1.VodSessionAd = (function() { + v1.VodSession = (function() { /** - * Properties of a VodSessionAd. + * Properties of a VodSession. * @memberof google.cloud.video.stitcher.v1 - * @interface IVodSessionAd - * @property {google.protobuf.IDuration|null} [duration] VodSessionAd duration - * @property {google.cloud.video.stitcher.v1.ICompanionAds|null} [companionAds] VodSessionAd companionAds - * @property {Array.|null} [activityEvents] VodSessionAd activityEvents + * @interface IVodSession + * @property {string|null} [name] VodSession name + * @property {google.cloud.video.stitcher.v1.IInterstitials|null} [interstitials] VodSession interstitials + * @property {string|null} [playUri] VodSession playUri + * @property {string|null} [sourceUri] VodSession sourceUri + * @property {string|null} [adTagUri] VodSession adTagUri + * @property {Object.|null} [adTagMacroMap] VodSession adTagMacroMap + * @property {google.cloud.video.stitcher.v1.IManifestOptions|null} [manifestOptions] VodSession manifestOptions + * @property {string|null} [assetId] VodSession assetId + * @property {google.cloud.video.stitcher.v1.AdTracking|null} [adTracking] VodSession adTracking + * @property {google.cloud.video.stitcher.v1.VodSession.IGamSettings|null} [gamSettings] VodSession gamSettings + * @property {string|null} [vodConfig] VodSession vodConfig */ /** - * Constructs a new VodSessionAd. + * Constructs a new VodSession. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a VodSessionAd. - * @implements IVodSessionAd + * @classdesc Represents a VodSession. + * @implements IVodSession * @constructor - * @param {google.cloud.video.stitcher.v1.IVodSessionAd=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IVodSession=} [properties] Properties to set */ - function VodSessionAd(properties) { - this.activityEvents = []; + function VodSession(properties) { + this.adTagMacroMap = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6579,106 +6118,235 @@ } /** - * VodSessionAd duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof google.cloud.video.stitcher.v1.VodSessionAd + * VodSession name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.VodSession * @instance */ - VodSessionAd.prototype.duration = null; + VodSession.prototype.name = ""; /** - * VodSessionAd companionAds. - * @member {google.cloud.video.stitcher.v1.ICompanionAds|null|undefined} companionAds - * @memberof google.cloud.video.stitcher.v1.VodSessionAd + * VodSession interstitials. + * @member {google.cloud.video.stitcher.v1.IInterstitials|null|undefined} interstitials + * @memberof google.cloud.video.stitcher.v1.VodSession * @instance */ - VodSessionAd.prototype.companionAds = null; + VodSession.prototype.interstitials = null; /** - * VodSessionAd activityEvents. - * @member {Array.} activityEvents - * @memberof google.cloud.video.stitcher.v1.VodSessionAd + * VodSession playUri. + * @member {string} playUri + * @memberof google.cloud.video.stitcher.v1.VodSession * @instance */ - VodSessionAd.prototype.activityEvents = $util.emptyArray; + VodSession.prototype.playUri = ""; /** - * Creates a new VodSessionAd instance using the specified properties. - * @function create - * @memberof google.cloud.video.stitcher.v1.VodSessionAd - * @static - * @param {google.cloud.video.stitcher.v1.IVodSessionAd=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.VodSessionAd} VodSessionAd instance + * VodSession sourceUri. + * @member {string} sourceUri + * @memberof google.cloud.video.stitcher.v1.VodSession + * @instance */ - VodSessionAd.create = function create(properties) { - return new VodSessionAd(properties); - }; + VodSession.prototype.sourceUri = ""; /** - * Encodes the specified VodSessionAd message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAd.verify|verify} messages. - * @function encode - * @memberof google.cloud.video.stitcher.v1.VodSessionAd - * @static - * @param {google.cloud.video.stitcher.v1.IVodSessionAd} message VodSessionAd message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * VodSession adTagUri. + * @member {string} adTagUri + * @memberof google.cloud.video.stitcher.v1.VodSession + * @instance */ - VodSessionAd.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.companionAds != null && Object.hasOwnProperty.call(message, "companionAds")) - $root.google.cloud.video.stitcher.v1.CompanionAds.encode(message.companionAds, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.activityEvents != null && message.activityEvents.length) - for (var i = 0; i < message.activityEvents.length; ++i) - $root.google.cloud.video.stitcher.v1.Event.encode(message.activityEvents[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + VodSession.prototype.adTagUri = ""; /** - * Encodes the specified VodSessionAd message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAd.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodSessionAd - * @static - * @param {google.cloud.video.stitcher.v1.IVodSessionAd} message VodSessionAd message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * VodSession adTagMacroMap. + * @member {Object.} adTagMacroMap + * @memberof google.cloud.video.stitcher.v1.VodSession + * @instance */ - VodSessionAd.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + VodSession.prototype.adTagMacroMap = $util.emptyObject; /** - * Decodes a VodSessionAd message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.video.stitcher.v1.VodSessionAd - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.VodSessionAd} VodSessionAd - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * VodSession manifestOptions. + * @member {google.cloud.video.stitcher.v1.IManifestOptions|null|undefined} manifestOptions + * @memberof google.cloud.video.stitcher.v1.VodSession + * @instance */ - VodSessionAd.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodSessionAd(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + VodSession.prototype.manifestOptions = null; + + /** + * VodSession assetId. + * @member {string} assetId + * @memberof google.cloud.video.stitcher.v1.VodSession + * @instance + */ + VodSession.prototype.assetId = ""; + + /** + * VodSession adTracking. + * @member {google.cloud.video.stitcher.v1.AdTracking} adTracking + * @memberof google.cloud.video.stitcher.v1.VodSession + * @instance + */ + VodSession.prototype.adTracking = 0; + + /** + * VodSession gamSettings. + * @member {google.cloud.video.stitcher.v1.VodSession.IGamSettings|null|undefined} gamSettings + * @memberof google.cloud.video.stitcher.v1.VodSession + * @instance + */ + VodSession.prototype.gamSettings = null; + + /** + * VodSession vodConfig. + * @member {string} vodConfig + * @memberof google.cloud.video.stitcher.v1.VodSession + * @instance + */ + VodSession.prototype.vodConfig = ""; + + /** + * Creates a new VodSession instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.VodSession + * @static + * @param {google.cloud.video.stitcher.v1.IVodSession=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.VodSession} VodSession instance + */ + VodSession.create = function create(properties) { + return new VodSession(properties); + }; + + /** + * Encodes the specified VodSession message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSession.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.VodSession + * @static + * @param {google.cloud.video.stitcher.v1.IVodSession} message VodSession message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VodSession.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.interstitials != null && Object.hasOwnProperty.call(message, "interstitials")) + $root.google.cloud.video.stitcher.v1.Interstitials.encode(message.interstitials, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.playUri != null && Object.hasOwnProperty.call(message, "playUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.playUri); + if (message.sourceUri != null && Object.hasOwnProperty.call(message, "sourceUri")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.sourceUri); + if (message.adTagUri != null && Object.hasOwnProperty.call(message, "adTagUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.adTagUri); + if (message.adTagMacroMap != null && Object.hasOwnProperty.call(message, "adTagMacroMap")) + for (var keys = Object.keys(message.adTagMacroMap), i = 0; i < keys.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.adTagMacroMap[keys[i]]).ldelim(); + if (message.manifestOptions != null && Object.hasOwnProperty.call(message, "manifestOptions")) + $root.google.cloud.video.stitcher.v1.ManifestOptions.encode(message.manifestOptions, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.assetId != null && Object.hasOwnProperty.call(message, "assetId")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.assetId); + if (message.adTracking != null && Object.hasOwnProperty.call(message, "adTracking")) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.adTracking); + if (message.gamSettings != null && Object.hasOwnProperty.call(message, "gamSettings")) + $root.google.cloud.video.stitcher.v1.VodSession.GamSettings.encode(message.gamSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.vodConfig != null && Object.hasOwnProperty.call(message, "vodConfig")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.vodConfig); + return writer; + }; + + /** + * Encodes the specified VodSession message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSession.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.VodSession + * @static + * @param {google.cloud.video.stitcher.v1.IVodSession} message VodSession message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VodSession.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VodSession message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.VodSession + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.VodSession} VodSession + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VodSession.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodSession(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 1: { - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.companionAds = $root.google.cloud.video.stitcher.v1.CompanionAds.decode(reader, reader.uint32()); + message.interstitials = $root.google.cloud.video.stitcher.v1.Interstitials.decode(reader, reader.uint32()); break; } - case 3: { - if (!(message.activityEvents && message.activityEvents.length)) - message.activityEvents = []; - message.activityEvents.push($root.google.cloud.video.stitcher.v1.Event.decode(reader, reader.uint32())); + case 4: { + message.playUri = reader.string(); + break; + } + case 5: { + message.sourceUri = reader.string(); + break; + } + case 6: { + message.adTagUri = reader.string(); + break; + } + case 7: { + if (message.adTagMacroMap === $util.emptyObject) + message.adTagMacroMap = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.adTagMacroMap[key] = value; + break; + } + case 9: { + message.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.decode(reader, reader.uint32()); + break; + } + case 10: { + message.assetId = reader.string(); + break; + } + case 11: { + message.adTracking = reader.int32(); + break; + } + case 13: { + message.gamSettings = $root.google.cloud.video.stitcher.v1.VodSession.GamSettings.decode(reader, reader.uint32()); + break; + } + case 14: { + message.vodConfig = reader.string(); break; } default: @@ -6690,246 +6358,582 @@ }; /** - * Decodes a VodSessionAd message from the specified reader or buffer, length delimited. + * Decodes a VodSession message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodSessionAd + * @memberof google.cloud.video.stitcher.v1.VodSession * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.VodSessionAd} VodSessionAd + * @returns {google.cloud.video.stitcher.v1.VodSession} VodSession * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VodSessionAd.decodeDelimited = function decodeDelimited(reader) { + VodSession.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VodSessionAd message. + * Verifies a VodSession message. * @function verify - * @memberof google.cloud.video.stitcher.v1.VodSessionAd + * @memberof google.cloud.video.stitcher.v1.VodSession * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VodSessionAd.verify = function verify(message) { + VodSession.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.interstitials != null && message.hasOwnProperty("interstitials")) { + var error = $root.google.cloud.video.stitcher.v1.Interstitials.verify(message.interstitials); if (error) - return "duration." + error; + return "interstitials." + error; } - if (message.companionAds != null && message.hasOwnProperty("companionAds")) { - var error = $root.google.cloud.video.stitcher.v1.CompanionAds.verify(message.companionAds); + if (message.playUri != null && message.hasOwnProperty("playUri")) + if (!$util.isString(message.playUri)) + return "playUri: string expected"; + if (message.sourceUri != null && message.hasOwnProperty("sourceUri")) + if (!$util.isString(message.sourceUri)) + return "sourceUri: string expected"; + if (message.adTagUri != null && message.hasOwnProperty("adTagUri")) + if (!$util.isString(message.adTagUri)) + return "adTagUri: string expected"; + if (message.adTagMacroMap != null && message.hasOwnProperty("adTagMacroMap")) { + if (!$util.isObject(message.adTagMacroMap)) + return "adTagMacroMap: object expected"; + var key = Object.keys(message.adTagMacroMap); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.adTagMacroMap[key[i]])) + return "adTagMacroMap: string{k:string} expected"; + } + if (message.manifestOptions != null && message.hasOwnProperty("manifestOptions")) { + var error = $root.google.cloud.video.stitcher.v1.ManifestOptions.verify(message.manifestOptions); if (error) - return "companionAds." + error; + return "manifestOptions." + error; } - if (message.activityEvents != null && message.hasOwnProperty("activityEvents")) { - if (!Array.isArray(message.activityEvents)) - return "activityEvents: array expected"; - for (var i = 0; i < message.activityEvents.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.Event.verify(message.activityEvents[i]); - if (error) - return "activityEvents." + error; + if (message.assetId != null && message.hasOwnProperty("assetId")) + if (!$util.isString(message.assetId)) + return "assetId: string expected"; + if (message.adTracking != null && message.hasOwnProperty("adTracking")) + switch (message.adTracking) { + default: + return "adTracking: enum value expected"; + case 0: + case 1: + case 2: + break; } + if (message.gamSettings != null && message.hasOwnProperty("gamSettings")) { + var error = $root.google.cloud.video.stitcher.v1.VodSession.GamSettings.verify(message.gamSettings); + if (error) + return "gamSettings." + error; } + if (message.vodConfig != null && message.hasOwnProperty("vodConfig")) + if (!$util.isString(message.vodConfig)) + return "vodConfig: string expected"; return null; }; /** - * Creates a VodSessionAd message from a plain object. Also converts values to their respective internal types. + * Creates a VodSession message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.VodSessionAd + * @memberof google.cloud.video.stitcher.v1.VodSession * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.VodSessionAd} VodSessionAd + * @returns {google.cloud.video.stitcher.v1.VodSession} VodSession */ - VodSessionAd.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.VodSessionAd) + VodSession.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.VodSession) return object; - var message = new $root.google.cloud.video.stitcher.v1.VodSessionAd(); - if (object.duration != null) { - if (typeof object.duration !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAd.duration: object expected"); - message.duration = $root.google.protobuf.Duration.fromObject(object.duration); - } - if (object.companionAds != null) { - if (typeof object.companionAds !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAd.companionAds: object expected"); - message.companionAds = $root.google.cloud.video.stitcher.v1.CompanionAds.fromObject(object.companionAds); + var message = new $root.google.cloud.video.stitcher.v1.VodSession(); + if (object.name != null) + message.name = String(object.name); + if (object.interstitials != null) { + if (typeof object.interstitials !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSession.interstitials: object expected"); + message.interstitials = $root.google.cloud.video.stitcher.v1.Interstitials.fromObject(object.interstitials); } - if (object.activityEvents) { - if (!Array.isArray(object.activityEvents)) - throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAd.activityEvents: array expected"); - message.activityEvents = []; - for (var i = 0; i < object.activityEvents.length; ++i) { - if (typeof object.activityEvents[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAd.activityEvents: object expected"); - message.activityEvents[i] = $root.google.cloud.video.stitcher.v1.Event.fromObject(object.activityEvents[i]); + if (object.playUri != null) + message.playUri = String(object.playUri); + if (object.sourceUri != null) + message.sourceUri = String(object.sourceUri); + if (object.adTagUri != null) + message.adTagUri = String(object.adTagUri); + if (object.adTagMacroMap) { + if (typeof object.adTagMacroMap !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSession.adTagMacroMap: object expected"); + message.adTagMacroMap = {}; + for (var keys = Object.keys(object.adTagMacroMap), i = 0; i < keys.length; ++i) + message.adTagMacroMap[keys[i]] = String(object.adTagMacroMap[keys[i]]); + } + if (object.manifestOptions != null) { + if (typeof object.manifestOptions !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSession.manifestOptions: object expected"); + message.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.fromObject(object.manifestOptions); + } + if (object.assetId != null) + message.assetId = String(object.assetId); + switch (object.adTracking) { + default: + if (typeof object.adTracking === "number") { + message.adTracking = object.adTracking; + break; } + break; + case "AD_TRACKING_UNSPECIFIED": + case 0: + message.adTracking = 0; + break; + case "CLIENT": + case 1: + message.adTracking = 1; + break; + case "SERVER": + case 2: + message.adTracking = 2; + break; + } + if (object.gamSettings != null) { + if (typeof object.gamSettings !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSession.gamSettings: object expected"); + message.gamSettings = $root.google.cloud.video.stitcher.v1.VodSession.GamSettings.fromObject(object.gamSettings); } + if (object.vodConfig != null) + message.vodConfig = String(object.vodConfig); return message; }; /** - * Creates a plain object from a VodSessionAd message. Also converts values to other types if specified. + * Creates a plain object from a VodSession message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.VodSessionAd + * @memberof google.cloud.video.stitcher.v1.VodSession * @static - * @param {google.cloud.video.stitcher.v1.VodSessionAd} message VodSessionAd + * @param {google.cloud.video.stitcher.v1.VodSession} message VodSession * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VodSessionAd.toObject = function toObject(message, options) { + VodSession.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.activityEvents = []; + if (options.objects || options.defaults) + object.adTagMacroMap = {}; if (options.defaults) { - object.duration = null; - object.companionAds = null; + object.name = ""; + object.interstitials = null; + object.playUri = ""; + object.sourceUri = ""; + object.adTagUri = ""; + object.manifestOptions = null; + object.assetId = ""; + object.adTracking = options.enums === String ? "AD_TRACKING_UNSPECIFIED" : 0; + object.gamSettings = null; + object.vodConfig = ""; } - if (message.duration != null && message.hasOwnProperty("duration")) - object.duration = $root.google.protobuf.Duration.toObject(message.duration, options); - if (message.companionAds != null && message.hasOwnProperty("companionAds")) - object.companionAds = $root.google.cloud.video.stitcher.v1.CompanionAds.toObject(message.companionAds, options); - if (message.activityEvents && message.activityEvents.length) { - object.activityEvents = []; - for (var j = 0; j < message.activityEvents.length; ++j) - object.activityEvents[j] = $root.google.cloud.video.stitcher.v1.Event.toObject(message.activityEvents[j], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.interstitials != null && message.hasOwnProperty("interstitials")) + object.interstitials = $root.google.cloud.video.stitcher.v1.Interstitials.toObject(message.interstitials, options); + if (message.playUri != null && message.hasOwnProperty("playUri")) + object.playUri = message.playUri; + if (message.sourceUri != null && message.hasOwnProperty("sourceUri")) + object.sourceUri = message.sourceUri; + if (message.adTagUri != null && message.hasOwnProperty("adTagUri")) + object.adTagUri = message.adTagUri; + var keys2; + if (message.adTagMacroMap && (keys2 = Object.keys(message.adTagMacroMap)).length) { + object.adTagMacroMap = {}; + for (var j = 0; j < keys2.length; ++j) + object.adTagMacroMap[keys2[j]] = message.adTagMacroMap[keys2[j]]; } + if (message.manifestOptions != null && message.hasOwnProperty("manifestOptions")) + object.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.toObject(message.manifestOptions, options); + if (message.assetId != null && message.hasOwnProperty("assetId")) + object.assetId = message.assetId; + if (message.adTracking != null && message.hasOwnProperty("adTracking")) + object.adTracking = options.enums === String ? $root.google.cloud.video.stitcher.v1.AdTracking[message.adTracking] === undefined ? message.adTracking : $root.google.cloud.video.stitcher.v1.AdTracking[message.adTracking] : message.adTracking; + if (message.gamSettings != null && message.hasOwnProperty("gamSettings")) + object.gamSettings = $root.google.cloud.video.stitcher.v1.VodSession.GamSettings.toObject(message.gamSettings, options); + if (message.vodConfig != null && message.hasOwnProperty("vodConfig")) + object.vodConfig = message.vodConfig; return object; }; /** - * Converts this VodSessionAd to JSON. + * Converts this VodSession to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.VodSessionAd + * @memberof google.cloud.video.stitcher.v1.VodSession * @instance * @returns {Object.} JSON object */ - VodSessionAd.prototype.toJSON = function toJSON() { + VodSession.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VodSessionAd + * Gets the default type url for VodSession * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.VodSessionAd + * @memberof google.cloud.video.stitcher.v1.VodSession * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VodSessionAd.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VodSession.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodSessionAd"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodSession"; }; - return VodSessionAd; - })(); + VodSession.GamSettings = (function() { - v1.VodSessionContent = (function() { + /** + * Properties of a GamSettings. + * @memberof google.cloud.video.stitcher.v1.VodSession + * @interface IGamSettings + * @property {string|null} [networkCode] GamSettings networkCode + * @property {string|null} [streamId] GamSettings streamId + */ - /** - * Properties of a VodSessionContent. - * @memberof google.cloud.video.stitcher.v1 - * @interface IVodSessionContent - * @property {google.protobuf.IDuration|null} [duration] VodSessionContent duration - */ + /** + * Constructs a new GamSettings. + * @memberof google.cloud.video.stitcher.v1.VodSession + * @classdesc Represents a GamSettings. + * @implements IGamSettings + * @constructor + * @param {google.cloud.video.stitcher.v1.VodSession.IGamSettings=} [properties] Properties to set + */ + function GamSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new VodSessionContent. - * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a VodSessionContent. - * @implements IVodSessionContent - * @constructor - * @param {google.cloud.video.stitcher.v1.IVodSessionContent=} [properties] Properties to set - */ - function VodSessionContent(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * GamSettings networkCode. + * @member {string} networkCode + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @instance + */ + GamSettings.prototype.networkCode = ""; - /** - * VodSessionContent duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof google.cloud.video.stitcher.v1.VodSessionContent - * @instance - */ - VodSessionContent.prototype.duration = null; + /** + * GamSettings streamId. + * @member {string} streamId + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @instance + */ + GamSettings.prototype.streamId = ""; - /** - * Creates a new VodSessionContent instance using the specified properties. - * @function create - * @memberof google.cloud.video.stitcher.v1.VodSessionContent - * @static - * @param {google.cloud.video.stitcher.v1.IVodSessionContent=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent instance - */ - VodSessionContent.create = function create(properties) { - return new VodSessionContent(properties); - }; + /** + * Creates a new GamSettings instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @static + * @param {google.cloud.video.stitcher.v1.VodSession.IGamSettings=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.VodSession.GamSettings} GamSettings instance + */ + GamSettings.create = function create(properties) { + return new GamSettings(properties); + }; - /** - * Encodes the specified VodSessionContent message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionContent.verify|verify} messages. - * @function encode - * @memberof google.cloud.video.stitcher.v1.VodSessionContent - * @static - * @param {google.cloud.video.stitcher.v1.IVodSessionContent} message VodSessionContent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VodSessionContent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified GamSettings message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSession.GamSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @static + * @param {google.cloud.video.stitcher.v1.VodSession.IGamSettings} message GamSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GamSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.networkCode != null && Object.hasOwnProperty.call(message, "networkCode")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.networkCode); + if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.streamId); + return writer; + }; - /** - * Encodes the specified VodSessionContent message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionContent.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodSessionContent - * @static - * @param {google.cloud.video.stitcher.v1.IVodSessionContent} message VodSessionContent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to + /** + * Encodes the specified GamSettings message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSession.GamSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @static + * @param {google.cloud.video.stitcher.v1.VodSession.IGamSettings} message GamSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GamSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GamSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.VodSession.GamSettings} GamSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GamSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodSession.GamSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.networkCode = reader.string(); + break; + } + case 2: { + message.streamId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GamSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.VodSession.GamSettings} GamSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GamSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GamSettings message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GamSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.networkCode != null && message.hasOwnProperty("networkCode")) + if (!$util.isString(message.networkCode)) + return "networkCode: string expected"; + if (message.streamId != null && message.hasOwnProperty("streamId")) + if (!$util.isString(message.streamId)) + return "streamId: string expected"; + return null; + }; + + /** + * Creates a GamSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.VodSession.GamSettings} GamSettings + */ + GamSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.VodSession.GamSettings) + return object; + var message = new $root.google.cloud.video.stitcher.v1.VodSession.GamSettings(); + if (object.networkCode != null) + message.networkCode = String(object.networkCode); + if (object.streamId != null) + message.streamId = String(object.streamId); + return message; + }; + + /** + * Creates a plain object from a GamSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @static + * @param {google.cloud.video.stitcher.v1.VodSession.GamSettings} message GamSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GamSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.networkCode = ""; + object.streamId = ""; + } + if (message.networkCode != null && message.hasOwnProperty("networkCode")) + object.networkCode = message.networkCode; + if (message.streamId != null && message.hasOwnProperty("streamId")) + object.streamId = message.streamId; + return object; + }; + + /** + * Converts this GamSettings to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @instance + * @returns {Object.} JSON object + */ + GamSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GamSettings + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GamSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodSession.GamSettings"; + }; + + return GamSettings; + })(); + + return VodSession; + })(); + + v1.Interstitials = (function() { + + /** + * Properties of an Interstitials. + * @memberof google.cloud.video.stitcher.v1 + * @interface IInterstitials + * @property {Array.|null} [adBreaks] Interstitials adBreaks + * @property {google.cloud.video.stitcher.v1.IVodSessionContent|null} [sessionContent] Interstitials sessionContent + */ + + /** + * Constructs a new Interstitials. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents an Interstitials. + * @implements IInterstitials + * @constructor + * @param {google.cloud.video.stitcher.v1.IInterstitials=} [properties] Properties to set + */ + function Interstitials(properties) { + this.adBreaks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Interstitials adBreaks. + * @member {Array.} adBreaks + * @memberof google.cloud.video.stitcher.v1.Interstitials + * @instance + */ + Interstitials.prototype.adBreaks = $util.emptyArray; + + /** + * Interstitials sessionContent. + * @member {google.cloud.video.stitcher.v1.IVodSessionContent|null|undefined} sessionContent + * @memberof google.cloud.video.stitcher.v1.Interstitials + * @instance + */ + Interstitials.prototype.sessionContent = null; + + /** + * Creates a new Interstitials instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.Interstitials + * @static + * @param {google.cloud.video.stitcher.v1.IInterstitials=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.Interstitials} Interstitials instance + */ + Interstitials.create = function create(properties) { + return new Interstitials(properties); + }; + + /** + * Encodes the specified Interstitials message. Does not implicitly {@link google.cloud.video.stitcher.v1.Interstitials.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.Interstitials + * @static + * @param {google.cloud.video.stitcher.v1.IInterstitials} message Interstitials message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VodSessionContent.encodeDelimited = function encodeDelimited(message, writer) { + Interstitials.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.adBreaks != null && message.adBreaks.length) + for (var i = 0; i < message.adBreaks.length; ++i) + $root.google.cloud.video.stitcher.v1.VodSessionAdBreak.encode(message.adBreaks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.sessionContent != null && Object.hasOwnProperty.call(message, "sessionContent")) + $root.google.cloud.video.stitcher.v1.VodSessionContent.encode(message.sessionContent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Interstitials message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.Interstitials.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.Interstitials + * @static + * @param {google.cloud.video.stitcher.v1.IInterstitials} message Interstitials message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Interstitials.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VodSessionContent message from the specified reader or buffer. + * Decodes an Interstitials message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.VodSessionContent + * @memberof google.cloud.video.stitcher.v1.Interstitials * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent + * @returns {google.cloud.video.stitcher.v1.Interstitials} Interstitials * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VodSessionContent.decode = function decode(reader, length) { + Interstitials.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodSessionContent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.Interstitials(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + if (!(message.adBreaks && message.adBreaks.length)) + message.adBreaks = []; + message.adBreaks.push($root.google.cloud.video.stitcher.v1.VodSessionAdBreak.decode(reader, reader.uint32())); break; } - default: + case 2: { + message.sessionContent = $root.google.cloud.video.stitcher.v1.VodSessionContent.decode(reader, reader.uint32()); + break; + } + default: reader.skipType(tag & 7); break; } @@ -6938,132 +6942,156 @@ }; /** - * Decodes a VodSessionContent message from the specified reader or buffer, length delimited. + * Decodes an Interstitials message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodSessionContent + * @memberof google.cloud.video.stitcher.v1.Interstitials * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent + * @returns {google.cloud.video.stitcher.v1.Interstitials} Interstitials * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VodSessionContent.decodeDelimited = function decodeDelimited(reader) { + Interstitials.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VodSessionContent message. + * Verifies an Interstitials message. * @function verify - * @memberof google.cloud.video.stitcher.v1.VodSessionContent + * @memberof google.cloud.video.stitcher.v1.Interstitials * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VodSessionContent.verify = function verify(message) { + Interstitials.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); + if (message.adBreaks != null && message.hasOwnProperty("adBreaks")) { + if (!Array.isArray(message.adBreaks)) + return "adBreaks: array expected"; + for (var i = 0; i < message.adBreaks.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.VodSessionAdBreak.verify(message.adBreaks[i]); + if (error) + return "adBreaks." + error; + } + } + if (message.sessionContent != null && message.hasOwnProperty("sessionContent")) { + var error = $root.google.cloud.video.stitcher.v1.VodSessionContent.verify(message.sessionContent); if (error) - return "duration." + error; + return "sessionContent." + error; } return null; }; /** - * Creates a VodSessionContent message from a plain object. Also converts values to their respective internal types. + * Creates an Interstitials message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.VodSessionContent + * @memberof google.cloud.video.stitcher.v1.Interstitials * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent + * @returns {google.cloud.video.stitcher.v1.Interstitials} Interstitials */ - VodSessionContent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.VodSessionContent) + Interstitials.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.Interstitials) return object; - var message = new $root.google.cloud.video.stitcher.v1.VodSessionContent(); - if (object.duration != null) { - if (typeof object.duration !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSessionContent.duration: object expected"); - message.duration = $root.google.protobuf.Duration.fromObject(object.duration); + var message = new $root.google.cloud.video.stitcher.v1.Interstitials(); + if (object.adBreaks) { + if (!Array.isArray(object.adBreaks)) + throw TypeError(".google.cloud.video.stitcher.v1.Interstitials.adBreaks: array expected"); + message.adBreaks = []; + for (var i = 0; i < object.adBreaks.length; ++i) { + if (typeof object.adBreaks[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.Interstitials.adBreaks: object expected"); + message.adBreaks[i] = $root.google.cloud.video.stitcher.v1.VodSessionAdBreak.fromObject(object.adBreaks[i]); + } + } + if (object.sessionContent != null) { + if (typeof object.sessionContent !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.Interstitials.sessionContent: object expected"); + message.sessionContent = $root.google.cloud.video.stitcher.v1.VodSessionContent.fromObject(object.sessionContent); } return message; }; /** - * Creates a plain object from a VodSessionContent message. Also converts values to other types if specified. + * Creates a plain object from an Interstitials message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.VodSessionContent + * @memberof google.cloud.video.stitcher.v1.Interstitials * @static - * @param {google.cloud.video.stitcher.v1.VodSessionContent} message VodSessionContent + * @param {google.cloud.video.stitcher.v1.Interstitials} message Interstitials * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VodSessionContent.toObject = function toObject(message, options) { + Interstitials.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.adBreaks = []; if (options.defaults) - object.duration = null; - if (message.duration != null && message.hasOwnProperty("duration")) - object.duration = $root.google.protobuf.Duration.toObject(message.duration, options); + object.sessionContent = null; + if (message.adBreaks && message.adBreaks.length) { + object.adBreaks = []; + for (var j = 0; j < message.adBreaks.length; ++j) + object.adBreaks[j] = $root.google.cloud.video.stitcher.v1.VodSessionAdBreak.toObject(message.adBreaks[j], options); + } + if (message.sessionContent != null && message.hasOwnProperty("sessionContent")) + object.sessionContent = $root.google.cloud.video.stitcher.v1.VodSessionContent.toObject(message.sessionContent, options); return object; }; /** - * Converts this VodSessionContent to JSON. + * Converts this Interstitials to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.VodSessionContent + * @memberof google.cloud.video.stitcher.v1.Interstitials * @instance * @returns {Object.} JSON object */ - VodSessionContent.prototype.toJSON = function toJSON() { + Interstitials.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VodSessionContent + * Gets the default type url for Interstitials * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.VodSessionContent + * @memberof google.cloud.video.stitcher.v1.Interstitials * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VodSessionContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Interstitials.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodSessionContent"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.Interstitials"; }; - return VodSessionContent; + return Interstitials; })(); - v1.VodSessionAdBreak = (function() { + v1.VodSessionAd = (function() { /** - * Properties of a VodSessionAdBreak. + * Properties of a VodSessionAd. * @memberof google.cloud.video.stitcher.v1 - * @interface IVodSessionAdBreak - * @property {Array.|null} [progressEvents] VodSessionAdBreak progressEvents - * @property {Array.|null} [ads] VodSessionAdBreak ads - * @property {google.protobuf.IDuration|null} [endTimeOffset] VodSessionAdBreak endTimeOffset - * @property {google.protobuf.IDuration|null} [startTimeOffset] VodSessionAdBreak startTimeOffset + * @interface IVodSessionAd + * @property {google.protobuf.IDuration|null} [duration] VodSessionAd duration + * @property {google.cloud.video.stitcher.v1.ICompanionAds|null} [companionAds] VodSessionAd companionAds + * @property {Array.|null} [activityEvents] VodSessionAd activityEvents */ /** - * Constructs a new VodSessionAdBreak. + * Constructs a new VodSessionAd. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a VodSessionAdBreak. - * @implements IVodSessionAdBreak + * @classdesc Represents a VodSessionAd. + * @implements IVodSessionAd * @constructor - * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IVodSessionAd=} [properties] Properties to set */ - function VodSessionAdBreak(properties) { - this.progressEvents = []; - this.ads = []; + function VodSessionAd(properties) { + this.activityEvents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7071,123 +7099,106 @@ } /** - * VodSessionAdBreak progressEvents. - * @member {Array.} progressEvents - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak - * @instance - */ - VodSessionAdBreak.prototype.progressEvents = $util.emptyArray; - - /** - * VodSessionAdBreak ads. - * @member {Array.} ads - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * VodSessionAd duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @instance */ - VodSessionAdBreak.prototype.ads = $util.emptyArray; + VodSessionAd.prototype.duration = null; /** - * VodSessionAdBreak endTimeOffset. - * @member {google.protobuf.IDuration|null|undefined} endTimeOffset - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * VodSessionAd companionAds. + * @member {google.cloud.video.stitcher.v1.ICompanionAds|null|undefined} companionAds + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @instance */ - VodSessionAdBreak.prototype.endTimeOffset = null; + VodSessionAd.prototype.companionAds = null; /** - * VodSessionAdBreak startTimeOffset. - * @member {google.protobuf.IDuration|null|undefined} startTimeOffset - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * VodSessionAd activityEvents. + * @member {Array.} activityEvents + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @instance */ - VodSessionAdBreak.prototype.startTimeOffset = null; + VodSessionAd.prototype.activityEvents = $util.emptyArray; /** - * Creates a new VodSessionAdBreak instance using the specified properties. + * Creates a new VodSessionAd instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @static - * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.VodSessionAdBreak} VodSessionAdBreak instance + * @param {google.cloud.video.stitcher.v1.IVodSessionAd=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.VodSessionAd} VodSessionAd instance */ - VodSessionAdBreak.create = function create(properties) { - return new VodSessionAdBreak(properties); + VodSessionAd.create = function create(properties) { + return new VodSessionAd(properties); }; /** - * Encodes the specified VodSessionAdBreak message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAdBreak.verify|verify} messages. + * Encodes the specified VodSessionAd message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAd.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @static - * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak} message VodSessionAdBreak message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IVodSessionAd} message VodSessionAd message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VodSessionAdBreak.encode = function encode(message, writer) { + VodSessionAd.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.progressEvents != null && message.progressEvents.length) - for (var i = 0; i < message.progressEvents.length; ++i) - $root.google.cloud.video.stitcher.v1.ProgressEvent.encode(message.progressEvents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.ads != null && message.ads.length) - for (var i = 0; i < message.ads.length; ++i) - $root.google.cloud.video.stitcher.v1.VodSessionAd.encode(message.ads[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.endTimeOffset != null && Object.hasOwnProperty.call(message, "endTimeOffset")) - $root.google.protobuf.Duration.encode(message.endTimeOffset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.startTimeOffset != null && Object.hasOwnProperty.call(message, "startTimeOffset")) - $root.google.protobuf.Duration.encode(message.startTimeOffset, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.companionAds != null && Object.hasOwnProperty.call(message, "companionAds")) + $root.google.cloud.video.stitcher.v1.CompanionAds.encode(message.companionAds, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.activityEvents != null && message.activityEvents.length) + for (var i = 0; i < message.activityEvents.length; ++i) + $root.google.cloud.video.stitcher.v1.Event.encode(message.activityEvents[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified VodSessionAdBreak message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAdBreak.verify|verify} messages. + * Encodes the specified VodSessionAd message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAd.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @static - * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak} message VodSessionAdBreak message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IVodSessionAd} message VodSessionAd message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VodSessionAdBreak.encodeDelimited = function encodeDelimited(message, writer) { + VodSessionAd.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VodSessionAdBreak message from the specified reader or buffer. + * Decodes a VodSessionAd message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.VodSessionAdBreak} VodSessionAdBreak + * @returns {google.cloud.video.stitcher.v1.VodSessionAd} VodSessionAd * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VodSessionAdBreak.decode = function decode(reader, length) { + VodSessionAd.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodSessionAdBreak(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodSessionAd(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.progressEvents && message.progressEvents.length)) - message.progressEvents = []; - message.progressEvents.push($root.google.cloud.video.stitcher.v1.ProgressEvent.decode(reader, reader.uint32())); + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.ads && message.ads.length)) - message.ads = []; - message.ads.push($root.google.cloud.video.stitcher.v1.VodSessionAd.decode(reader, reader.uint32())); + message.companionAds = $root.google.cloud.video.stitcher.v1.CompanionAds.decode(reader, reader.uint32()); break; } case 3: { - message.endTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 4: { - message.startTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + if (!(message.activityEvents && message.activityEvents.length)) + message.activityEvents = []; + message.activityEvents.push($root.google.cloud.video.stitcher.v1.Event.decode(reader, reader.uint32())); break; } default: @@ -7199,199 +7210,167 @@ }; /** - * Decodes a VodSessionAdBreak message from the specified reader or buffer, length delimited. + * Decodes a VodSessionAd message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.VodSessionAdBreak} VodSessionAdBreak + * @returns {google.cloud.video.stitcher.v1.VodSessionAd} VodSessionAd * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VodSessionAdBreak.decodeDelimited = function decodeDelimited(reader) { + VodSessionAd.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VodSessionAdBreak message. + * Verifies a VodSessionAd message. * @function verify - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VodSessionAdBreak.verify = function verify(message) { + VodSessionAd.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.progressEvents != null && message.hasOwnProperty("progressEvents")) { - if (!Array.isArray(message.progressEvents)) - return "progressEvents: array expected"; - for (var i = 0; i < message.progressEvents.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.ProgressEvent.verify(message.progressEvents[i]); - if (error) - return "progressEvents." + error; - } + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; } - if (message.ads != null && message.hasOwnProperty("ads")) { - if (!Array.isArray(message.ads)) - return "ads: array expected"; - for (var i = 0; i < message.ads.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.VodSessionAd.verify(message.ads[i]); - if (error) - return "ads." + error; - } - } - if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) { - var error = $root.google.protobuf.Duration.verify(message.endTimeOffset); + if (message.companionAds != null && message.hasOwnProperty("companionAds")) { + var error = $root.google.cloud.video.stitcher.v1.CompanionAds.verify(message.companionAds); if (error) - return "endTimeOffset." + error; + return "companionAds." + error; } - if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) { - var error = $root.google.protobuf.Duration.verify(message.startTimeOffset); - if (error) - return "startTimeOffset." + error; + if (message.activityEvents != null && message.hasOwnProperty("activityEvents")) { + if (!Array.isArray(message.activityEvents)) + return "activityEvents: array expected"; + for (var i = 0; i < message.activityEvents.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.Event.verify(message.activityEvents[i]); + if (error) + return "activityEvents." + error; + } } return null; }; /** - * Creates a VodSessionAdBreak message from a plain object. Also converts values to their respective internal types. + * Creates a VodSessionAd message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.VodSessionAdBreak} VodSessionAdBreak + * @returns {google.cloud.video.stitcher.v1.VodSessionAd} VodSessionAd */ - VodSessionAdBreak.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.VodSessionAdBreak) + VodSessionAd.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.VodSessionAd) return object; - var message = new $root.google.cloud.video.stitcher.v1.VodSessionAdBreak(); - if (object.progressEvents) { - if (!Array.isArray(object.progressEvents)) - throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.progressEvents: array expected"); - message.progressEvents = []; - for (var i = 0; i < object.progressEvents.length; ++i) { - if (typeof object.progressEvents[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.progressEvents: object expected"); - message.progressEvents[i] = $root.google.cloud.video.stitcher.v1.ProgressEvent.fromObject(object.progressEvents[i]); - } - } - if (object.ads) { - if (!Array.isArray(object.ads)) - throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.ads: array expected"); - message.ads = []; - for (var i = 0; i < object.ads.length; ++i) { - if (typeof object.ads[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.ads: object expected"); - message.ads[i] = $root.google.cloud.video.stitcher.v1.VodSessionAd.fromObject(object.ads[i]); - } + var message = new $root.google.cloud.video.stitcher.v1.VodSessionAd(); + if (object.duration != null) { + if (typeof object.duration !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAd.duration: object expected"); + message.duration = $root.google.protobuf.Duration.fromObject(object.duration); } - if (object.endTimeOffset != null) { - if (typeof object.endTimeOffset !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.endTimeOffset: object expected"); - message.endTimeOffset = $root.google.protobuf.Duration.fromObject(object.endTimeOffset); + if (object.companionAds != null) { + if (typeof object.companionAds !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAd.companionAds: object expected"); + message.companionAds = $root.google.cloud.video.stitcher.v1.CompanionAds.fromObject(object.companionAds); } - if (object.startTimeOffset != null) { - if (typeof object.startTimeOffset !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.startTimeOffset: object expected"); - message.startTimeOffset = $root.google.protobuf.Duration.fromObject(object.startTimeOffset); + if (object.activityEvents) { + if (!Array.isArray(object.activityEvents)) + throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAd.activityEvents: array expected"); + message.activityEvents = []; + for (var i = 0; i < object.activityEvents.length; ++i) { + if (typeof object.activityEvents[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAd.activityEvents: object expected"); + message.activityEvents[i] = $root.google.cloud.video.stitcher.v1.Event.fromObject(object.activityEvents[i]); + } } return message; }; /** - * Creates a plain object from a VodSessionAdBreak message. Also converts values to other types if specified. + * Creates a plain object from a VodSessionAd message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @static - * @param {google.cloud.video.stitcher.v1.VodSessionAdBreak} message VodSessionAdBreak + * @param {google.cloud.video.stitcher.v1.VodSessionAd} message VodSessionAd * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VodSessionAdBreak.toObject = function toObject(message, options) { + VodSessionAd.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.progressEvents = []; - object.ads = []; - } + if (options.arrays || options.defaults) + object.activityEvents = []; if (options.defaults) { - object.endTimeOffset = null; - object.startTimeOffset = null; - } - if (message.progressEvents && message.progressEvents.length) { - object.progressEvents = []; - for (var j = 0; j < message.progressEvents.length; ++j) - object.progressEvents[j] = $root.google.cloud.video.stitcher.v1.ProgressEvent.toObject(message.progressEvents[j], options); + object.duration = null; + object.companionAds = null; } - if (message.ads && message.ads.length) { - object.ads = []; - for (var j = 0; j < message.ads.length; ++j) - object.ads[j] = $root.google.cloud.video.stitcher.v1.VodSessionAd.toObject(message.ads[j], options); + if (message.duration != null && message.hasOwnProperty("duration")) + object.duration = $root.google.protobuf.Duration.toObject(message.duration, options); + if (message.companionAds != null && message.hasOwnProperty("companionAds")) + object.companionAds = $root.google.cloud.video.stitcher.v1.CompanionAds.toObject(message.companionAds, options); + if (message.activityEvents && message.activityEvents.length) { + object.activityEvents = []; + for (var j = 0; j < message.activityEvents.length; ++j) + object.activityEvents[j] = $root.google.cloud.video.stitcher.v1.Event.toObject(message.activityEvents[j], options); } - if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) - object.endTimeOffset = $root.google.protobuf.Duration.toObject(message.endTimeOffset, options); - if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) - object.startTimeOffset = $root.google.protobuf.Duration.toObject(message.startTimeOffset, options); return object; }; /** - * Converts this VodSessionAdBreak to JSON. + * Converts this VodSessionAd to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @instance * @returns {Object.} JSON object */ - VodSessionAdBreak.prototype.toJSON = function toJSON() { + VodSessionAd.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VodSessionAdBreak + * Gets the default type url for VodSessionAd * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @memberof google.cloud.video.stitcher.v1.VodSessionAd * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VodSessionAdBreak.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VodSessionAd.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodSessionAdBreak"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodSessionAd"; }; - return VodSessionAdBreak; + return VodSessionAd; })(); - v1.LiveSession = (function() { + v1.VodSessionContent = (function() { /** - * Properties of a LiveSession. + * Properties of a VodSessionContent. * @memberof google.cloud.video.stitcher.v1 - * @interface ILiveSession - * @property {string|null} [name] LiveSession name - * @property {string|null} [playUri] LiveSession playUri - * @property {Object.|null} [adTagMacros] LiveSession adTagMacros - * @property {google.cloud.video.stitcher.v1.IManifestOptions|null} [manifestOptions] LiveSession manifestOptions - * @property {google.cloud.video.stitcher.v1.LiveSession.IGamSettings|null} [gamSettings] LiveSession gamSettings - * @property {string|null} [liveConfig] LiveSession liveConfig + * @interface IVodSessionContent + * @property {google.protobuf.IDuration|null} [duration] VodSessionContent duration */ /** - * Constructs a new LiveSession. + * Constructs a new VodSessionContent. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a LiveSession. - * @implements ILiveSession + * @classdesc Represents a VodSessionContent. + * @implements IVodSessionContent * @constructor - * @param {google.cloud.video.stitcher.v1.ILiveSession=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IVodSessionContent=} [properties] Properties to set */ - function LiveSession(properties) { - this.adTagMacros = {}; + function VodSessionContent(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7399,165 +7378,75 @@ } /** - * LiveSession name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.LiveSession - * @instance - */ - LiveSession.prototype.name = ""; - - /** - * LiveSession playUri. - * @member {string} playUri - * @memberof google.cloud.video.stitcher.v1.LiveSession - * @instance - */ - LiveSession.prototype.playUri = ""; - - /** - * LiveSession adTagMacros. - * @member {Object.} adTagMacros - * @memberof google.cloud.video.stitcher.v1.LiveSession - * @instance - */ - LiveSession.prototype.adTagMacros = $util.emptyObject; - - /** - * LiveSession manifestOptions. - * @member {google.cloud.video.stitcher.v1.IManifestOptions|null|undefined} manifestOptions - * @memberof google.cloud.video.stitcher.v1.LiveSession - * @instance - */ - LiveSession.prototype.manifestOptions = null; - - /** - * LiveSession gamSettings. - * @member {google.cloud.video.stitcher.v1.LiveSession.IGamSettings|null|undefined} gamSettings - * @memberof google.cloud.video.stitcher.v1.LiveSession - * @instance - */ - LiveSession.prototype.gamSettings = null; - - /** - * LiveSession liveConfig. - * @member {string} liveConfig - * @memberof google.cloud.video.stitcher.v1.LiveSession + * VodSessionContent duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof google.cloud.video.stitcher.v1.VodSessionContent * @instance */ - LiveSession.prototype.liveConfig = ""; + VodSessionContent.prototype.duration = null; /** - * Creates a new LiveSession instance using the specified properties. + * Creates a new VodSessionContent instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.LiveSession + * @memberof google.cloud.video.stitcher.v1.VodSessionContent * @static - * @param {google.cloud.video.stitcher.v1.ILiveSession=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.LiveSession} LiveSession instance + * @param {google.cloud.video.stitcher.v1.IVodSessionContent=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent instance */ - LiveSession.create = function create(properties) { - return new LiveSession(properties); + VodSessionContent.create = function create(properties) { + return new VodSessionContent(properties); }; /** - * Encodes the specified LiveSession message. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.verify|verify} messages. + * Encodes the specified VodSessionContent message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionContent.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.LiveSession + * @memberof google.cloud.video.stitcher.v1.VodSessionContent * @static - * @param {google.cloud.video.stitcher.v1.ILiveSession} message LiveSession message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IVodSessionContent} message VodSessionContent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LiveSession.encode = function encode(message, writer) { + VodSessionContent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.playUri != null && Object.hasOwnProperty.call(message, "playUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.playUri); - if (message.adTagMacros != null && Object.hasOwnProperty.call(message, "adTagMacros")) - for (var keys = Object.keys(message.adTagMacros), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.adTagMacros[keys[i]]).ldelim(); - if (message.manifestOptions != null && Object.hasOwnProperty.call(message, "manifestOptions")) - $root.google.cloud.video.stitcher.v1.ManifestOptions.encode(message.manifestOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.gamSettings != null && Object.hasOwnProperty.call(message, "gamSettings")) - $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings.encode(message.gamSettings, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.liveConfig != null && Object.hasOwnProperty.call(message, "liveConfig")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.liveConfig); + if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified LiveSession message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.verify|verify} messages. + * Encodes the specified VodSessionContent message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionContent.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.LiveSession + * @memberof google.cloud.video.stitcher.v1.VodSessionContent * @static - * @param {google.cloud.video.stitcher.v1.ILiveSession} message LiveSession message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IVodSessionContent} message VodSessionContent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LiveSession.encodeDelimited = function encodeDelimited(message, writer) { + VodSessionContent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LiveSession message from the specified reader or buffer. + * Decodes a VodSessionContent message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.LiveSession + * @memberof google.cloud.video.stitcher.v1.VodSessionContent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.LiveSession} LiveSession + * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LiveSession.decode = function decode(reader, length) { + VodSessionContent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.LiveSession(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodSessionContent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.playUri = reader.string(); - break; - } - case 6: { - if (message.adTagMacros === $util.emptyObject) - message.adTagMacros = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.adTagMacros[key] = value; - break; - } - case 10: { - message.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.decode(reader, reader.uint32()); - break; - } - case 15: { - message.gamSettings = $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings.decode(reader, reader.uint32()); - break; - } - case 16: { - message.liveConfig = reader.string(); + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } default: @@ -7569,486 +7458,256 @@ }; /** - * Decodes a LiveSession message from the specified reader or buffer, length delimited. + * Decodes a VodSessionContent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.LiveSession + * @memberof google.cloud.video.stitcher.v1.VodSessionContent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.LiveSession} LiveSession + * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LiveSession.decodeDelimited = function decodeDelimited(reader) { + VodSessionContent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LiveSession message. + * Verifies a VodSessionContent message. * @function verify - * @memberof google.cloud.video.stitcher.v1.LiveSession + * @memberof google.cloud.video.stitcher.v1.VodSessionContent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LiveSession.verify = function verify(message) { + VodSessionContent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.playUri != null && message.hasOwnProperty("playUri")) - if (!$util.isString(message.playUri)) - return "playUri: string expected"; - if (message.adTagMacros != null && message.hasOwnProperty("adTagMacros")) { - if (!$util.isObject(message.adTagMacros)) - return "adTagMacros: object expected"; - var key = Object.keys(message.adTagMacros); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.adTagMacros[key[i]])) - return "adTagMacros: string{k:string} expected"; - } - if (message.manifestOptions != null && message.hasOwnProperty("manifestOptions")) { - var error = $root.google.cloud.video.stitcher.v1.ManifestOptions.verify(message.manifestOptions); - if (error) - return "manifestOptions." + error; - } - if (message.gamSettings != null && message.hasOwnProperty("gamSettings")) { - var error = $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings.verify(message.gamSettings); + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); if (error) - return "gamSettings." + error; + return "duration." + error; } - if (message.liveConfig != null && message.hasOwnProperty("liveConfig")) - if (!$util.isString(message.liveConfig)) - return "liveConfig: string expected"; return null; }; /** - * Creates a LiveSession message from a plain object. Also converts values to their respective internal types. + * Creates a VodSessionContent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.LiveSession + * @memberof google.cloud.video.stitcher.v1.VodSessionContent * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.LiveSession} LiveSession + * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent */ - LiveSession.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.LiveSession) + VodSessionContent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.VodSessionContent) return object; - var message = new $root.google.cloud.video.stitcher.v1.LiveSession(); - if (object.name != null) - message.name = String(object.name); - if (object.playUri != null) - message.playUri = String(object.playUri); - if (object.adTagMacros) { - if (typeof object.adTagMacros !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.LiveSession.adTagMacros: object expected"); - message.adTagMacros = {}; - for (var keys = Object.keys(object.adTagMacros), i = 0; i < keys.length; ++i) - message.adTagMacros[keys[i]] = String(object.adTagMacros[keys[i]]); - } - if (object.manifestOptions != null) { - if (typeof object.manifestOptions !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.LiveSession.manifestOptions: object expected"); - message.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.fromObject(object.manifestOptions); - } - if (object.gamSettings != null) { - if (typeof object.gamSettings !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.LiveSession.gamSettings: object expected"); - message.gamSettings = $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings.fromObject(object.gamSettings); + var message = new $root.google.cloud.video.stitcher.v1.VodSessionContent(); + if (object.duration != null) { + if (typeof object.duration !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSessionContent.duration: object expected"); + message.duration = $root.google.protobuf.Duration.fromObject(object.duration); } - if (object.liveConfig != null) - message.liveConfig = String(object.liveConfig); return message; }; /** - * Creates a plain object from a LiveSession message. Also converts values to other types if specified. + * Creates a plain object from a VodSessionContent message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.LiveSession + * @memberof google.cloud.video.stitcher.v1.VodSessionContent * @static - * @param {google.cloud.video.stitcher.v1.LiveSession} message LiveSession + * @param {google.cloud.video.stitcher.v1.VodSessionContent} message VodSessionContent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LiveSession.toObject = function toObject(message, options) { + VodSessionContent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.adTagMacros = {}; - if (options.defaults) { - object.name = ""; - object.playUri = ""; - object.manifestOptions = null; - object.gamSettings = null; - object.liveConfig = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.playUri != null && message.hasOwnProperty("playUri")) - object.playUri = message.playUri; - var keys2; - if (message.adTagMacros && (keys2 = Object.keys(message.adTagMacros)).length) { - object.adTagMacros = {}; - for (var j = 0; j < keys2.length; ++j) - object.adTagMacros[keys2[j]] = message.adTagMacros[keys2[j]]; - } - if (message.manifestOptions != null && message.hasOwnProperty("manifestOptions")) - object.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.toObject(message.manifestOptions, options); - if (message.gamSettings != null && message.hasOwnProperty("gamSettings")) - object.gamSettings = $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings.toObject(message.gamSettings, options); - if (message.liveConfig != null && message.hasOwnProperty("liveConfig")) - object.liveConfig = message.liveConfig; + if (options.defaults) + object.duration = null; + if (message.duration != null && message.hasOwnProperty("duration")) + object.duration = $root.google.protobuf.Duration.toObject(message.duration, options); return object; }; /** - * Converts this LiveSession to JSON. + * Converts this VodSessionContent to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.LiveSession + * @memberof google.cloud.video.stitcher.v1.VodSessionContent * @instance * @returns {Object.} JSON object */ - LiveSession.prototype.toJSON = function toJSON() { + VodSessionContent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LiveSession + * Gets the default type url for VodSessionContent * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.LiveSession + * @memberof google.cloud.video.stitcher.v1.VodSessionContent * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LiveSession.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VodSessionContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.LiveSession"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodSessionContent"; }; - LiveSession.GamSettings = (function() { + return VodSessionContent; + })(); - /** - * Properties of a GamSettings. - * @memberof google.cloud.video.stitcher.v1.LiveSession - * @interface IGamSettings - * @property {string|null} [streamId] GamSettings streamId - */ + v1.VodSessionAdBreak = (function() { - /** - * Constructs a new GamSettings. - * @memberof google.cloud.video.stitcher.v1.LiveSession - * @classdesc Represents a GamSettings. - * @implements IGamSettings - * @constructor - * @param {google.cloud.video.stitcher.v1.LiveSession.IGamSettings=} [properties] Properties to set - */ - function GamSettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a VodSessionAdBreak. + * @memberof google.cloud.video.stitcher.v1 + * @interface IVodSessionAdBreak + * @property {Array.|null} [progressEvents] VodSessionAdBreak progressEvents + * @property {Array.|null} [ads] VodSessionAdBreak ads + * @property {google.protobuf.IDuration|null} [endTimeOffset] VodSessionAdBreak endTimeOffset + * @property {google.protobuf.IDuration|null} [startTimeOffset] VodSessionAdBreak startTimeOffset + */ - /** - * GamSettings streamId. - * @member {string} streamId - * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings - * @instance - */ - GamSettings.prototype.streamId = ""; + /** + * Constructs a new VodSessionAdBreak. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a VodSessionAdBreak. + * @implements IVodSessionAdBreak + * @constructor + * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak=} [properties] Properties to set + */ + function VodSessionAdBreak(properties) { + this.progressEvents = []; + this.ads = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new GamSettings instance using the specified properties. - * @function create - * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings - * @static - * @param {google.cloud.video.stitcher.v1.LiveSession.IGamSettings=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.LiveSession.GamSettings} GamSettings instance - */ - GamSettings.create = function create(properties) { - return new GamSettings(properties); - }; - - /** - * Encodes the specified GamSettings message. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.GamSettings.verify|verify} messages. - * @function encode - * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings - * @static - * @param {google.cloud.video.stitcher.v1.LiveSession.IGamSettings} message GamSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GamSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.streamId); - return writer; - }; - - /** - * Encodes the specified GamSettings message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.GamSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings - * @static - * @param {google.cloud.video.stitcher.v1.LiveSession.IGamSettings} message GamSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GamSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GamSettings message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.LiveSession.GamSettings} GamSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GamSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.streamId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GamSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.LiveSession.GamSettings} GamSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GamSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GamSettings message. - * @function verify - * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GamSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.streamId != null && message.hasOwnProperty("streamId")) - if (!$util.isString(message.streamId)) - return "streamId: string expected"; - return null; - }; - - /** - * Creates a GamSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.LiveSession.GamSettings} GamSettings - */ - GamSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings) - return object; - var message = new $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings(); - if (object.streamId != null) - message.streamId = String(object.streamId); - return message; - }; - - /** - * Creates a plain object from a GamSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings - * @static - * @param {google.cloud.video.stitcher.v1.LiveSession.GamSettings} message GamSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GamSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.streamId = ""; - if (message.streamId != null && message.hasOwnProperty("streamId")) - object.streamId = message.streamId; - return object; - }; - - /** - * Converts this GamSettings to JSON. - * @function toJSON - * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings - * @instance - * @returns {Object.} JSON object - */ - GamSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GamSettings - * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GamSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.LiveSession.GamSettings"; - }; - - return GamSettings; - })(); - - return LiveSession; - })(); - - v1.ManifestOptions = (function() { + /** + * VodSessionAdBreak progressEvents. + * @member {Array.} progressEvents + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @instance + */ + VodSessionAdBreak.prototype.progressEvents = $util.emptyArray; /** - * Properties of a ManifestOptions. - * @memberof google.cloud.video.stitcher.v1 - * @interface IManifestOptions - * @property {Array.|null} [includeRenditions] ManifestOptions includeRenditions - * @property {google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy|null} [bitrateOrder] ManifestOptions bitrateOrder - */ - - /** - * Constructs a new ManifestOptions. - * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ManifestOptions. - * @implements IManifestOptions - * @constructor - * @param {google.cloud.video.stitcher.v1.IManifestOptions=} [properties] Properties to set + * VodSessionAdBreak ads. + * @member {Array.} ads + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak + * @instance */ - function ManifestOptions(properties) { - this.includeRenditions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + VodSessionAdBreak.prototype.ads = $util.emptyArray; /** - * ManifestOptions includeRenditions. - * @member {Array.} includeRenditions - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * VodSessionAdBreak endTimeOffset. + * @member {google.protobuf.IDuration|null|undefined} endTimeOffset + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @instance */ - ManifestOptions.prototype.includeRenditions = $util.emptyArray; + VodSessionAdBreak.prototype.endTimeOffset = null; /** - * ManifestOptions bitrateOrder. - * @member {google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy} bitrateOrder - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * VodSessionAdBreak startTimeOffset. + * @member {google.protobuf.IDuration|null|undefined} startTimeOffset + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @instance */ - ManifestOptions.prototype.bitrateOrder = 0; + VodSessionAdBreak.prototype.startTimeOffset = null; /** - * Creates a new ManifestOptions instance using the specified properties. + * Creates a new VodSessionAdBreak instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @static - * @param {google.cloud.video.stitcher.v1.IManifestOptions=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ManifestOptions} ManifestOptions instance + * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.VodSessionAdBreak} VodSessionAdBreak instance */ - ManifestOptions.create = function create(properties) { - return new ManifestOptions(properties); + VodSessionAdBreak.create = function create(properties) { + return new VodSessionAdBreak(properties); }; /** - * Encodes the specified ManifestOptions message. Does not implicitly {@link google.cloud.video.stitcher.v1.ManifestOptions.verify|verify} messages. + * Encodes the specified VodSessionAdBreak message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAdBreak.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @static - * @param {google.cloud.video.stitcher.v1.IManifestOptions} message ManifestOptions message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak} message VodSessionAdBreak message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ManifestOptions.encode = function encode(message, writer) { + VodSessionAdBreak.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.includeRenditions != null && message.includeRenditions.length) - for (var i = 0; i < message.includeRenditions.length; ++i) - $root.google.cloud.video.stitcher.v1.RenditionFilter.encode(message.includeRenditions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.bitrateOrder != null && Object.hasOwnProperty.call(message, "bitrateOrder")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.bitrateOrder); + if (message.progressEvents != null && message.progressEvents.length) + for (var i = 0; i < message.progressEvents.length; ++i) + $root.google.cloud.video.stitcher.v1.ProgressEvent.encode(message.progressEvents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.ads != null && message.ads.length) + for (var i = 0; i < message.ads.length; ++i) + $root.google.cloud.video.stitcher.v1.VodSessionAd.encode(message.ads[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.endTimeOffset != null && Object.hasOwnProperty.call(message, "endTimeOffset")) + $root.google.protobuf.Duration.encode(message.endTimeOffset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTimeOffset != null && Object.hasOwnProperty.call(message, "startTimeOffset")) + $root.google.protobuf.Duration.encode(message.startTimeOffset, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ManifestOptions message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ManifestOptions.verify|verify} messages. + * Encodes the specified VodSessionAdBreak message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAdBreak.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @static - * @param {google.cloud.video.stitcher.v1.IManifestOptions} message ManifestOptions message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak} message VodSessionAdBreak message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ManifestOptions.encodeDelimited = function encodeDelimited(message, writer) { + VodSessionAdBreak.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ManifestOptions message from the specified reader or buffer. + * Decodes a VodSessionAdBreak message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ManifestOptions} ManifestOptions + * @returns {google.cloud.video.stitcher.v1.VodSessionAdBreak} VodSessionAdBreak * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ManifestOptions.decode = function decode(reader, length) { + VodSessionAdBreak.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ManifestOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodSessionAdBreak(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.includeRenditions && message.includeRenditions.length)) - message.includeRenditions = []; - message.includeRenditions.push($root.google.cloud.video.stitcher.v1.RenditionFilter.decode(reader, reader.uint32())); + if (!(message.progressEvents && message.progressEvents.length)) + message.progressEvents = []; + message.progressEvents.push($root.google.cloud.video.stitcher.v1.ProgressEvent.decode(reader, reader.uint32())); break; } case 2: { - message.bitrateOrder = reader.int32(); + if (!(message.ads && message.ads.length)) + message.ads = []; + message.ads.push($root.google.cloud.video.stitcher.v1.VodSessionAd.decode(reader, reader.uint32())); + break; + } + case 3: { + message.endTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } default: @@ -8060,189 +7719,200 @@ }; /** - * Decodes a ManifestOptions message from the specified reader or buffer, length delimited. + * Decodes a VodSessionAdBreak message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ManifestOptions} ManifestOptions + * @returns {google.cloud.video.stitcher.v1.VodSessionAdBreak} VodSessionAdBreak * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ManifestOptions.decodeDelimited = function decodeDelimited(reader) { + VodSessionAdBreak.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ManifestOptions message. + * Verifies a VodSessionAdBreak message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ManifestOptions.verify = function verify(message) { + VodSessionAdBreak.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.includeRenditions != null && message.hasOwnProperty("includeRenditions")) { - if (!Array.isArray(message.includeRenditions)) - return "includeRenditions: array expected"; - for (var i = 0; i < message.includeRenditions.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.RenditionFilter.verify(message.includeRenditions[i]); + if (message.progressEvents != null && message.hasOwnProperty("progressEvents")) { + if (!Array.isArray(message.progressEvents)) + return "progressEvents: array expected"; + for (var i = 0; i < message.progressEvents.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.ProgressEvent.verify(message.progressEvents[i]); if (error) - return "includeRenditions." + error; + return "progressEvents." + error; } } - if (message.bitrateOrder != null && message.hasOwnProperty("bitrateOrder")) - switch (message.bitrateOrder) { - default: - return "bitrateOrder: enum value expected"; - case 0: - case 1: - case 2: - break; + if (message.ads != null && message.hasOwnProperty("ads")) { + if (!Array.isArray(message.ads)) + return "ads: array expected"; + for (var i = 0; i < message.ads.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.VodSessionAd.verify(message.ads[i]); + if (error) + return "ads." + error; } + } + if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.endTimeOffset); + if (error) + return "endTimeOffset." + error; + } + if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.startTimeOffset); + if (error) + return "startTimeOffset." + error; + } return null; }; /** - * Creates a ManifestOptions message from a plain object. Also converts values to their respective internal types. + * Creates a VodSessionAdBreak message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ManifestOptions} ManifestOptions + * @returns {google.cloud.video.stitcher.v1.VodSessionAdBreak} VodSessionAdBreak */ - ManifestOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ManifestOptions) + VodSessionAdBreak.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.VodSessionAdBreak) return object; - var message = new $root.google.cloud.video.stitcher.v1.ManifestOptions(); - if (object.includeRenditions) { - if (!Array.isArray(object.includeRenditions)) - throw TypeError(".google.cloud.video.stitcher.v1.ManifestOptions.includeRenditions: array expected"); - message.includeRenditions = []; - for (var i = 0; i < object.includeRenditions.length; ++i) { - if (typeof object.includeRenditions[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.ManifestOptions.includeRenditions: object expected"); - message.includeRenditions[i] = $root.google.cloud.video.stitcher.v1.RenditionFilter.fromObject(object.includeRenditions[i]); + var message = new $root.google.cloud.video.stitcher.v1.VodSessionAdBreak(); + if (object.progressEvents) { + if (!Array.isArray(object.progressEvents)) + throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.progressEvents: array expected"); + message.progressEvents = []; + for (var i = 0; i < object.progressEvents.length; ++i) { + if (typeof object.progressEvents[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.progressEvents: object expected"); + message.progressEvents[i] = $root.google.cloud.video.stitcher.v1.ProgressEvent.fromObject(object.progressEvents[i]); } } - switch (object.bitrateOrder) { - default: - if (typeof object.bitrateOrder === "number") { - message.bitrateOrder = object.bitrateOrder; - break; + if (object.ads) { + if (!Array.isArray(object.ads)) + throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.ads: array expected"); + message.ads = []; + for (var i = 0; i < object.ads.length; ++i) { + if (typeof object.ads[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.ads: object expected"); + message.ads[i] = $root.google.cloud.video.stitcher.v1.VodSessionAd.fromObject(object.ads[i]); } - break; - case "ORDER_POLICY_UNSPECIFIED": - case 0: - message.bitrateOrder = 0; - break; - case "ASCENDING": - case 1: - message.bitrateOrder = 1; - break; - case "DESCENDING": - case 2: - message.bitrateOrder = 2; - break; + } + if (object.endTimeOffset != null) { + if (typeof object.endTimeOffset !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.endTimeOffset: object expected"); + message.endTimeOffset = $root.google.protobuf.Duration.fromObject(object.endTimeOffset); + } + if (object.startTimeOffset != null) { + if (typeof object.startTimeOffset !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodSessionAdBreak.startTimeOffset: object expected"); + message.startTimeOffset = $root.google.protobuf.Duration.fromObject(object.startTimeOffset); } return message; }; /** - * Creates a plain object from a ManifestOptions message. Also converts values to other types if specified. + * Creates a plain object from a VodSessionAdBreak message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @static - * @param {google.cloud.video.stitcher.v1.ManifestOptions} message ManifestOptions + * @param {google.cloud.video.stitcher.v1.VodSessionAdBreak} message VodSessionAdBreak * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ManifestOptions.toObject = function toObject(message, options) { + VodSessionAdBreak.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.includeRenditions = []; - if (options.defaults) - object.bitrateOrder = options.enums === String ? "ORDER_POLICY_UNSPECIFIED" : 0; - if (message.includeRenditions && message.includeRenditions.length) { - object.includeRenditions = []; - for (var j = 0; j < message.includeRenditions.length; ++j) - object.includeRenditions[j] = $root.google.cloud.video.stitcher.v1.RenditionFilter.toObject(message.includeRenditions[j], options); + if (options.arrays || options.defaults) { + object.progressEvents = []; + object.ads = []; } - if (message.bitrateOrder != null && message.hasOwnProperty("bitrateOrder")) - object.bitrateOrder = options.enums === String ? $root.google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy[message.bitrateOrder] === undefined ? message.bitrateOrder : $root.google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy[message.bitrateOrder] : message.bitrateOrder; + if (options.defaults) { + object.endTimeOffset = null; + object.startTimeOffset = null; + } + if (message.progressEvents && message.progressEvents.length) { + object.progressEvents = []; + for (var j = 0; j < message.progressEvents.length; ++j) + object.progressEvents[j] = $root.google.cloud.video.stitcher.v1.ProgressEvent.toObject(message.progressEvents[j], options); + } + if (message.ads && message.ads.length) { + object.ads = []; + for (var j = 0; j < message.ads.length; ++j) + object.ads[j] = $root.google.cloud.video.stitcher.v1.VodSessionAd.toObject(message.ads[j], options); + } + if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) + object.endTimeOffset = $root.google.protobuf.Duration.toObject(message.endTimeOffset, options); + if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) + object.startTimeOffset = $root.google.protobuf.Duration.toObject(message.startTimeOffset, options); return object; }; /** - * Converts this ManifestOptions to JSON. + * Converts this VodSessionAdBreak to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @instance * @returns {Object.} JSON object */ - ManifestOptions.prototype.toJSON = function toJSON() { + VodSessionAdBreak.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ManifestOptions + * Gets the default type url for VodSessionAdBreak * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ManifestOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VodSessionAdBreak.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ManifestOptions"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodSessionAdBreak"; }; - /** - * OrderPolicy enum. - * @name google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy - * @enum {number} - * @property {number} ORDER_POLICY_UNSPECIFIED=0 ORDER_POLICY_UNSPECIFIED value - * @property {number} ASCENDING=1 ASCENDING value - * @property {number} DESCENDING=2 DESCENDING value - */ - ManifestOptions.OrderPolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ORDER_POLICY_UNSPECIFIED"] = 0; - values[valuesById[1] = "ASCENDING"] = 1; - values[valuesById[2] = "DESCENDING"] = 2; - return values; - })(); - - return ManifestOptions; + return VodSessionAdBreak; })(); - v1.RenditionFilter = (function() { + v1.LiveSession = (function() { /** - * Properties of a RenditionFilter. + * Properties of a LiveSession. * @memberof google.cloud.video.stitcher.v1 - * @interface IRenditionFilter - * @property {number|null} [bitrateBps] RenditionFilter bitrateBps - * @property {string|null} [codecs] RenditionFilter codecs + * @interface ILiveSession + * @property {string|null} [name] LiveSession name + * @property {string|null} [playUri] LiveSession playUri + * @property {Object.|null} [adTagMacros] LiveSession adTagMacros + * @property {google.cloud.video.stitcher.v1.IManifestOptions|null} [manifestOptions] LiveSession manifestOptions + * @property {google.cloud.video.stitcher.v1.LiveSession.IGamSettings|null} [gamSettings] LiveSession gamSettings + * @property {string|null} [liveConfig] LiveSession liveConfig + * @property {google.cloud.video.stitcher.v1.AdTracking|null} [adTracking] LiveSession adTracking */ /** - * Constructs a new RenditionFilter. + * Constructs a new LiveSession. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a RenditionFilter. - * @implements IRenditionFilter + * @classdesc Represents a LiveSession. + * @implements ILiveSession * @constructor - * @param {google.cloud.video.stitcher.v1.IRenditionFilter=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.ILiveSession=} [properties] Properties to set */ - function RenditionFilter(properties) { + function LiveSession(properties) { + this.adTagMacros = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8250,89 +7920,179 @@ } /** - * RenditionFilter bitrateBps. - * @member {number} bitrateBps - * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * LiveSession name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.LiveSession * @instance */ - RenditionFilter.prototype.bitrateBps = 0; + LiveSession.prototype.name = ""; /** - * RenditionFilter codecs. - * @member {string} codecs - * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * LiveSession playUri. + * @member {string} playUri + * @memberof google.cloud.video.stitcher.v1.LiveSession * @instance */ - RenditionFilter.prototype.codecs = ""; + LiveSession.prototype.playUri = ""; /** - * Creates a new RenditionFilter instance using the specified properties. - * @function create - * @memberof google.cloud.video.stitcher.v1.RenditionFilter - * @static - * @param {google.cloud.video.stitcher.v1.IRenditionFilter=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.RenditionFilter} RenditionFilter instance + * LiveSession adTagMacros. + * @member {Object.} adTagMacros + * @memberof google.cloud.video.stitcher.v1.LiveSession + * @instance */ - RenditionFilter.create = function create(properties) { - return new RenditionFilter(properties); + LiveSession.prototype.adTagMacros = $util.emptyObject; + + /** + * LiveSession manifestOptions. + * @member {google.cloud.video.stitcher.v1.IManifestOptions|null|undefined} manifestOptions + * @memberof google.cloud.video.stitcher.v1.LiveSession + * @instance + */ + LiveSession.prototype.manifestOptions = null; + + /** + * LiveSession gamSettings. + * @member {google.cloud.video.stitcher.v1.LiveSession.IGamSettings|null|undefined} gamSettings + * @memberof google.cloud.video.stitcher.v1.LiveSession + * @instance + */ + LiveSession.prototype.gamSettings = null; + + /** + * LiveSession liveConfig. + * @member {string} liveConfig + * @memberof google.cloud.video.stitcher.v1.LiveSession + * @instance + */ + LiveSession.prototype.liveConfig = ""; + + /** + * LiveSession adTracking. + * @member {google.cloud.video.stitcher.v1.AdTracking} adTracking + * @memberof google.cloud.video.stitcher.v1.LiveSession + * @instance + */ + LiveSession.prototype.adTracking = 0; + + /** + * Creates a new LiveSession instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.LiveSession + * @static + * @param {google.cloud.video.stitcher.v1.ILiveSession=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.LiveSession} LiveSession instance + */ + LiveSession.create = function create(properties) { + return new LiveSession(properties); }; /** - * Encodes the specified RenditionFilter message. Does not implicitly {@link google.cloud.video.stitcher.v1.RenditionFilter.verify|verify} messages. + * Encodes the specified LiveSession message. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @memberof google.cloud.video.stitcher.v1.LiveSession * @static - * @param {google.cloud.video.stitcher.v1.IRenditionFilter} message RenditionFilter message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ILiveSession} message LiveSession message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RenditionFilter.encode = function encode(message, writer) { + LiveSession.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bitrateBps != null && Object.hasOwnProperty.call(message, "bitrateBps")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bitrateBps); - if (message.codecs != null && Object.hasOwnProperty.call(message, "codecs")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.codecs); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.playUri != null && Object.hasOwnProperty.call(message, "playUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.playUri); + if (message.adTagMacros != null && Object.hasOwnProperty.call(message, "adTagMacros")) + for (var keys = Object.keys(message.adTagMacros), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.adTagMacros[keys[i]]).ldelim(); + if (message.manifestOptions != null && Object.hasOwnProperty.call(message, "manifestOptions")) + $root.google.cloud.video.stitcher.v1.ManifestOptions.encode(message.manifestOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.gamSettings != null && Object.hasOwnProperty.call(message, "gamSettings")) + $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings.encode(message.gamSettings, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.liveConfig != null && Object.hasOwnProperty.call(message, "liveConfig")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.liveConfig); + if (message.adTracking != null && Object.hasOwnProperty.call(message, "adTracking")) + writer.uint32(/* id 17, wireType 0 =*/136).int32(message.adTracking); return writer; }; /** - * Encodes the specified RenditionFilter message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.RenditionFilter.verify|verify} messages. + * Encodes the specified LiveSession message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @memberof google.cloud.video.stitcher.v1.LiveSession * @static - * @param {google.cloud.video.stitcher.v1.IRenditionFilter} message RenditionFilter message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ILiveSession} message LiveSession message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RenditionFilter.encodeDelimited = function encodeDelimited(message, writer) { + LiveSession.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RenditionFilter message from the specified reader or buffer. + * Decodes a LiveSession message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @memberof google.cloud.video.stitcher.v1.LiveSession * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.RenditionFilter} RenditionFilter + * @returns {google.cloud.video.stitcher.v1.LiveSession} LiveSession * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RenditionFilter.decode = function decode(reader, length) { + LiveSession.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.RenditionFilter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.LiveSession(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.bitrateBps = reader.int32(); + message.name = reader.string(); break; } case 2: { - message.codecs = reader.string(); + message.playUri = reader.string(); + break; + } + case 6: { + if (message.adTagMacros === $util.emptyObject) + message.adTagMacros = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.adTagMacros[key] = value; + break; + } + case 10: { + message.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.decode(reader, reader.uint32()); + break; + } + case 15: { + message.gamSettings = $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings.decode(reader, reader.uint32()); + break; + } + case 16: { + message.liveConfig = reader.string(); + break; + } + case 17: { + message.adTracking = reader.int32(); break; } default: @@ -8344,237 +8104,577 @@ }; /** - * Decodes a RenditionFilter message from the specified reader or buffer, length delimited. + * Decodes a LiveSession message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @memberof google.cloud.video.stitcher.v1.LiveSession * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.RenditionFilter} RenditionFilter + * @returns {google.cloud.video.stitcher.v1.LiveSession} LiveSession * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RenditionFilter.decodeDelimited = function decodeDelimited(reader) { + LiveSession.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RenditionFilter message. + * Verifies a LiveSession message. * @function verify - * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @memberof google.cloud.video.stitcher.v1.LiveSession * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RenditionFilter.verify = function verify(message) { + LiveSession.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.bitrateBps != null && message.hasOwnProperty("bitrateBps")) - if (!$util.isInteger(message.bitrateBps)) - return "bitrateBps: integer expected"; - if (message.codecs != null && message.hasOwnProperty("codecs")) - if (!$util.isString(message.codecs)) - return "codecs: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.playUri != null && message.hasOwnProperty("playUri")) + if (!$util.isString(message.playUri)) + return "playUri: string expected"; + if (message.adTagMacros != null && message.hasOwnProperty("adTagMacros")) { + if (!$util.isObject(message.adTagMacros)) + return "adTagMacros: object expected"; + var key = Object.keys(message.adTagMacros); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.adTagMacros[key[i]])) + return "adTagMacros: string{k:string} expected"; + } + if (message.manifestOptions != null && message.hasOwnProperty("manifestOptions")) { + var error = $root.google.cloud.video.stitcher.v1.ManifestOptions.verify(message.manifestOptions); + if (error) + return "manifestOptions." + error; + } + if (message.gamSettings != null && message.hasOwnProperty("gamSettings")) { + var error = $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings.verify(message.gamSettings); + if (error) + return "gamSettings." + error; + } + if (message.liveConfig != null && message.hasOwnProperty("liveConfig")) + if (!$util.isString(message.liveConfig)) + return "liveConfig: string expected"; + if (message.adTracking != null && message.hasOwnProperty("adTracking")) + switch (message.adTracking) { + default: + return "adTracking: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a RenditionFilter message from a plain object. Also converts values to their respective internal types. + * Creates a LiveSession message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @memberof google.cloud.video.stitcher.v1.LiveSession * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.RenditionFilter} RenditionFilter + * @returns {google.cloud.video.stitcher.v1.LiveSession} LiveSession */ - RenditionFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.RenditionFilter) + LiveSession.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.LiveSession) return object; - var message = new $root.google.cloud.video.stitcher.v1.RenditionFilter(); - if (object.bitrateBps != null) - message.bitrateBps = object.bitrateBps | 0; - if (object.codecs != null) - message.codecs = String(object.codecs); + var message = new $root.google.cloud.video.stitcher.v1.LiveSession(); + if (object.name != null) + message.name = String(object.name); + if (object.playUri != null) + message.playUri = String(object.playUri); + if (object.adTagMacros) { + if (typeof object.adTagMacros !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.LiveSession.adTagMacros: object expected"); + message.adTagMacros = {}; + for (var keys = Object.keys(object.adTagMacros), i = 0; i < keys.length; ++i) + message.adTagMacros[keys[i]] = String(object.adTagMacros[keys[i]]); + } + if (object.manifestOptions != null) { + if (typeof object.manifestOptions !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.LiveSession.manifestOptions: object expected"); + message.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.fromObject(object.manifestOptions); + } + if (object.gamSettings != null) { + if (typeof object.gamSettings !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.LiveSession.gamSettings: object expected"); + message.gamSettings = $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings.fromObject(object.gamSettings); + } + if (object.liveConfig != null) + message.liveConfig = String(object.liveConfig); + switch (object.adTracking) { + default: + if (typeof object.adTracking === "number") { + message.adTracking = object.adTracking; + break; + } + break; + case "AD_TRACKING_UNSPECIFIED": + case 0: + message.adTracking = 0; + break; + case "CLIENT": + case 1: + message.adTracking = 1; + break; + case "SERVER": + case 2: + message.adTracking = 2; + break; + } return message; }; /** - * Creates a plain object from a RenditionFilter message. Also converts values to other types if specified. + * Creates a plain object from a LiveSession message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @memberof google.cloud.video.stitcher.v1.LiveSession * @static - * @param {google.cloud.video.stitcher.v1.RenditionFilter} message RenditionFilter + * @param {google.cloud.video.stitcher.v1.LiveSession} message LiveSession * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RenditionFilter.toObject = function toObject(message, options) { + LiveSession.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.adTagMacros = {}; if (options.defaults) { - object.bitrateBps = 0; - object.codecs = ""; + object.name = ""; + object.playUri = ""; + object.manifestOptions = null; + object.gamSettings = null; + object.liveConfig = ""; + object.adTracking = options.enums === String ? "AD_TRACKING_UNSPECIFIED" : 0; } - if (message.bitrateBps != null && message.hasOwnProperty("bitrateBps")) - object.bitrateBps = message.bitrateBps; - if (message.codecs != null && message.hasOwnProperty("codecs")) - object.codecs = message.codecs; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.playUri != null && message.hasOwnProperty("playUri")) + object.playUri = message.playUri; + var keys2; + if (message.adTagMacros && (keys2 = Object.keys(message.adTagMacros)).length) { + object.adTagMacros = {}; + for (var j = 0; j < keys2.length; ++j) + object.adTagMacros[keys2[j]] = message.adTagMacros[keys2[j]]; + } + if (message.manifestOptions != null && message.hasOwnProperty("manifestOptions")) + object.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.toObject(message.manifestOptions, options); + if (message.gamSettings != null && message.hasOwnProperty("gamSettings")) + object.gamSettings = $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings.toObject(message.gamSettings, options); + if (message.liveConfig != null && message.hasOwnProperty("liveConfig")) + object.liveConfig = message.liveConfig; + if (message.adTracking != null && message.hasOwnProperty("adTracking")) + object.adTracking = options.enums === String ? $root.google.cloud.video.stitcher.v1.AdTracking[message.adTracking] === undefined ? message.adTracking : $root.google.cloud.video.stitcher.v1.AdTracking[message.adTracking] : message.adTracking; return object; }; /** - * Converts this RenditionFilter to JSON. + * Converts this LiveSession to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @memberof google.cloud.video.stitcher.v1.LiveSession * @instance * @returns {Object.} JSON object */ - RenditionFilter.prototype.toJSON = function toJSON() { + LiveSession.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RenditionFilter + * Gets the default type url for LiveSession * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @memberof google.cloud.video.stitcher.v1.LiveSession * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RenditionFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LiveSession.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.RenditionFilter"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.LiveSession"; }; - return RenditionFilter; - })(); - - v1.Slate = (function() { - - /** - * Properties of a Slate. - * @memberof google.cloud.video.stitcher.v1 - * @interface ISlate - * @property {string|null} [name] Slate name - * @property {string|null} [uri] Slate uri - * @property {google.cloud.video.stitcher.v1.Slate.IGamSlate|null} [gamSlate] Slate gamSlate - */ + LiveSession.GamSettings = (function() { - /** - * Constructs a new Slate. - * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a Slate. - * @implements ISlate - * @constructor - * @param {google.cloud.video.stitcher.v1.ISlate=} [properties] Properties to set - */ - function Slate(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a GamSettings. + * @memberof google.cloud.video.stitcher.v1.LiveSession + * @interface IGamSettings + * @property {string|null} [streamId] GamSettings streamId + * @property {Object.|null} [targetingParameters] GamSettings targetingParameters + */ - /** - * Slate name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.Slate - * @instance - */ - Slate.prototype.name = ""; + /** + * Constructs a new GamSettings. + * @memberof google.cloud.video.stitcher.v1.LiveSession + * @classdesc Represents a GamSettings. + * @implements IGamSettings + * @constructor + * @param {google.cloud.video.stitcher.v1.LiveSession.IGamSettings=} [properties] Properties to set + */ + function GamSettings(properties) { + this.targetingParameters = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Slate uri. - * @member {string} uri - * @memberof google.cloud.video.stitcher.v1.Slate - * @instance - */ - Slate.prototype.uri = ""; + /** + * GamSettings streamId. + * @member {string} streamId + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @instance + */ + GamSettings.prototype.streamId = ""; - /** - * Slate gamSlate. - * @member {google.cloud.video.stitcher.v1.Slate.IGamSlate|null|undefined} gamSlate - * @memberof google.cloud.video.stitcher.v1.Slate - * @instance - */ - Slate.prototype.gamSlate = null; + /** + * GamSettings targetingParameters. + * @member {Object.} targetingParameters + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @instance + */ + GamSettings.prototype.targetingParameters = $util.emptyObject; - /** - * Creates a new Slate instance using the specified properties. - * @function create - * @memberof google.cloud.video.stitcher.v1.Slate - * @static - * @param {google.cloud.video.stitcher.v1.ISlate=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.Slate} Slate instance - */ - Slate.create = function create(properties) { - return new Slate(properties); - }; + /** + * Creates a new GamSettings instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @static + * @param {google.cloud.video.stitcher.v1.LiveSession.IGamSettings=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.LiveSession.GamSettings} GamSettings instance + */ + GamSettings.create = function create(properties) { + return new GamSettings(properties); + }; - /** - * Encodes the specified Slate message. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.verify|verify} messages. - * @function encode - * @memberof google.cloud.video.stitcher.v1.Slate - * @static - * @param {google.cloud.video.stitcher.v1.ISlate} message Slate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Slate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); - if (message.gamSlate != null && Object.hasOwnProperty.call(message, "gamSlate")) - $root.google.cloud.video.stitcher.v1.Slate.GamSlate.encode(message.gamSlate, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified GamSettings message. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.GamSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @static + * @param {google.cloud.video.stitcher.v1.LiveSession.IGamSettings} message GamSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GamSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.streamId); + if (message.targetingParameters != null && Object.hasOwnProperty.call(message, "targetingParameters")) + for (var keys = Object.keys(message.targetingParameters), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.targetingParameters[keys[i]]).ldelim(); + return writer; + }; - /** - * Encodes the specified Slate message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.Slate - * @static - * @param {google.cloud.video.stitcher.v1.ISlate} message Slate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Slate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GamSettings message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.GamSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @static + * @param {google.cloud.video.stitcher.v1.LiveSession.IGamSettings} message GamSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GamSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Slate message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.video.stitcher.v1.Slate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.Slate} Slate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Slate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.Slate(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.uri = reader.string(); + /** + * Decodes a GamSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.LiveSession.GamSettings} GamSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GamSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.streamId = reader.string(); + break; + } + case 4: { + if (message.targetingParameters === $util.emptyObject) + message.targetingParameters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.targetingParameters[key] = value; + break; + } + default: + reader.skipType(tag & 7); break; } - case 3: { - message.gamSlate = $root.google.cloud.video.stitcher.v1.Slate.GamSlate.decode(reader, reader.uint32()); + } + return message; + }; + + /** + * Decodes a GamSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.LiveSession.GamSettings} GamSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GamSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GamSettings message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GamSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.streamId != null && message.hasOwnProperty("streamId")) + if (!$util.isString(message.streamId)) + return "streamId: string expected"; + if (message.targetingParameters != null && message.hasOwnProperty("targetingParameters")) { + if (!$util.isObject(message.targetingParameters)) + return "targetingParameters: object expected"; + var key = Object.keys(message.targetingParameters); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.targetingParameters[key[i]])) + return "targetingParameters: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a GamSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.LiveSession.GamSettings} GamSettings + */ + GamSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings) + return object; + var message = new $root.google.cloud.video.stitcher.v1.LiveSession.GamSettings(); + if (object.streamId != null) + message.streamId = String(object.streamId); + if (object.targetingParameters) { + if (typeof object.targetingParameters !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.LiveSession.GamSettings.targetingParameters: object expected"); + message.targetingParameters = {}; + for (var keys = Object.keys(object.targetingParameters), i = 0; i < keys.length; ++i) + message.targetingParameters[keys[i]] = String(object.targetingParameters[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a GamSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @static + * @param {google.cloud.video.stitcher.v1.LiveSession.GamSettings} message GamSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GamSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.targetingParameters = {}; + if (options.defaults) + object.streamId = ""; + if (message.streamId != null && message.hasOwnProperty("streamId")) + object.streamId = message.streamId; + var keys2; + if (message.targetingParameters && (keys2 = Object.keys(message.targetingParameters)).length) { + object.targetingParameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.targetingParameters[keys2[j]] = message.targetingParameters[keys2[j]]; + } + return object; + }; + + /** + * Converts this GamSettings to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @instance + * @returns {Object.} JSON object + */ + GamSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GamSettings + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GamSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.LiveSession.GamSettings"; + }; + + return GamSettings; + })(); + + return LiveSession; + })(); + + v1.ManifestOptions = (function() { + + /** + * Properties of a ManifestOptions. + * @memberof google.cloud.video.stitcher.v1 + * @interface IManifestOptions + * @property {Array.|null} [includeRenditions] ManifestOptions includeRenditions + * @property {google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy|null} [bitrateOrder] ManifestOptions bitrateOrder + */ + + /** + * Constructs a new ManifestOptions. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a ManifestOptions. + * @implements IManifestOptions + * @constructor + * @param {google.cloud.video.stitcher.v1.IManifestOptions=} [properties] Properties to set + */ + function ManifestOptions(properties) { + this.includeRenditions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ManifestOptions includeRenditions. + * @member {Array.} includeRenditions + * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @instance + */ + ManifestOptions.prototype.includeRenditions = $util.emptyArray; + + /** + * ManifestOptions bitrateOrder. + * @member {google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy} bitrateOrder + * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @instance + */ + ManifestOptions.prototype.bitrateOrder = 0; + + /** + * Creates a new ManifestOptions instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @static + * @param {google.cloud.video.stitcher.v1.IManifestOptions=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ManifestOptions} ManifestOptions instance + */ + ManifestOptions.create = function create(properties) { + return new ManifestOptions(properties); + }; + + /** + * Encodes the specified ManifestOptions message. Does not implicitly {@link google.cloud.video.stitcher.v1.ManifestOptions.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @static + * @param {google.cloud.video.stitcher.v1.IManifestOptions} message ManifestOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManifestOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.includeRenditions != null && message.includeRenditions.length) + for (var i = 0; i < message.includeRenditions.length; ++i) + $root.google.cloud.video.stitcher.v1.RenditionFilter.encode(message.includeRenditions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.bitrateOrder != null && Object.hasOwnProperty.call(message, "bitrateOrder")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.bitrateOrder); + return writer; + }; + + /** + * Encodes the specified ManifestOptions message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ManifestOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @static + * @param {google.cloud.video.stitcher.v1.IManifestOptions} message ManifestOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManifestOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ManifestOptions message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.ManifestOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.ManifestOptions} ManifestOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManifestOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ManifestOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.includeRenditions && message.includeRenditions.length)) + message.includeRenditions = []; + message.includeRenditions.push($root.google.cloud.video.stitcher.v1.RenditionFilter.decode(reader, reader.uint32())); + break; + } + case 2: { + message.bitrateOrder = reader.int32(); break; } default: @@ -8586,387 +8686,3083 @@ }; /** - * Decodes a Slate message from the specified reader or buffer, length delimited. + * Decodes a ManifestOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.Slate + * @memberof google.cloud.video.stitcher.v1.ManifestOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.Slate} Slate + * @returns {google.cloud.video.stitcher.v1.ManifestOptions} ManifestOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Slate.decodeDelimited = function decodeDelimited(reader) { + ManifestOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Slate message. + * Verifies a ManifestOptions message. * @function verify - * @memberof google.cloud.video.stitcher.v1.Slate + * @memberof google.cloud.video.stitcher.v1.ManifestOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Slate.verify = function verify(message) { + ManifestOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.gamSlate != null && message.hasOwnProperty("gamSlate")) { - var error = $root.google.cloud.video.stitcher.v1.Slate.GamSlate.verify(message.gamSlate); - if (error) - return "gamSlate." + error; + if (message.includeRenditions != null && message.hasOwnProperty("includeRenditions")) { + if (!Array.isArray(message.includeRenditions)) + return "includeRenditions: array expected"; + for (var i = 0; i < message.includeRenditions.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.RenditionFilter.verify(message.includeRenditions[i]); + if (error) + return "includeRenditions." + error; + } } - return null; - }; + if (message.bitrateOrder != null && message.hasOwnProperty("bitrateOrder")) + switch (message.bitrateOrder) { + default: + return "bitrateOrder: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; /** - * Creates a Slate message from a plain object. Also converts values to their respective internal types. + * Creates a ManifestOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.Slate + * @memberof google.cloud.video.stitcher.v1.ManifestOptions * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.Slate} Slate + * @returns {google.cloud.video.stitcher.v1.ManifestOptions} ManifestOptions */ - Slate.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.Slate) + ManifestOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ManifestOptions) return object; - var message = new $root.google.cloud.video.stitcher.v1.Slate(); - if (object.name != null) - message.name = String(object.name); - if (object.uri != null) - message.uri = String(object.uri); - if (object.gamSlate != null) { - if (typeof object.gamSlate !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.Slate.gamSlate: object expected"); - message.gamSlate = $root.google.cloud.video.stitcher.v1.Slate.GamSlate.fromObject(object.gamSlate); + var message = new $root.google.cloud.video.stitcher.v1.ManifestOptions(); + if (object.includeRenditions) { + if (!Array.isArray(object.includeRenditions)) + throw TypeError(".google.cloud.video.stitcher.v1.ManifestOptions.includeRenditions: array expected"); + message.includeRenditions = []; + for (var i = 0; i < object.includeRenditions.length; ++i) { + if (typeof object.includeRenditions[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.ManifestOptions.includeRenditions: object expected"); + message.includeRenditions[i] = $root.google.cloud.video.stitcher.v1.RenditionFilter.fromObject(object.includeRenditions[i]); + } + } + switch (object.bitrateOrder) { + default: + if (typeof object.bitrateOrder === "number") { + message.bitrateOrder = object.bitrateOrder; + break; + } + break; + case "ORDER_POLICY_UNSPECIFIED": + case 0: + message.bitrateOrder = 0; + break; + case "ASCENDING": + case 1: + message.bitrateOrder = 1; + break; + case "DESCENDING": + case 2: + message.bitrateOrder = 2; + break; } return message; }; /** - * Creates a plain object from a Slate message. Also converts values to other types if specified. + * Creates a plain object from a ManifestOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.Slate + * @memberof google.cloud.video.stitcher.v1.ManifestOptions * @static - * @param {google.cloud.video.stitcher.v1.Slate} message Slate + * @param {google.cloud.video.stitcher.v1.ManifestOptions} message ManifestOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Slate.toObject = function toObject(message, options) { + ManifestOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.uri = ""; - object.gamSlate = null; + if (options.arrays || options.defaults) + object.includeRenditions = []; + if (options.defaults) + object.bitrateOrder = options.enums === String ? "ORDER_POLICY_UNSPECIFIED" : 0; + if (message.includeRenditions && message.includeRenditions.length) { + object.includeRenditions = []; + for (var j = 0; j < message.includeRenditions.length; ++j) + object.includeRenditions[j] = $root.google.cloud.video.stitcher.v1.RenditionFilter.toObject(message.includeRenditions[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.uri != null && message.hasOwnProperty("uri")) - object.uri = message.uri; - if (message.gamSlate != null && message.hasOwnProperty("gamSlate")) - object.gamSlate = $root.google.cloud.video.stitcher.v1.Slate.GamSlate.toObject(message.gamSlate, options); + if (message.bitrateOrder != null && message.hasOwnProperty("bitrateOrder")) + object.bitrateOrder = options.enums === String ? $root.google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy[message.bitrateOrder] === undefined ? message.bitrateOrder : $root.google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy[message.bitrateOrder] : message.bitrateOrder; return object; }; /** - * Converts this Slate to JSON. + * Converts this ManifestOptions to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.Slate + * @memberof google.cloud.video.stitcher.v1.ManifestOptions * @instance * @returns {Object.} JSON object */ - Slate.prototype.toJSON = function toJSON() { + ManifestOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Slate + * Gets the default type url for ManifestOptions * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.Slate + * @memberof google.cloud.video.stitcher.v1.ManifestOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Slate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ManifestOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.Slate"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ManifestOptions"; }; - Slate.GamSlate = (function() { + /** + * OrderPolicy enum. + * @name google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy + * @enum {number} + * @property {number} ORDER_POLICY_UNSPECIFIED=0 ORDER_POLICY_UNSPECIFIED value + * @property {number} ASCENDING=1 ASCENDING value + * @property {number} DESCENDING=2 DESCENDING value + */ + ManifestOptions.OrderPolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ORDER_POLICY_UNSPECIFIED"] = 0; + values[valuesById[1] = "ASCENDING"] = 1; + values[valuesById[2] = "DESCENDING"] = 2; + return values; + })(); - /** - * Properties of a GamSlate. - * @memberof google.cloud.video.stitcher.v1.Slate - * @interface IGamSlate - * @property {string|null} [networkCode] GamSlate networkCode - * @property {number|Long|null} [gamSlateId] GamSlate gamSlateId - */ + return ManifestOptions; + })(); - /** - * Constructs a new GamSlate. - * @memberof google.cloud.video.stitcher.v1.Slate - * @classdesc Represents a GamSlate. - * @implements IGamSlate - * @constructor - * @param {google.cloud.video.stitcher.v1.Slate.IGamSlate=} [properties] Properties to set - */ - function GamSlate(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.RenditionFilter = (function() { - /** - * GamSlate networkCode. - * @member {string} networkCode - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @instance - */ - GamSlate.prototype.networkCode = ""; + /** + * Properties of a RenditionFilter. + * @memberof google.cloud.video.stitcher.v1 + * @interface IRenditionFilter + * @property {number|null} [bitrateBps] RenditionFilter bitrateBps + * @property {string|null} [codecs] RenditionFilter codecs + */ - /** - * GamSlate gamSlateId. - * @member {number|Long} gamSlateId - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @instance - */ - GamSlate.prototype.gamSlateId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Constructs a new RenditionFilter. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a RenditionFilter. + * @implements IRenditionFilter + * @constructor + * @param {google.cloud.video.stitcher.v1.IRenditionFilter=} [properties] Properties to set + */ + function RenditionFilter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new GamSlate instance using the specified properties. - * @function create - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @static - * @param {google.cloud.video.stitcher.v1.Slate.IGamSlate=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.Slate.GamSlate} GamSlate instance - */ - GamSlate.create = function create(properties) { - return new GamSlate(properties); - }; + /** + * RenditionFilter bitrateBps. + * @member {number} bitrateBps + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @instance + */ + RenditionFilter.prototype.bitrateBps = 0; - /** - * Encodes the specified GamSlate message. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.GamSlate.verify|verify} messages. - * @function encode - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @static - * @param {google.cloud.video.stitcher.v1.Slate.IGamSlate} message GamSlate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GamSlate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.networkCode != null && Object.hasOwnProperty.call(message, "networkCode")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.networkCode); - if (message.gamSlateId != null && Object.hasOwnProperty.call(message, "gamSlateId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.gamSlateId); - return writer; - }; + /** + * RenditionFilter codecs. + * @member {string} codecs + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @instance + */ + RenditionFilter.prototype.codecs = ""; - /** - * Encodes the specified GamSlate message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.GamSlate.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @static - * @param {google.cloud.video.stitcher.v1.Slate.IGamSlate} message GamSlate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GamSlate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new RenditionFilter instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @static + * @param {google.cloud.video.stitcher.v1.IRenditionFilter=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.RenditionFilter} RenditionFilter instance + */ + RenditionFilter.create = function create(properties) { + return new RenditionFilter(properties); + }; - /** - * Decodes a GamSlate message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.Slate.GamSlate} GamSlate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GamSlate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.Slate.GamSlate(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.networkCode = reader.string(); - break; - } - case 2: { - message.gamSlateId = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified RenditionFilter message. Does not implicitly {@link google.cloud.video.stitcher.v1.RenditionFilter.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @static + * @param {google.cloud.video.stitcher.v1.IRenditionFilter} message RenditionFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RenditionFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bitrateBps != null && Object.hasOwnProperty.call(message, "bitrateBps")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bitrateBps); + if (message.codecs != null && Object.hasOwnProperty.call(message, "codecs")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.codecs); + return writer; + }; + + /** + * Encodes the specified RenditionFilter message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.RenditionFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @static + * @param {google.cloud.video.stitcher.v1.IRenditionFilter} message RenditionFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RenditionFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RenditionFilter message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.RenditionFilter} RenditionFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RenditionFilter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.RenditionFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.bitrateBps = reader.int32(); + break; + } + case 2: { + message.codecs = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a GamSlate message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.Slate.GamSlate} GamSlate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GamSlate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a RenditionFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.RenditionFilter} RenditionFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RenditionFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a GamSlate message. - * @function verify - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GamSlate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.networkCode != null && message.hasOwnProperty("networkCode")) - if (!$util.isString(message.networkCode)) - return "networkCode: string expected"; - if (message.gamSlateId != null && message.hasOwnProperty("gamSlateId")) - if (!$util.isInteger(message.gamSlateId) && !(message.gamSlateId && $util.isInteger(message.gamSlateId.low) && $util.isInteger(message.gamSlateId.high))) - return "gamSlateId: integer|Long expected"; - return null; - }; + /** + * Verifies a RenditionFilter message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RenditionFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bitrateBps != null && message.hasOwnProperty("bitrateBps")) + if (!$util.isInteger(message.bitrateBps)) + return "bitrateBps: integer expected"; + if (message.codecs != null && message.hasOwnProperty("codecs")) + if (!$util.isString(message.codecs)) + return "codecs: string expected"; + return null; + }; + + /** + * Creates a RenditionFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.RenditionFilter} RenditionFilter + */ + RenditionFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.RenditionFilter) + return object; + var message = new $root.google.cloud.video.stitcher.v1.RenditionFilter(); + if (object.bitrateBps != null) + message.bitrateBps = object.bitrateBps | 0; + if (object.codecs != null) + message.codecs = String(object.codecs); + return message; + }; + + /** + * Creates a plain object from a RenditionFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @static + * @param {google.cloud.video.stitcher.v1.RenditionFilter} message RenditionFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RenditionFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.bitrateBps = 0; + object.codecs = ""; + } + if (message.bitrateBps != null && message.hasOwnProperty("bitrateBps")) + object.bitrateBps = message.bitrateBps; + if (message.codecs != null && message.hasOwnProperty("codecs")) + object.codecs = message.codecs; + return object; + }; + + /** + * Converts this RenditionFilter to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @instance + * @returns {Object.} JSON object + */ + RenditionFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RenditionFilter + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.RenditionFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RenditionFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.RenditionFilter"; + }; + + return RenditionFilter; + })(); + + v1.Slate = (function() { + + /** + * Properties of a Slate. + * @memberof google.cloud.video.stitcher.v1 + * @interface ISlate + * @property {string|null} [name] Slate name + * @property {string|null} [uri] Slate uri + * @property {google.cloud.video.stitcher.v1.Slate.IGamSlate|null} [gamSlate] Slate gamSlate + */ + + /** + * Constructs a new Slate. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a Slate. + * @implements ISlate + * @constructor + * @param {google.cloud.video.stitcher.v1.ISlate=} [properties] Properties to set + */ + function Slate(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Slate name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.Slate + * @instance + */ + Slate.prototype.name = ""; + + /** + * Slate uri. + * @member {string} uri + * @memberof google.cloud.video.stitcher.v1.Slate + * @instance + */ + Slate.prototype.uri = ""; + + /** + * Slate gamSlate. + * @member {google.cloud.video.stitcher.v1.Slate.IGamSlate|null|undefined} gamSlate + * @memberof google.cloud.video.stitcher.v1.Slate + * @instance + */ + Slate.prototype.gamSlate = null; + + /** + * Creates a new Slate instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.Slate + * @static + * @param {google.cloud.video.stitcher.v1.ISlate=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.Slate} Slate instance + */ + Slate.create = function create(properties) { + return new Slate(properties); + }; + + /** + * Encodes the specified Slate message. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.Slate + * @static + * @param {google.cloud.video.stitcher.v1.ISlate} message Slate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Slate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); + if (message.gamSlate != null && Object.hasOwnProperty.call(message, "gamSlate")) + $root.google.cloud.video.stitcher.v1.Slate.GamSlate.encode(message.gamSlate, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Slate message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.Slate + * @static + * @param {google.cloud.video.stitcher.v1.ISlate} message Slate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Slate.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Slate message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.Slate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.Slate} Slate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Slate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.Slate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.uri = reader.string(); + break; + } + case 3: { + message.gamSlate = $root.google.cloud.video.stitcher.v1.Slate.GamSlate.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Slate message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.Slate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.Slate} Slate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Slate.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Slate message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.Slate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Slate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.gamSlate != null && message.hasOwnProperty("gamSlate")) { + var error = $root.google.cloud.video.stitcher.v1.Slate.GamSlate.verify(message.gamSlate); + if (error) + return "gamSlate." + error; + } + return null; + }; + + /** + * Creates a Slate message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.Slate + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.Slate} Slate + */ + Slate.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.Slate) + return object; + var message = new $root.google.cloud.video.stitcher.v1.Slate(); + if (object.name != null) + message.name = String(object.name); + if (object.uri != null) + message.uri = String(object.uri); + if (object.gamSlate != null) { + if (typeof object.gamSlate !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.Slate.gamSlate: object expected"); + message.gamSlate = $root.google.cloud.video.stitcher.v1.Slate.GamSlate.fromObject(object.gamSlate); + } + return message; + }; + + /** + * Creates a plain object from a Slate message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.Slate + * @static + * @param {google.cloud.video.stitcher.v1.Slate} message Slate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Slate.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.uri = ""; + object.gamSlate = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + if (message.gamSlate != null && message.hasOwnProperty("gamSlate")) + object.gamSlate = $root.google.cloud.video.stitcher.v1.Slate.GamSlate.toObject(message.gamSlate, options); + return object; + }; + + /** + * Converts this Slate to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.Slate + * @instance + * @returns {Object.} JSON object + */ + Slate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Slate + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.Slate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Slate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.Slate"; + }; + + Slate.GamSlate = (function() { + + /** + * Properties of a GamSlate. + * @memberof google.cloud.video.stitcher.v1.Slate + * @interface IGamSlate + * @property {string|null} [networkCode] GamSlate networkCode + * @property {number|Long|null} [gamSlateId] GamSlate gamSlateId + */ + + /** + * Constructs a new GamSlate. + * @memberof google.cloud.video.stitcher.v1.Slate + * @classdesc Represents a GamSlate. + * @implements IGamSlate + * @constructor + * @param {google.cloud.video.stitcher.v1.Slate.IGamSlate=} [properties] Properties to set + */ + function GamSlate(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GamSlate networkCode. + * @member {string} networkCode + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @instance + */ + GamSlate.prototype.networkCode = ""; + + /** + * GamSlate gamSlateId. + * @member {number|Long} gamSlateId + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @instance + */ + GamSlate.prototype.gamSlateId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new GamSlate instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @static + * @param {google.cloud.video.stitcher.v1.Slate.IGamSlate=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.Slate.GamSlate} GamSlate instance + */ + GamSlate.create = function create(properties) { + return new GamSlate(properties); + }; + + /** + * Encodes the specified GamSlate message. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.GamSlate.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @static + * @param {google.cloud.video.stitcher.v1.Slate.IGamSlate} message GamSlate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GamSlate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.networkCode != null && Object.hasOwnProperty.call(message, "networkCode")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.networkCode); + if (message.gamSlateId != null && Object.hasOwnProperty.call(message, "gamSlateId")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.gamSlateId); + return writer; + }; + + /** + * Encodes the specified GamSlate message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.GamSlate.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @static + * @param {google.cloud.video.stitcher.v1.Slate.IGamSlate} message GamSlate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GamSlate.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GamSlate message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.Slate.GamSlate} GamSlate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GamSlate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.Slate.GamSlate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.networkCode = reader.string(); + break; + } + case 2: { + message.gamSlateId = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GamSlate message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.Slate.GamSlate} GamSlate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GamSlate.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GamSlate message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GamSlate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.networkCode != null && message.hasOwnProperty("networkCode")) + if (!$util.isString(message.networkCode)) + return "networkCode: string expected"; + if (message.gamSlateId != null && message.hasOwnProperty("gamSlateId")) + if (!$util.isInteger(message.gamSlateId) && !(message.gamSlateId && $util.isInteger(message.gamSlateId.low) && $util.isInteger(message.gamSlateId.high))) + return "gamSlateId: integer|Long expected"; + return null; + }; + + /** + * Creates a GamSlate message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.Slate.GamSlate} GamSlate + */ + GamSlate.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.Slate.GamSlate) + return object; + var message = new $root.google.cloud.video.stitcher.v1.Slate.GamSlate(); + if (object.networkCode != null) + message.networkCode = String(object.networkCode); + if (object.gamSlateId != null) + if ($util.Long) + (message.gamSlateId = $util.Long.fromValue(object.gamSlateId)).unsigned = false; + else if (typeof object.gamSlateId === "string") + message.gamSlateId = parseInt(object.gamSlateId, 10); + else if (typeof object.gamSlateId === "number") + message.gamSlateId = object.gamSlateId; + else if (typeof object.gamSlateId === "object") + message.gamSlateId = new $util.LongBits(object.gamSlateId.low >>> 0, object.gamSlateId.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a GamSlate message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @static + * @param {google.cloud.video.stitcher.v1.Slate.GamSlate} message GamSlate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GamSlate.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.networkCode = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.gamSlateId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.gamSlateId = options.longs === String ? "0" : 0; + } + if (message.networkCode != null && message.hasOwnProperty("networkCode")) + object.networkCode = message.networkCode; + if (message.gamSlateId != null && message.hasOwnProperty("gamSlateId")) + if (typeof message.gamSlateId === "number") + object.gamSlateId = options.longs === String ? String(message.gamSlateId) : message.gamSlateId; + else + object.gamSlateId = options.longs === String ? $util.Long.prototype.toString.call(message.gamSlateId) : options.longs === Number ? new $util.LongBits(message.gamSlateId.low >>> 0, message.gamSlateId.high >>> 0).toNumber() : message.gamSlateId; + return object; + }; + + /** + * Converts this GamSlate to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @instance + * @returns {Object.} JSON object + */ + GamSlate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GamSlate + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GamSlate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.Slate.GamSlate"; + }; + + return GamSlate; + })(); + + return Slate; + })(); + + v1.VodStitchDetail = (function() { + + /** + * Properties of a VodStitchDetail. + * @memberof google.cloud.video.stitcher.v1 + * @interface IVodStitchDetail + * @property {string|null} [name] VodStitchDetail name + * @property {Array.|null} [adStitchDetails] VodStitchDetail adStitchDetails + */ + + /** + * Constructs a new VodStitchDetail. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a VodStitchDetail. + * @implements IVodStitchDetail + * @constructor + * @param {google.cloud.video.stitcher.v1.IVodStitchDetail=} [properties] Properties to set + */ + function VodStitchDetail(properties) { + this.adStitchDetails = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VodStitchDetail name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @instance + */ + VodStitchDetail.prototype.name = ""; + + /** + * VodStitchDetail adStitchDetails. + * @member {Array.} adStitchDetails + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @instance + */ + VodStitchDetail.prototype.adStitchDetails = $util.emptyArray; + + /** + * Creates a new VodStitchDetail instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @static + * @param {google.cloud.video.stitcher.v1.IVodStitchDetail=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.VodStitchDetail} VodStitchDetail instance + */ + VodStitchDetail.create = function create(properties) { + return new VodStitchDetail(properties); + }; + + /** + * Encodes the specified VodStitchDetail message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodStitchDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @static + * @param {google.cloud.video.stitcher.v1.IVodStitchDetail} message VodStitchDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VodStitchDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.adStitchDetails != null && message.adStitchDetails.length) + for (var i = 0; i < message.adStitchDetails.length; ++i) + $root.google.cloud.video.stitcher.v1.AdStitchDetail.encode(message.adStitchDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VodStitchDetail message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodStitchDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @static + * @param {google.cloud.video.stitcher.v1.IVodStitchDetail} message VodStitchDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VodStitchDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VodStitchDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.VodStitchDetail} VodStitchDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VodStitchDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodStitchDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + if (!(message.adStitchDetails && message.adStitchDetails.length)) + message.adStitchDetails = []; + message.adStitchDetails.push($root.google.cloud.video.stitcher.v1.AdStitchDetail.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VodStitchDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.VodStitchDetail} VodStitchDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VodStitchDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VodStitchDetail message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VodStitchDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.adStitchDetails != null && message.hasOwnProperty("adStitchDetails")) { + if (!Array.isArray(message.adStitchDetails)) + return "adStitchDetails: array expected"; + for (var i = 0; i < message.adStitchDetails.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.AdStitchDetail.verify(message.adStitchDetails[i]); + if (error) + return "adStitchDetails." + error; + } + } + return null; + }; + + /** + * Creates a VodStitchDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.VodStitchDetail} VodStitchDetail + */ + VodStitchDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.VodStitchDetail) + return object; + var message = new $root.google.cloud.video.stitcher.v1.VodStitchDetail(); + if (object.name != null) + message.name = String(object.name); + if (object.adStitchDetails) { + if (!Array.isArray(object.adStitchDetails)) + throw TypeError(".google.cloud.video.stitcher.v1.VodStitchDetail.adStitchDetails: array expected"); + message.adStitchDetails = []; + for (var i = 0; i < object.adStitchDetails.length; ++i) { + if (typeof object.adStitchDetails[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodStitchDetail.adStitchDetails: object expected"); + message.adStitchDetails[i] = $root.google.cloud.video.stitcher.v1.AdStitchDetail.fromObject(object.adStitchDetails[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a VodStitchDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @static + * @param {google.cloud.video.stitcher.v1.VodStitchDetail} message VodStitchDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VodStitchDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.adStitchDetails = []; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.adStitchDetails && message.adStitchDetails.length) { + object.adStitchDetails = []; + for (var j = 0; j < message.adStitchDetails.length; ++j) + object.adStitchDetails[j] = $root.google.cloud.video.stitcher.v1.AdStitchDetail.toObject(message.adStitchDetails[j], options); + } + return object; + }; + + /** + * Converts this VodStitchDetail to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @instance + * @returns {Object.} JSON object + */ + VodStitchDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VodStitchDetail + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VodStitchDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodStitchDetail"; + }; + + return VodStitchDetail; + })(); + + v1.AdStitchDetail = (function() { + + /** + * Properties of an AdStitchDetail. + * @memberof google.cloud.video.stitcher.v1 + * @interface IAdStitchDetail + * @property {string|null} [adBreakId] AdStitchDetail adBreakId + * @property {string|null} [adId] AdStitchDetail adId + * @property {google.protobuf.IDuration|null} [adTimeOffset] AdStitchDetail adTimeOffset + * @property {string|null} [skipReason] AdStitchDetail skipReason + * @property {Object.|null} [media] AdStitchDetail media + */ + + /** + * Constructs a new AdStitchDetail. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents an AdStitchDetail. + * @implements IAdStitchDetail + * @constructor + * @param {google.cloud.video.stitcher.v1.IAdStitchDetail=} [properties] Properties to set + */ + function AdStitchDetail(properties) { + this.media = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AdStitchDetail adBreakId. + * @member {string} adBreakId + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @instance + */ + AdStitchDetail.prototype.adBreakId = ""; + + /** + * AdStitchDetail adId. + * @member {string} adId + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @instance + */ + AdStitchDetail.prototype.adId = ""; + + /** + * AdStitchDetail adTimeOffset. + * @member {google.protobuf.IDuration|null|undefined} adTimeOffset + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @instance + */ + AdStitchDetail.prototype.adTimeOffset = null; + + /** + * AdStitchDetail skipReason. + * @member {string} skipReason + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @instance + */ + AdStitchDetail.prototype.skipReason = ""; + + /** + * AdStitchDetail media. + * @member {Object.} media + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @instance + */ + AdStitchDetail.prototype.media = $util.emptyObject; + + /** + * Creates a new AdStitchDetail instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @static + * @param {google.cloud.video.stitcher.v1.IAdStitchDetail=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.AdStitchDetail} AdStitchDetail instance + */ + AdStitchDetail.create = function create(properties) { + return new AdStitchDetail(properties); + }; + + /** + * Encodes the specified AdStitchDetail message. Does not implicitly {@link google.cloud.video.stitcher.v1.AdStitchDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @static + * @param {google.cloud.video.stitcher.v1.IAdStitchDetail} message AdStitchDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AdStitchDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.adBreakId != null && Object.hasOwnProperty.call(message, "adBreakId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.adBreakId); + if (message.adId != null && Object.hasOwnProperty.call(message, "adId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.adId); + if (message.adTimeOffset != null && Object.hasOwnProperty.call(message, "adTimeOffset")) + $root.google.protobuf.Duration.encode(message.adTimeOffset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.skipReason != null && Object.hasOwnProperty.call(message, "skipReason")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.skipReason); + if (message.media != null && Object.hasOwnProperty.call(message, "media")) + for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified AdStitchDetail message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.AdStitchDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @static + * @param {google.cloud.video.stitcher.v1.IAdStitchDetail} message AdStitchDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AdStitchDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AdStitchDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.AdStitchDetail} AdStitchDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AdStitchDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.AdStitchDetail(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.adBreakId = reader.string(); + break; + } + case 2: { + message.adId = reader.string(); + break; + } + case 3: { + message.adTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 4: { + message.skipReason = reader.string(); + break; + } + case 5: { + if (message.media === $util.emptyObject) + message.media = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.media[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AdStitchDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.AdStitchDetail} AdStitchDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AdStitchDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AdStitchDetail message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AdStitchDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.adBreakId != null && message.hasOwnProperty("adBreakId")) + if (!$util.isString(message.adBreakId)) + return "adBreakId: string expected"; + if (message.adId != null && message.hasOwnProperty("adId")) + if (!$util.isString(message.adId)) + return "adId: string expected"; + if (message.adTimeOffset != null && message.hasOwnProperty("adTimeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.adTimeOffset); + if (error) + return "adTimeOffset." + error; + } + if (message.skipReason != null && message.hasOwnProperty("skipReason")) + if (!$util.isString(message.skipReason)) + return "skipReason: string expected"; + if (message.media != null && message.hasOwnProperty("media")) { + if (!$util.isObject(message.media)) + return "media: object expected"; + var key = Object.keys(message.media); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.media[key[i]]); + if (error) + return "media." + error; + } + } + return null; + }; + + /** + * Creates an AdStitchDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.AdStitchDetail} AdStitchDetail + */ + AdStitchDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.AdStitchDetail) + return object; + var message = new $root.google.cloud.video.stitcher.v1.AdStitchDetail(); + if (object.adBreakId != null) + message.adBreakId = String(object.adBreakId); + if (object.adId != null) + message.adId = String(object.adId); + if (object.adTimeOffset != null) { + if (typeof object.adTimeOffset !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.AdStitchDetail.adTimeOffset: object expected"); + message.adTimeOffset = $root.google.protobuf.Duration.fromObject(object.adTimeOffset); + } + if (object.skipReason != null) + message.skipReason = String(object.skipReason); + if (object.media) { + if (typeof object.media !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.AdStitchDetail.media: object expected"); + message.media = {}; + for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) { + if (typeof object.media[keys[i]] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.AdStitchDetail.media: object expected"); + message.media[keys[i]] = $root.google.protobuf.Value.fromObject(object.media[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from an AdStitchDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @static + * @param {google.cloud.video.stitcher.v1.AdStitchDetail} message AdStitchDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AdStitchDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.media = {}; + if (options.defaults) { + object.adBreakId = ""; + object.adId = ""; + object.adTimeOffset = null; + object.skipReason = ""; + } + if (message.adBreakId != null && message.hasOwnProperty("adBreakId")) + object.adBreakId = message.adBreakId; + if (message.adId != null && message.hasOwnProperty("adId")) + object.adId = message.adId; + if (message.adTimeOffset != null && message.hasOwnProperty("adTimeOffset")) + object.adTimeOffset = $root.google.protobuf.Duration.toObject(message.adTimeOffset, options); + if (message.skipReason != null && message.hasOwnProperty("skipReason")) + object.skipReason = message.skipReason; + var keys2; + if (message.media && (keys2 = Object.keys(message.media)).length) { + object.media = {}; + for (var j = 0; j < keys2.length; ++j) + object.media[keys2[j]] = $root.google.protobuf.Value.toObject(message.media[keys2[j]], options); + } + return object; + }; + + /** + * Converts this AdStitchDetail to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @instance + * @returns {Object.} JSON object + */ + AdStitchDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AdStitchDetail + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AdStitchDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.AdStitchDetail"; + }; + + return AdStitchDetail; + })(); + + v1.VideoStitcherService = (function() { + + /** + * Constructs a new VideoStitcherService service. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a VideoStitcherService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function VideoStitcherService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (VideoStitcherService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = VideoStitcherService; + + /** + * Creates new VideoStitcherService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {VideoStitcherService} RPC service. Useful where requests and/or responses are streamed. + */ + VideoStitcherService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createCdnKey}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef CreateCdnKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateCdnKey. + * @function createCdnKey + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest} request CreateCdnKeyRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.CreateCdnKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.createCdnKey = function createCdnKey(request, callback) { + return this.rpcCall(createCdnKey, $root.google.cloud.video.stitcher.v1.CreateCdnKeyRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateCdnKey" }); + + /** + * Calls CreateCdnKey. + * @function createCdnKey + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest} request CreateCdnKeyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listCdnKeys}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef ListCdnKeysCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.ListCdnKeysResponse} [response] ListCdnKeysResponse + */ + + /** + * Calls ListCdnKeys. + * @function listCdnKeys + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest} request ListCdnKeysRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListCdnKeysCallback} callback Node-style callback called with the error, if any, and ListCdnKeysResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.listCdnKeys = function listCdnKeys(request, callback) { + return this.rpcCall(listCdnKeys, $root.google.cloud.video.stitcher.v1.ListCdnKeysRequest, $root.google.cloud.video.stitcher.v1.ListCdnKeysResponse, request, callback); + }, "name", { value: "ListCdnKeys" }); + + /** + * Calls ListCdnKeys. + * @function listCdnKeys + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest} request ListCdnKeysRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getCdnKey}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef GetCdnKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.CdnKey} [response] CdnKey + */ + + /** + * Calls GetCdnKey. + * @function getCdnKey + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest} request GetCdnKeyRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetCdnKeyCallback} callback Node-style callback called with the error, if any, and CdnKey + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.getCdnKey = function getCdnKey(request, callback) { + return this.rpcCall(getCdnKey, $root.google.cloud.video.stitcher.v1.GetCdnKeyRequest, $root.google.cloud.video.stitcher.v1.CdnKey, request, callback); + }, "name", { value: "GetCdnKey" }); + + /** + * Calls GetCdnKey. + * @function getCdnKey + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest} request GetCdnKeyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteCdnKey}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef DeleteCdnKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteCdnKey. + * @function deleteCdnKey + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest} request DeleteCdnKeyRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.DeleteCdnKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.deleteCdnKey = function deleteCdnKey(request, callback) { + return this.rpcCall(deleteCdnKey, $root.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteCdnKey" }); + + /** + * Calls DeleteCdnKey. + * @function deleteCdnKey + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest} request DeleteCdnKeyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|updateCdnKey}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef UpdateCdnKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateCdnKey. + * @function updateCdnKey + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest} request UpdateCdnKeyRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.UpdateCdnKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.updateCdnKey = function updateCdnKey(request, callback) { + return this.rpcCall(updateCdnKey, $root.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateCdnKey" }); + + /** + * Calls UpdateCdnKey. + * @function updateCdnKey + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest} request UpdateCdnKeyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createVodSession}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef CreateVodSessionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.VodSession} [response] VodSession + */ + + /** + * Calls CreateVodSession. + * @function createVodSession + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest} request CreateVodSessionRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.CreateVodSessionCallback} callback Node-style callback called with the error, if any, and VodSession + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.createVodSession = function createVodSession(request, callback) { + return this.rpcCall(createVodSession, $root.google.cloud.video.stitcher.v1.CreateVodSessionRequest, $root.google.cloud.video.stitcher.v1.VodSession, request, callback); + }, "name", { value: "CreateVodSession" }); + + /** + * Calls CreateVodSession. + * @function createVodSession + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest} request CreateVodSessionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getVodSession}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef GetVodSessionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.VodSession} [response] VodSession + */ + + /** + * Calls GetVodSession. + * @function getVodSession + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest} request GetVodSessionRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetVodSessionCallback} callback Node-style callback called with the error, if any, and VodSession + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.getVodSession = function getVodSession(request, callback) { + return this.rpcCall(getVodSession, $root.google.cloud.video.stitcher.v1.GetVodSessionRequest, $root.google.cloud.video.stitcher.v1.VodSession, request, callback); + }, "name", { value: "GetVodSession" }); + + /** + * Calls GetVodSession. + * @function getVodSession + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest} request GetVodSessionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listVodStitchDetails}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef ListVodStitchDetailsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} [response] ListVodStitchDetailsResponse + */ + + /** + * Calls ListVodStitchDetails. + * @function listVodStitchDetails + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest} request ListVodStitchDetailsRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListVodStitchDetailsCallback} callback Node-style callback called with the error, if any, and ListVodStitchDetailsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.listVodStitchDetails = function listVodStitchDetails(request, callback) { + return this.rpcCall(listVodStitchDetails, $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest, $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse, request, callback); + }, "name", { value: "ListVodStitchDetails" }); + + /** + * Calls ListVodStitchDetails. + * @function listVodStitchDetails + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest} request ListVodStitchDetailsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getVodStitchDetail}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef GetVodStitchDetailCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.VodStitchDetail} [response] VodStitchDetail + */ + + /** + * Calls GetVodStitchDetail. + * @function getVodStitchDetail + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest} request GetVodStitchDetailRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetVodStitchDetailCallback} callback Node-style callback called with the error, if any, and VodStitchDetail + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.getVodStitchDetail = function getVodStitchDetail(request, callback) { + return this.rpcCall(getVodStitchDetail, $root.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest, $root.google.cloud.video.stitcher.v1.VodStitchDetail, request, callback); + }, "name", { value: "GetVodStitchDetail" }); + + /** + * Calls GetVodStitchDetail. + * @function getVodStitchDetail + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest} request GetVodStitchDetailRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listVodAdTagDetails}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef ListVodAdTagDetailsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} [response] ListVodAdTagDetailsResponse + */ + + /** + * Calls ListVodAdTagDetails. + * @function listVodAdTagDetails + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest} request ListVodAdTagDetailsRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListVodAdTagDetailsCallback} callback Node-style callback called with the error, if any, and ListVodAdTagDetailsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.listVodAdTagDetails = function listVodAdTagDetails(request, callback) { + return this.rpcCall(listVodAdTagDetails, $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest, $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse, request, callback); + }, "name", { value: "ListVodAdTagDetails" }); + + /** + * Calls ListVodAdTagDetails. + * @function listVodAdTagDetails + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest} request ListVodAdTagDetailsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getVodAdTagDetail}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef GetVodAdTagDetailCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.VodAdTagDetail} [response] VodAdTagDetail + */ + + /** + * Calls GetVodAdTagDetail. + * @function getVodAdTagDetail + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest} request GetVodAdTagDetailRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetVodAdTagDetailCallback} callback Node-style callback called with the error, if any, and VodAdTagDetail + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.getVodAdTagDetail = function getVodAdTagDetail(request, callback) { + return this.rpcCall(getVodAdTagDetail, $root.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest, $root.google.cloud.video.stitcher.v1.VodAdTagDetail, request, callback); + }, "name", { value: "GetVodAdTagDetail" }); + + /** + * Calls GetVodAdTagDetail. + * @function getVodAdTagDetail + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest} request GetVodAdTagDetailRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listLiveAdTagDetails}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef ListLiveAdTagDetailsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} [response] ListLiveAdTagDetailsResponse + */ + + /** + * Calls ListLiveAdTagDetails. + * @function listLiveAdTagDetails + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest} request ListLiveAdTagDetailsRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListLiveAdTagDetailsCallback} callback Node-style callback called with the error, if any, and ListLiveAdTagDetailsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.listLiveAdTagDetails = function listLiveAdTagDetails(request, callback) { + return this.rpcCall(listLiveAdTagDetails, $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest, $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse, request, callback); + }, "name", { value: "ListLiveAdTagDetails" }); + + /** + * Calls ListLiveAdTagDetails. + * @function listLiveAdTagDetails + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest} request ListLiveAdTagDetailsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getLiveAdTagDetail}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef GetLiveAdTagDetailCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.LiveAdTagDetail} [response] LiveAdTagDetail + */ + + /** + * Calls GetLiveAdTagDetail. + * @function getLiveAdTagDetail + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest} request GetLiveAdTagDetailRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveAdTagDetailCallback} callback Node-style callback called with the error, if any, and LiveAdTagDetail + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.getLiveAdTagDetail = function getLiveAdTagDetail(request, callback) { + return this.rpcCall(getLiveAdTagDetail, $root.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest, $root.google.cloud.video.stitcher.v1.LiveAdTagDetail, request, callback); + }, "name", { value: "GetLiveAdTagDetail" }); + + /** + * Calls GetLiveAdTagDetail. + * @function getLiveAdTagDetail + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest} request GetLiveAdTagDetailRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createSlate}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef CreateSlateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateSlate. + * @function createSlate + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest} request CreateSlateRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.CreateSlateCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.createSlate = function createSlate(request, callback) { + return this.rpcCall(createSlate, $root.google.cloud.video.stitcher.v1.CreateSlateRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateSlate" }); + + /** + * Calls CreateSlate. + * @function createSlate + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest} request CreateSlateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listSlates}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef ListSlatesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.ListSlatesResponse} [response] ListSlatesResponse + */ + + /** + * Calls ListSlates. + * @function listSlates + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListSlatesRequest} request ListSlatesRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListSlatesCallback} callback Node-style callback called with the error, if any, and ListSlatesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.listSlates = function listSlates(request, callback) { + return this.rpcCall(listSlates, $root.google.cloud.video.stitcher.v1.ListSlatesRequest, $root.google.cloud.video.stitcher.v1.ListSlatesResponse, request, callback); + }, "name", { value: "ListSlates" }); + + /** + * Calls ListSlates. + * @function listSlates + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListSlatesRequest} request ListSlatesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getSlate}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef GetSlateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.Slate} [response] Slate + */ + + /** + * Calls GetSlate. + * @function getSlate + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetSlateRequest} request GetSlateRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetSlateCallback} callback Node-style callback called with the error, if any, and Slate + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.getSlate = function getSlate(request, callback) { + return this.rpcCall(getSlate, $root.google.cloud.video.stitcher.v1.GetSlateRequest, $root.google.cloud.video.stitcher.v1.Slate, request, callback); + }, "name", { value: "GetSlate" }); + + /** + * Calls GetSlate. + * @function getSlate + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetSlateRequest} request GetSlateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|updateSlate}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef UpdateSlateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateSlate. + * @function updateSlate + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest} request UpdateSlateRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.UpdateSlateCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.updateSlate = function updateSlate(request, callback) { + return this.rpcCall(updateSlate, $root.google.cloud.video.stitcher.v1.UpdateSlateRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateSlate" }); + + /** + * Calls UpdateSlate. + * @function updateSlate + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest} request UpdateSlateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteSlate}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef DeleteSlateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteSlate. + * @function deleteSlate + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest} request DeleteSlateRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.DeleteSlateCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.deleteSlate = function deleteSlate(request, callback) { + return this.rpcCall(deleteSlate, $root.google.cloud.video.stitcher.v1.DeleteSlateRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteSlate" }); + + /** + * Calls DeleteSlate. + * @function deleteSlate + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest} request DeleteSlateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createLiveSession}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef CreateLiveSessionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.LiveSession} [response] LiveSession + */ + + /** + * Calls CreateLiveSession. + * @function createLiveSession + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest} request CreateLiveSessionRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.CreateLiveSessionCallback} callback Node-style callback called with the error, if any, and LiveSession + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.createLiveSession = function createLiveSession(request, callback) { + return this.rpcCall(createLiveSession, $root.google.cloud.video.stitcher.v1.CreateLiveSessionRequest, $root.google.cloud.video.stitcher.v1.LiveSession, request, callback); + }, "name", { value: "CreateLiveSession" }); + + /** + * Calls CreateLiveSession. + * @function createLiveSession + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest} request CreateLiveSessionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getLiveSession}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef GetLiveSessionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.LiveSession} [response] LiveSession + */ + + /** + * Calls GetLiveSession. + * @function getLiveSession + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest} request GetLiveSessionRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveSessionCallback} callback Node-style callback called with the error, if any, and LiveSession + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.getLiveSession = function getLiveSession(request, callback) { + return this.rpcCall(getLiveSession, $root.google.cloud.video.stitcher.v1.GetLiveSessionRequest, $root.google.cloud.video.stitcher.v1.LiveSession, request, callback); + }, "name", { value: "GetLiveSession" }); + + /** + * Calls GetLiveSession. + * @function getLiveSession + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest} request GetLiveSessionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createLiveConfig}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef CreateLiveConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateLiveConfig. + * @function createLiveConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest} request CreateLiveConfigRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.CreateLiveConfigCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.createLiveConfig = function createLiveConfig(request, callback) { + return this.rpcCall(createLiveConfig, $root.google.cloud.video.stitcher.v1.CreateLiveConfigRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateLiveConfig" }); + + /** + * Calls CreateLiveConfig. + * @function createLiveConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest} request CreateLiveConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listLiveConfigs}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef ListLiveConfigsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} [response] ListLiveConfigsResponse + */ + + /** + * Calls ListLiveConfigs. + * @function listLiveConfigs + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest} request ListLiveConfigsRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListLiveConfigsCallback} callback Node-style callback called with the error, if any, and ListLiveConfigsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.listLiveConfigs = function listLiveConfigs(request, callback) { + return this.rpcCall(listLiveConfigs, $root.google.cloud.video.stitcher.v1.ListLiveConfigsRequest, $root.google.cloud.video.stitcher.v1.ListLiveConfigsResponse, request, callback); + }, "name", { value: "ListLiveConfigs" }); + + /** + * Calls ListLiveConfigs. + * @function listLiveConfigs + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest} request ListLiveConfigsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getLiveConfig}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef GetLiveConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.LiveConfig} [response] LiveConfig + */ + + /** + * Calls GetLiveConfig. + * @function getLiveConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest} request GetLiveConfigRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveConfigCallback} callback Node-style callback called with the error, if any, and LiveConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.getLiveConfig = function getLiveConfig(request, callback) { + return this.rpcCall(getLiveConfig, $root.google.cloud.video.stitcher.v1.GetLiveConfigRequest, $root.google.cloud.video.stitcher.v1.LiveConfig, request, callback); + }, "name", { value: "GetLiveConfig" }); + + /** + * Calls GetLiveConfig. + * @function getLiveConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest} request GetLiveConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteLiveConfig}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef DeleteLiveConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteLiveConfig. + * @function deleteLiveConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest} request DeleteLiveConfigRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.DeleteLiveConfigCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.deleteLiveConfig = function deleteLiveConfig(request, callback) { + return this.rpcCall(deleteLiveConfig, $root.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteLiveConfig" }); + + /** + * Calls DeleteLiveConfig. + * @function deleteLiveConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest} request DeleteLiveConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|updateLiveConfig}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef UpdateLiveConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateLiveConfig. + * @function updateLiveConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest} request UpdateLiveConfigRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.UpdateLiveConfigCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.updateLiveConfig = function updateLiveConfig(request, callback) { + return this.rpcCall(updateLiveConfig, $root.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateLiveConfig" }); + + /** + * Calls UpdateLiveConfig. + * @function updateLiveConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest} request UpdateLiveConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createVodConfig}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef CreateVodConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateVodConfig. + * @function createVodConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateVodConfigRequest} request CreateVodConfigRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.CreateVodConfigCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.createVodConfig = function createVodConfig(request, callback) { + return this.rpcCall(createVodConfig, $root.google.cloud.video.stitcher.v1.CreateVodConfigRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateVodConfig" }); + + /** + * Calls CreateVodConfig. + * @function createVodConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.ICreateVodConfigRequest} request CreateVodConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listVodConfigs}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef ListVodConfigsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.ListVodConfigsResponse} [response] ListVodConfigsResponse + */ + + /** + * Calls ListVodConfigs. + * @function listVodConfigs + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListVodConfigsRequest} request ListVodConfigsRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListVodConfigsCallback} callback Node-style callback called with the error, if any, and ListVodConfigsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.listVodConfigs = function listVodConfigs(request, callback) { + return this.rpcCall(listVodConfigs, $root.google.cloud.video.stitcher.v1.ListVodConfigsRequest, $root.google.cloud.video.stitcher.v1.ListVodConfigsResponse, request, callback); + }, "name", { value: "ListVodConfigs" }); + + /** + * Calls ListVodConfigs. + * @function listVodConfigs + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IListVodConfigsRequest} request ListVodConfigsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getVodConfig}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef GetVodConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.video.stitcher.v1.VodConfig} [response] VodConfig + */ + + /** + * Calls GetVodConfig. + * @function getVodConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetVodConfigRequest} request GetVodConfigRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetVodConfigCallback} callback Node-style callback called with the error, if any, and VodConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.getVodConfig = function getVodConfig(request, callback) { + return this.rpcCall(getVodConfig, $root.google.cloud.video.stitcher.v1.GetVodConfigRequest, $root.google.cloud.video.stitcher.v1.VodConfig, request, callback); + }, "name", { value: "GetVodConfig" }); + + /** + * Calls GetVodConfig. + * @function getVodConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IGetVodConfigRequest} request GetVodConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteVodConfig}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef DeleteVodConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteVodConfig. + * @function deleteVodConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IDeleteVodConfigRequest} request DeleteVodConfigRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.DeleteVodConfigCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.deleteVodConfig = function deleteVodConfig(request, callback) { + return this.rpcCall(deleteVodConfig, $root.google.cloud.video.stitcher.v1.DeleteVodConfigRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteVodConfig" }); + + /** + * Calls DeleteVodConfig. + * @function deleteVodConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IDeleteVodConfigRequest} request DeleteVodConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|updateVodConfig}. + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @typedef UpdateVodConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateVodConfig. + * @function updateVodConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IUpdateVodConfigRequest} request UpdateVodConfigRequest message or plain object + * @param {google.cloud.video.stitcher.v1.VideoStitcherService.UpdateVodConfigCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VideoStitcherService.prototype.updateVodConfig = function updateVodConfig(request, callback) { + return this.rpcCall(updateVodConfig, $root.google.cloud.video.stitcher.v1.UpdateVodConfigRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateVodConfig" }); + + /** + * Calls UpdateVodConfig. + * @function updateVodConfig + * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * @instance + * @param {google.cloud.video.stitcher.v1.IUpdateVodConfigRequest} request UpdateVodConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return VideoStitcherService; + })(); + + v1.CreateCdnKeyRequest = (function() { + + /** + * Properties of a CreateCdnKeyRequest. + * @memberof google.cloud.video.stitcher.v1 + * @interface ICreateCdnKeyRequest + * @property {string|null} [parent] CreateCdnKeyRequest parent + * @property {google.cloud.video.stitcher.v1.ICdnKey|null} [cdnKey] CreateCdnKeyRequest cdnKey + * @property {string|null} [cdnKeyId] CreateCdnKeyRequest cdnKeyId + */ + + /** + * Constructs a new CreateCdnKeyRequest. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a CreateCdnKeyRequest. + * @implements ICreateCdnKeyRequest + * @constructor + * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest=} [properties] Properties to set + */ + function CreateCdnKeyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateCdnKeyRequest parent. + * @member {string} parent + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @instance + */ + CreateCdnKeyRequest.prototype.parent = ""; + + /** + * CreateCdnKeyRequest cdnKey. + * @member {google.cloud.video.stitcher.v1.ICdnKey|null|undefined} cdnKey + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @instance + */ + CreateCdnKeyRequest.prototype.cdnKey = null; + + /** + * CreateCdnKeyRequest cdnKeyId. + * @member {string} cdnKeyId + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @instance + */ + CreateCdnKeyRequest.prototype.cdnKeyId = ""; + + /** + * Creates a new CreateCdnKeyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} CreateCdnKeyRequest instance + */ + CreateCdnKeyRequest.create = function create(properties) { + return new CreateCdnKeyRequest(properties); + }; + + /** + * Encodes the specified CreateCdnKeyRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateCdnKeyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest} message CreateCdnKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCdnKeyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.cdnKey != null && Object.hasOwnProperty.call(message, "cdnKey")) + $root.google.cloud.video.stitcher.v1.CdnKey.encode(message.cdnKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.cdnKeyId != null && Object.hasOwnProperty.call(message, "cdnKeyId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cdnKeyId); + return writer; + }; + + /** + * Encodes the specified CreateCdnKeyRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateCdnKeyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest} message CreateCdnKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateCdnKeyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} CreateCdnKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCdnKeyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.CreateCdnKeyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.decode(reader, reader.uint32()); + break; + } + case 3: { + message.cdnKeyId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateCdnKeyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} CreateCdnKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateCdnKeyRequest message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateCdnKeyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.cdnKey != null && message.hasOwnProperty("cdnKey")) { + var error = $root.google.cloud.video.stitcher.v1.CdnKey.verify(message.cdnKey); + if (error) + return "cdnKey." + error; + } + if (message.cdnKeyId != null && message.hasOwnProperty("cdnKeyId")) + if (!$util.isString(message.cdnKeyId)) + return "cdnKeyId: string expected"; + return null; + }; + + /** + * Creates a CreateCdnKeyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} CreateCdnKeyRequest + */ + CreateCdnKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.CreateCdnKeyRequest) + return object; + var message = new $root.google.cloud.video.stitcher.v1.CreateCdnKeyRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.cdnKey != null) { + if (typeof object.cdnKey !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.CreateCdnKeyRequest.cdnKey: object expected"); + message.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.fromObject(object.cdnKey); + } + if (object.cdnKeyId != null) + message.cdnKeyId = String(object.cdnKeyId); + return message; + }; + + /** + * Creates a plain object from a CreateCdnKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} message CreateCdnKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateCdnKeyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.cdnKey = null; + object.cdnKeyId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.cdnKey != null && message.hasOwnProperty("cdnKey")) + object.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.toObject(message.cdnKey, options); + if (message.cdnKeyId != null && message.hasOwnProperty("cdnKeyId")) + object.cdnKeyId = message.cdnKeyId; + return object; + }; + + /** + * Converts this CreateCdnKeyRequest to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @instance + * @returns {Object.} JSON object + */ + CreateCdnKeyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateCdnKeyRequest + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateCdnKeyRequest"; + }; + + return CreateCdnKeyRequest; + })(); + + v1.ListCdnKeysRequest = (function() { + + /** + * Properties of a ListCdnKeysRequest. + * @memberof google.cloud.video.stitcher.v1 + * @interface IListCdnKeysRequest + * @property {string|null} [parent] ListCdnKeysRequest parent + * @property {number|null} [pageSize] ListCdnKeysRequest pageSize + * @property {string|null} [pageToken] ListCdnKeysRequest pageToken + * @property {string|null} [filter] ListCdnKeysRequest filter + * @property {string|null} [orderBy] ListCdnKeysRequest orderBy + */ + + /** + * Constructs a new ListCdnKeysRequest. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a ListCdnKeysRequest. + * @implements IListCdnKeysRequest + * @constructor + * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest=} [properties] Properties to set + */ + function ListCdnKeysRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListCdnKeysRequest parent. + * @member {string} parent + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @instance + */ + ListCdnKeysRequest.prototype.parent = ""; + + /** + * ListCdnKeysRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @instance + */ + ListCdnKeysRequest.prototype.pageSize = 0; + + /** + * ListCdnKeysRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @instance + */ + ListCdnKeysRequest.prototype.pageToken = ""; + + /** + * ListCdnKeysRequest filter. + * @member {string} filter + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @instance + */ + ListCdnKeysRequest.prototype.filter = ""; + + /** + * ListCdnKeysRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @instance + */ + ListCdnKeysRequest.prototype.orderBy = ""; + + /** + * Creates a new ListCdnKeysRequest instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @static + * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListCdnKeysRequest} ListCdnKeysRequest instance + */ + ListCdnKeysRequest.create = function create(properties) { + return new ListCdnKeysRequest(properties); + }; + + /** + * Encodes the specified ListCdnKeysRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListCdnKeysRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @static + * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest} message ListCdnKeysRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCdnKeysRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListCdnKeysRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListCdnKeysRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @static + * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest} message ListCdnKeysRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCdnKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCdnKeysRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.ListCdnKeysRequest} ListCdnKeysRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCdnKeysRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListCdnKeysRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a GamSlate message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.Slate.GamSlate} GamSlate - */ - GamSlate.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.Slate.GamSlate) - return object; - var message = new $root.google.cloud.video.stitcher.v1.Slate.GamSlate(); - if (object.networkCode != null) - message.networkCode = String(object.networkCode); - if (object.gamSlateId != null) - if ($util.Long) - (message.gamSlateId = $util.Long.fromValue(object.gamSlateId)).unsigned = false; - else if (typeof object.gamSlateId === "string") - message.gamSlateId = parseInt(object.gamSlateId, 10); - else if (typeof object.gamSlateId === "number") - message.gamSlateId = object.gamSlateId; - else if (typeof object.gamSlateId === "object") - message.gamSlateId = new $util.LongBits(object.gamSlateId.low >>> 0, object.gamSlateId.high >>> 0).toNumber(); - return message; - }; + /** + * Decodes a ListCdnKeysRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.ListCdnKeysRequest} ListCdnKeysRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCdnKeysRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a GamSlate message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @static - * @param {google.cloud.video.stitcher.v1.Slate.GamSlate} message GamSlate - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GamSlate.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.networkCode = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.gamSlateId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.gamSlateId = options.longs === String ? "0" : 0; - } - if (message.networkCode != null && message.hasOwnProperty("networkCode")) - object.networkCode = message.networkCode; - if (message.gamSlateId != null && message.hasOwnProperty("gamSlateId")) - if (typeof message.gamSlateId === "number") - object.gamSlateId = options.longs === String ? String(message.gamSlateId) : message.gamSlateId; - else - object.gamSlateId = options.longs === String ? $util.Long.prototype.toString.call(message.gamSlateId) : options.longs === Number ? new $util.LongBits(message.gamSlateId.low >>> 0, message.gamSlateId.high >>> 0).toNumber() : message.gamSlateId; + /** + * Verifies a ListCdnKeysRequest message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCdnKeysRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; + + /** + * Creates a ListCdnKeysRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.ListCdnKeysRequest} ListCdnKeysRequest + */ + ListCdnKeysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListCdnKeysRequest) return object; - }; + var message = new $root.google.cloud.video.stitcher.v1.ListCdnKeysRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; - /** - * Converts this GamSlate to JSON. - * @function toJSON - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @instance - * @returns {Object.} JSON object - */ - GamSlate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListCdnKeysRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @static + * @param {google.cloud.video.stitcher.v1.ListCdnKeysRequest} message ListCdnKeysRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCdnKeysRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; - /** - * Gets the default type url for GamSlate - * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.Slate.GamSlate - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GamSlate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.Slate.GamSlate"; - }; + /** + * Converts this ListCdnKeysRequest to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @instance + * @returns {Object.} JSON object + */ + ListCdnKeysRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return GamSlate; - })(); + /** + * Gets the default type url for ListCdnKeysRequest + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListCdnKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListCdnKeysRequest"; + }; - return Slate; + return ListCdnKeysRequest; })(); - v1.VodStitchDetail = (function() { + v1.ListCdnKeysResponse = (function() { /** - * Properties of a VodStitchDetail. + * Properties of a ListCdnKeysResponse. * @memberof google.cloud.video.stitcher.v1 - * @interface IVodStitchDetail - * @property {string|null} [name] VodStitchDetail name - * @property {Array.|null} [adStitchDetails] VodStitchDetail adStitchDetails + * @interface IListCdnKeysResponse + * @property {Array.|null} [cdnKeys] ListCdnKeysResponse cdnKeys + * @property {string|null} [nextPageToken] ListCdnKeysResponse nextPageToken + * @property {Array.|null} [unreachable] ListCdnKeysResponse unreachable */ /** - * Constructs a new VodStitchDetail. + * Constructs a new ListCdnKeysResponse. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a VodStitchDetail. - * @implements IVodStitchDetail + * @classdesc Represents a ListCdnKeysResponse. + * @implements IListCdnKeysResponse * @constructor - * @param {google.cloud.video.stitcher.v1.IVodStitchDetail=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse=} [properties] Properties to set */ - function VodStitchDetail(properties) { - this.adStitchDetails = []; + function ListCdnKeysResponse(properties) { + this.cdnKeys = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8974,92 +11770,109 @@ } /** - * VodStitchDetail name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * ListCdnKeysResponse cdnKeys. + * @member {Array.} cdnKeys + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @instance */ - VodStitchDetail.prototype.name = ""; + ListCdnKeysResponse.prototype.cdnKeys = $util.emptyArray; /** - * VodStitchDetail adStitchDetails. - * @member {Array.} adStitchDetails - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * ListCdnKeysResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * @instance + */ + ListCdnKeysResponse.prototype.nextPageToken = ""; + + /** + * ListCdnKeysResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @instance */ - VodStitchDetail.prototype.adStitchDetails = $util.emptyArray; + ListCdnKeysResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new VodStitchDetail instance using the specified properties. + * Creates a new ListCdnKeysResponse instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @static - * @param {google.cloud.video.stitcher.v1.IVodStitchDetail=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.VodStitchDetail} VodStitchDetail instance + * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse instance */ - VodStitchDetail.create = function create(properties) { - return new VodStitchDetail(properties); + ListCdnKeysResponse.create = function create(properties) { + return new ListCdnKeysResponse(properties); }; /** - * Encodes the specified VodStitchDetail message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodStitchDetail.verify|verify} messages. + * Encodes the specified ListCdnKeysResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListCdnKeysResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @static - * @param {google.cloud.video.stitcher.v1.IVodStitchDetail} message VodStitchDetail message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse} message ListCdnKeysResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VodStitchDetail.encode = function encode(message, writer) { + ListCdnKeysResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.adStitchDetails != null && message.adStitchDetails.length) - for (var i = 0; i < message.adStitchDetails.length; ++i) - $root.google.cloud.video.stitcher.v1.AdStitchDetail.encode(message.adStitchDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.cdnKeys != null && message.cdnKeys.length) + for (var i = 0; i < message.cdnKeys.length; ++i) + $root.google.cloud.video.stitcher.v1.CdnKey.encode(message.cdnKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified VodStitchDetail message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodStitchDetail.verify|verify} messages. + * Encodes the specified ListCdnKeysResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListCdnKeysResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @static - * @param {google.cloud.video.stitcher.v1.IVodStitchDetail} message VodStitchDetail message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse} message ListCdnKeysResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VodStitchDetail.encodeDelimited = function encodeDelimited(message, writer) { + ListCdnKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VodStitchDetail message from the specified reader or buffer. + * Decodes a ListCdnKeysResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.VodStitchDetail} VodStitchDetail + * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VodStitchDetail.decode = function decode(reader, length) { + ListCdnKeysResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodStitchDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListCdnKeysResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.cdnKeys && message.cdnKeys.length)) + message.cdnKeys = []; + message.cdnKeys.push($root.google.cloud.video.stitcher.v1.CdnKey.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } case 3: { - if (!(message.adStitchDetails && message.adStitchDetails.length)) - message.adStitchDetails = []; - message.adStitchDetails.push($root.google.cloud.video.stitcher.v1.AdStitchDetail.decode(reader, reader.uint32())); + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -9071,307 +11884,245 @@ }; /** - * Decodes a VodStitchDetail message from the specified reader or buffer, length delimited. + * Decodes a ListCdnKeysResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.VodStitchDetail} VodStitchDetail + * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VodStitchDetail.decodeDelimited = function decodeDelimited(reader) { + ListCdnKeysResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VodStitchDetail message. + * Verifies a ListCdnKeysResponse message. * @function verify - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VodStitchDetail.verify = function verify(message) { + ListCdnKeysResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.adStitchDetails != null && message.hasOwnProperty("adStitchDetails")) { - if (!Array.isArray(message.adStitchDetails)) - return "adStitchDetails: array expected"; - for (var i = 0; i < message.adStitchDetails.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.AdStitchDetail.verify(message.adStitchDetails[i]); + if (message.cdnKeys != null && message.hasOwnProperty("cdnKeys")) { + if (!Array.isArray(message.cdnKeys)) + return "cdnKeys: array expected"; + for (var i = 0; i < message.cdnKeys.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.CdnKey.verify(message.cdnKeys[i]); if (error) - return "adStitchDetails." + error; + return "cdnKeys." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates a VodStitchDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListCdnKeysResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.VodStitchDetail} VodStitchDetail + * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse */ - VodStitchDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.VodStitchDetail) + ListCdnKeysResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListCdnKeysResponse) return object; - var message = new $root.google.cloud.video.stitcher.v1.VodStitchDetail(); - if (object.name != null) - message.name = String(object.name); - if (object.adStitchDetails) { - if (!Array.isArray(object.adStitchDetails)) - throw TypeError(".google.cloud.video.stitcher.v1.VodStitchDetail.adStitchDetails: array expected"); - message.adStitchDetails = []; - for (var i = 0; i < object.adStitchDetails.length; ++i) { - if (typeof object.adStitchDetails[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.VodStitchDetail.adStitchDetails: object expected"); - message.adStitchDetails[i] = $root.google.cloud.video.stitcher.v1.AdStitchDetail.fromObject(object.adStitchDetails[i]); + var message = new $root.google.cloud.video.stitcher.v1.ListCdnKeysResponse(); + if (object.cdnKeys) { + if (!Array.isArray(object.cdnKeys)) + throw TypeError(".google.cloud.video.stitcher.v1.ListCdnKeysResponse.cdnKeys: array expected"); + message.cdnKeys = []; + for (var i = 0; i < object.cdnKeys.length; ++i) { + if (typeof object.cdnKeys[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.ListCdnKeysResponse.cdnKeys: object expected"); + message.cdnKeys[i] = $root.google.cloud.video.stitcher.v1.CdnKey.fromObject(object.cdnKeys[i]); } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.video.stitcher.v1.ListCdnKeysResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a VodStitchDetail message. Also converts values to other types if specified. + * Creates a plain object from a ListCdnKeysResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @static - * @param {google.cloud.video.stitcher.v1.VodStitchDetail} message VodStitchDetail + * @param {google.cloud.video.stitcher.v1.ListCdnKeysResponse} message ListCdnKeysResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VodStitchDetail.toObject = function toObject(message, options) { + ListCdnKeysResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.adStitchDetails = []; + if (options.arrays || options.defaults) { + object.cdnKeys = []; + object.unreachable = []; + } if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.adStitchDetails && message.adStitchDetails.length) { - object.adStitchDetails = []; - for (var j = 0; j < message.adStitchDetails.length; ++j) - object.adStitchDetails[j] = $root.google.cloud.video.stitcher.v1.AdStitchDetail.toObject(message.adStitchDetails[j], options); + object.nextPageToken = ""; + if (message.cdnKeys && message.cdnKeys.length) { + object.cdnKeys = []; + for (var j = 0; j < message.cdnKeys.length; ++j) + object.cdnKeys[j] = $root.google.cloud.video.stitcher.v1.CdnKey.toObject(message.cdnKeys[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } return object; }; /** - * Converts this VodStitchDetail to JSON. + * Converts this ListCdnKeysResponse to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @instance * @returns {Object.} JSON object */ - VodStitchDetail.prototype.toJSON = function toJSON() { + ListCdnKeysResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VodStitchDetail + * Gets the default type url for ListCdnKeysResponse * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.VodStitchDetail + * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VodStitchDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCdnKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodStitchDetail"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListCdnKeysResponse"; }; - return VodStitchDetail; + return ListCdnKeysResponse; })(); - v1.AdStitchDetail = (function() { + v1.GetCdnKeyRequest = (function() { /** - * Properties of an AdStitchDetail. + * Properties of a GetCdnKeyRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IAdStitchDetail - * @property {string|null} [adBreakId] AdStitchDetail adBreakId - * @property {string|null} [adId] AdStitchDetail adId - * @property {google.protobuf.IDuration|null} [adTimeOffset] AdStitchDetail adTimeOffset - * @property {string|null} [skipReason] AdStitchDetail skipReason - * @property {Object.|null} [media] AdStitchDetail media + * @interface IGetCdnKeyRequest + * @property {string|null} [name] GetCdnKeyRequest name */ /** - * Constructs a new AdStitchDetail. + * Constructs a new GetCdnKeyRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents an AdStitchDetail. - * @implements IAdStitchDetail + * @classdesc Represents a GetCdnKeyRequest. + * @implements IGetCdnKeyRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IAdStitchDetail=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest=} [properties] Properties to set */ - function AdStitchDetail(properties) { - this.media = {}; + function GetCdnKeyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - /** - * AdStitchDetail adBreakId. - * @member {string} adBreakId - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail - * @instance - */ - AdStitchDetail.prototype.adBreakId = ""; - - /** - * AdStitchDetail adId. - * @member {string} adId - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail - * @instance - */ - AdStitchDetail.prototype.adId = ""; - - /** - * AdStitchDetail adTimeOffset. - * @member {google.protobuf.IDuration|null|undefined} adTimeOffset - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail - * @instance - */ - AdStitchDetail.prototype.adTimeOffset = null; - - /** - * AdStitchDetail skipReason. - * @member {string} skipReason - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail - * @instance - */ - AdStitchDetail.prototype.skipReason = ""; - - /** - * AdStitchDetail media. - * @member {Object.} media - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + /** + * GetCdnKeyRequest name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest * @instance */ - AdStitchDetail.prototype.media = $util.emptyObject; + GetCdnKeyRequest.prototype.name = ""; /** - * Creates a new AdStitchDetail instance using the specified properties. + * Creates a new GetCdnKeyRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest * @static - * @param {google.cloud.video.stitcher.v1.IAdStitchDetail=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.AdStitchDetail} AdStitchDetail instance + * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.GetCdnKeyRequest} GetCdnKeyRequest instance */ - AdStitchDetail.create = function create(properties) { - return new AdStitchDetail(properties); + GetCdnKeyRequest.create = function create(properties) { + return new GetCdnKeyRequest(properties); }; /** - * Encodes the specified AdStitchDetail message. Does not implicitly {@link google.cloud.video.stitcher.v1.AdStitchDetail.verify|verify} messages. + * Encodes the specified GetCdnKeyRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetCdnKeyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest * @static - * @param {google.cloud.video.stitcher.v1.IAdStitchDetail} message AdStitchDetail message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest} message GetCdnKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdStitchDetail.encode = function encode(message, writer) { + GetCdnKeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.adBreakId != null && Object.hasOwnProperty.call(message, "adBreakId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.adBreakId); - if (message.adId != null && Object.hasOwnProperty.call(message, "adId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.adId); - if (message.adTimeOffset != null && Object.hasOwnProperty.call(message, "adTimeOffset")) - $root.google.protobuf.Duration.encode(message.adTimeOffset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.skipReason != null && Object.hasOwnProperty.call(message, "skipReason")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.skipReason); - if (message.media != null && Object.hasOwnProperty.call(message, "media")) - for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified AdStitchDetail message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.AdStitchDetail.verify|verify} messages. + * Encodes the specified GetCdnKeyRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetCdnKeyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest * @static - * @param {google.cloud.video.stitcher.v1.IAdStitchDetail} message AdStitchDetail message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest} message GetCdnKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdStitchDetail.encodeDelimited = function encodeDelimited(message, writer) { + GetCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AdStitchDetail message from the specified reader or buffer. + * Decodes a GetCdnKeyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.AdStitchDetail} AdStitchDetail + * @returns {google.cloud.video.stitcher.v1.GetCdnKeyRequest} GetCdnKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdStitchDetail.decode = function decode(reader, length) { + GetCdnKeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.AdStitchDetail(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetCdnKeyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.adBreakId = reader.string(); - break; - } - case 2: { - message.adId = reader.string(); - break; - } - case 3: { - message.adTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 4: { - message.skipReason = reader.string(); - break; - } - case 5: { - if (message.media === $util.emptyObject) - message.media = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.media[key] = value; + message.name = reader.string(); break; } default: @@ -9383,1009 +12134,1249 @@ }; /** - * Decodes an AdStitchDetail message from the specified reader or buffer, length delimited. + * Decodes a GetCdnKeyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.AdStitchDetail} AdStitchDetail + * @returns {google.cloud.video.stitcher.v1.GetCdnKeyRequest} GetCdnKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdStitchDetail.decodeDelimited = function decodeDelimited(reader) { + GetCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AdStitchDetail message. + * Verifies a GetCdnKeyRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdStitchDetail.verify = function verify(message) { + GetCdnKeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.adBreakId != null && message.hasOwnProperty("adBreakId")) - if (!$util.isString(message.adBreakId)) - return "adBreakId: string expected"; - if (message.adId != null && message.hasOwnProperty("adId")) - if (!$util.isString(message.adId)) - return "adId: string expected"; - if (message.adTimeOffset != null && message.hasOwnProperty("adTimeOffset")) { - var error = $root.google.protobuf.Duration.verify(message.adTimeOffset); - if (error) - return "adTimeOffset." + error; - } - if (message.skipReason != null && message.hasOwnProperty("skipReason")) - if (!$util.isString(message.skipReason)) - return "skipReason: string expected"; - if (message.media != null && message.hasOwnProperty("media")) { - if (!$util.isObject(message.media)) - return "media: object expected"; - var key = Object.keys(message.media); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.media[key[i]]); - if (error) - return "media." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an AdStitchDetail message from a plain object. Also converts values to their respective internal types. + * Creates a GetCdnKeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.AdStitchDetail} AdStitchDetail + * @returns {google.cloud.video.stitcher.v1.GetCdnKeyRequest} GetCdnKeyRequest */ - AdStitchDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.AdStitchDetail) + GetCdnKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.GetCdnKeyRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.AdStitchDetail(); - if (object.adBreakId != null) - message.adBreakId = String(object.adBreakId); - if (object.adId != null) - message.adId = String(object.adId); - if (object.adTimeOffset != null) { - if (typeof object.adTimeOffset !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.AdStitchDetail.adTimeOffset: object expected"); - message.adTimeOffset = $root.google.protobuf.Duration.fromObject(object.adTimeOffset); - } - if (object.skipReason != null) - message.skipReason = String(object.skipReason); - if (object.media) { - if (typeof object.media !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.AdStitchDetail.media: object expected"); - message.media = {}; - for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) { - if (typeof object.media[keys[i]] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.AdStitchDetail.media: object expected"); - message.media[keys[i]] = $root.google.protobuf.Value.fromObject(object.media[keys[i]]); - } - } + var message = new $root.google.cloud.video.stitcher.v1.GetCdnKeyRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an AdStitchDetail message. Also converts values to other types if specified. + * Creates a plain object from a GetCdnKeyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest * @static - * @param {google.cloud.video.stitcher.v1.AdStitchDetail} message AdStitchDetail + * @param {google.cloud.video.stitcher.v1.GetCdnKeyRequest} message GetCdnKeyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdStitchDetail.toObject = function toObject(message, options) { + GetCdnKeyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.media = {}; - if (options.defaults) { - object.adBreakId = ""; - object.adId = ""; - object.adTimeOffset = null; - object.skipReason = ""; - } - if (message.adBreakId != null && message.hasOwnProperty("adBreakId")) - object.adBreakId = message.adBreakId; - if (message.adId != null && message.hasOwnProperty("adId")) - object.adId = message.adId; - if (message.adTimeOffset != null && message.hasOwnProperty("adTimeOffset")) - object.adTimeOffset = $root.google.protobuf.Duration.toObject(message.adTimeOffset, options); - if (message.skipReason != null && message.hasOwnProperty("skipReason")) - object.skipReason = message.skipReason; - var keys2; - if (message.media && (keys2 = Object.keys(message.media)).length) { - object.media = {}; - for (var j = 0; j < keys2.length; ++j) - object.media[keys2[j]] = $root.google.protobuf.Value.toObject(message.media[keys2[j]], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this AdStitchDetail to JSON. + * Converts this GetCdnKeyRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest * @instance * @returns {Object.} JSON object */ - AdStitchDetail.prototype.toJSON = function toJSON() { + GetCdnKeyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AdStitchDetail + * Gets the default type url for GetCdnKeyRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.AdStitchDetail + * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AdStitchDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.AdStitchDetail"; - }; - - return AdStitchDetail; - })(); - - v1.VideoStitcherService = (function() { - - /** - * Constructs a new VideoStitcherService service. - * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a VideoStitcherService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function VideoStitcherService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (VideoStitcherService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = VideoStitcherService; - - /** - * Creates new VideoStitcherService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {VideoStitcherService} RPC service. Useful where requests and/or responses are streamed. - */ - VideoStitcherService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetCdnKeyRequest"; }; + return GetCdnKeyRequest; + })(); + + v1.DeleteCdnKeyRequest = (function() { + /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createCdnKey}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef CreateCdnKeyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Properties of a DeleteCdnKeyRequest. + * @memberof google.cloud.video.stitcher.v1 + * @interface IDeleteCdnKeyRequest + * @property {string|null} [name] DeleteCdnKeyRequest name */ /** - * Calls CreateCdnKey. - * @function createCdnKey - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest} request CreateCdnKeyRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.CreateCdnKeyCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Constructs a new DeleteCdnKeyRequest. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a DeleteCdnKeyRequest. + * @implements IDeleteCdnKeyRequest + * @constructor + * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest=} [properties] Properties to set */ - Object.defineProperty(VideoStitcherService.prototype.createCdnKey = function createCdnKey(request, callback) { - return this.rpcCall(createCdnKey, $root.google.cloud.video.stitcher.v1.CreateCdnKeyRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateCdnKey" }); + function DeleteCdnKeyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CreateCdnKey. - * @function createCdnKey - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * DeleteCdnKeyRequest name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest * @instance - * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest} request CreateCdnKeyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + DeleteCdnKeyRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listCdnKeys}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef ListCdnKeysCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.ListCdnKeysResponse} [response] ListCdnKeysResponse + * Creates a new DeleteCdnKeyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} DeleteCdnKeyRequest instance */ + DeleteCdnKeyRequest.create = function create(properties) { + return new DeleteCdnKeyRequest(properties); + }; /** - * Calls ListCdnKeys. - * @function listCdnKeys - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest} request ListCdnKeysRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListCdnKeysCallback} callback Node-style callback called with the error, if any, and ListCdnKeysResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified DeleteCdnKeyRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteCdnKeyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest} message DeleteCdnKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(VideoStitcherService.prototype.listCdnKeys = function listCdnKeys(request, callback) { - return this.rpcCall(listCdnKeys, $root.google.cloud.video.stitcher.v1.ListCdnKeysRequest, $root.google.cloud.video.stitcher.v1.ListCdnKeysResponse, request, callback); - }, "name", { value: "ListCdnKeys" }); + DeleteCdnKeyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls ListCdnKeys. - * @function listCdnKeys - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest} request ListCdnKeysRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified DeleteCdnKeyRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteCdnKeyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest} message DeleteCdnKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + DeleteCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getCdnKey}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef GetCdnKeyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.CdnKey} [response] CdnKey + * Decodes a DeleteCdnKeyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} DeleteCdnKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteCdnKeyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls GetCdnKey. - * @function getCdnKey - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest} request GetCdnKeyRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetCdnKeyCallback} callback Node-style callback called with the error, if any, and CdnKey - * @returns {undefined} - * @variation 1 + * Decodes a DeleteCdnKeyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} DeleteCdnKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(VideoStitcherService.prototype.getCdnKey = function getCdnKey(request, callback) { - return this.rpcCall(getCdnKey, $root.google.cloud.video.stitcher.v1.GetCdnKeyRequest, $root.google.cloud.video.stitcher.v1.CdnKey, request, callback); - }, "name", { value: "GetCdnKey" }); + DeleteCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetCdnKey. - * @function getCdnKey - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest} request GetCdnKeyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a DeleteCdnKeyRequest message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + DeleteCdnKeyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteCdnKey}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef DeleteCdnKeyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a DeleteCdnKeyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} DeleteCdnKeyRequest */ + DeleteCdnKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest) + return object; + var message = new $root.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Calls DeleteCdnKey. - * @function deleteCdnKey - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest} request DeleteCdnKeyRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.DeleteCdnKeyCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a plain object from a DeleteCdnKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} message DeleteCdnKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(VideoStitcherService.prototype.deleteCdnKey = function deleteCdnKey(request, callback) { - return this.rpcCall(deleteCdnKey, $root.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteCdnKey" }); + DeleteCdnKeyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls DeleteCdnKey. - * @function deleteCdnKey - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * Converts this DeleteCdnKeyRequest to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest * @instance - * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest} request DeleteCdnKeyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|updateCdnKey}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef UpdateCdnKeyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @returns {Object.} JSON object */ + DeleteCdnKeyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls UpdateCdnKey. - * @function updateCdnKey - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest} request UpdateCdnKeyRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.UpdateCdnKeyCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Gets the default type url for DeleteCdnKeyRequest + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - Object.defineProperty(VideoStitcherService.prototype.updateCdnKey = function updateCdnKey(request, callback) { - return this.rpcCall(updateCdnKey, $root.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateCdnKey" }); + DeleteCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.DeleteCdnKeyRequest"; + }; + + return DeleteCdnKeyRequest; + })(); + + v1.UpdateCdnKeyRequest = (function() { /** - * Calls UpdateCdnKey. - * @function updateCdnKey - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest} request UpdateCdnKeyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of an UpdateCdnKeyRequest. + * @memberof google.cloud.video.stitcher.v1 + * @interface IUpdateCdnKeyRequest + * @property {google.cloud.video.stitcher.v1.ICdnKey|null} [cdnKey] UpdateCdnKeyRequest cdnKey + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCdnKeyRequest updateMask */ /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createVodSession}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef CreateVodSessionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.VodSession} [response] VodSession + * Constructs a new UpdateCdnKeyRequest. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents an UpdateCdnKeyRequest. + * @implements IUpdateCdnKeyRequest + * @constructor + * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest=} [properties] Properties to set */ + function UpdateCdnKeyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CreateVodSession. - * @function createVodSession - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * UpdateCdnKeyRequest cdnKey. + * @member {google.cloud.video.stitcher.v1.ICdnKey|null|undefined} cdnKey + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest * @instance - * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest} request CreateVodSessionRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.CreateVodSessionCallback} callback Node-style callback called with the error, if any, and VodSession - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(VideoStitcherService.prototype.createVodSession = function createVodSession(request, callback) { - return this.rpcCall(createVodSession, $root.google.cloud.video.stitcher.v1.CreateVodSessionRequest, $root.google.cloud.video.stitcher.v1.VodSession, request, callback); - }, "name", { value: "CreateVodSession" }); + UpdateCdnKeyRequest.prototype.cdnKey = null; /** - * Calls CreateVodSession. - * @function createVodSession - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * UpdateCdnKeyRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest * @instance - * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest} request CreateVodSessionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + UpdateCdnKeyRequest.prototype.updateMask = null; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getVodSession}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef GetVodSessionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.VodSession} [response] VodSession + * Creates a new UpdateCdnKeyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} UpdateCdnKeyRequest instance */ + UpdateCdnKeyRequest.create = function create(properties) { + return new UpdateCdnKeyRequest(properties); + }; /** - * Calls GetVodSession. - * @function getVodSession - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest} request GetVodSessionRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetVodSessionCallback} callback Node-style callback called with the error, if any, and VodSession - * @returns {undefined} - * @variation 1 + * Encodes the specified UpdateCdnKeyRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateCdnKeyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest} message UpdateCdnKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(VideoStitcherService.prototype.getVodSession = function getVodSession(request, callback) { - return this.rpcCall(getVodSession, $root.google.cloud.video.stitcher.v1.GetVodSessionRequest, $root.google.cloud.video.stitcher.v1.VodSession, request, callback); - }, "name", { value: "GetVodSession" }); + UpdateCdnKeyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cdnKey != null && Object.hasOwnProperty.call(message, "cdnKey")) + $root.google.cloud.video.stitcher.v1.CdnKey.encode(message.cdnKey, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls GetVodSession. - * @function getVodSession - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest} request GetVodSessionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified UpdateCdnKeyRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateCdnKeyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest} message UpdateCdnKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + UpdateCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listVodStitchDetails}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef ListVodStitchDetailsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} [response] ListVodStitchDetailsResponse + * Decodes an UpdateCdnKeyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} UpdateCdnKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + UpdateCdnKeyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListVodStitchDetails. - * @function listVodStitchDetails - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest} request ListVodStitchDetailsRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListVodStitchDetailsCallback} callback Node-style callback called with the error, if any, and ListVodStitchDetailsResponse - * @returns {undefined} - * @variation 1 + * Decodes an UpdateCdnKeyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} UpdateCdnKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(VideoStitcherService.prototype.listVodStitchDetails = function listVodStitchDetails(request, callback) { - return this.rpcCall(listVodStitchDetails, $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest, $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse, request, callback); - }, "name", { value: "ListVodStitchDetails" }); + UpdateCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListVodStitchDetails. - * @function listVodStitchDetails - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest} request ListVodStitchDetailsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an UpdateCdnKeyRequest message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + UpdateCdnKeyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cdnKey != null && message.hasOwnProperty("cdnKey")) { + var error = $root.google.cloud.video.stitcher.v1.CdnKey.verify(message.cdnKey); + if (error) + return "cdnKey." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getVodStitchDetail}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef GetVodStitchDetailCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.VodStitchDetail} [response] VodStitchDetail + * Creates an UpdateCdnKeyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} UpdateCdnKeyRequest */ + UpdateCdnKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest) + return object; + var message = new $root.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest(); + if (object.cdnKey != null) { + if (typeof object.cdnKey !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.UpdateCdnKeyRequest.cdnKey: object expected"); + message.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.fromObject(object.cdnKey); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.UpdateCdnKeyRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; /** - * Calls GetVodStitchDetail. - * @function getVodStitchDetail - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest} request GetVodStitchDetailRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetVodStitchDetailCallback} callback Node-style callback called with the error, if any, and VodStitchDetail - * @returns {undefined} - * @variation 1 + * Creates a plain object from an UpdateCdnKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @static + * @param {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} message UpdateCdnKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(VideoStitcherService.prototype.getVodStitchDetail = function getVodStitchDetail(request, callback) { - return this.rpcCall(getVodStitchDetail, $root.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest, $root.google.cloud.video.stitcher.v1.VodStitchDetail, request, callback); - }, "name", { value: "GetVodStitchDetail" }); + UpdateCdnKeyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cdnKey = null; + object.updateMask = null; + } + if (message.cdnKey != null && message.hasOwnProperty("cdnKey")) + object.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.toObject(message.cdnKey, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; /** - * Calls GetVodStitchDetail. - * @function getVodStitchDetail - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * Converts this UpdateCdnKeyRequest to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest * @instance - * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest} request GetVodStitchDetailRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + UpdateCdnKeyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listVodAdTagDetails}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef ListVodAdTagDetailsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} [response] ListVodAdTagDetailsResponse + * Gets the default type url for UpdateCdnKeyRequest + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + UpdateCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.UpdateCdnKeyRequest"; + }; - /** - * Calls ListVodAdTagDetails. - * @function listVodAdTagDetails - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest} request ListVodAdTagDetailsRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListVodAdTagDetailsCallback} callback Node-style callback called with the error, if any, and ListVodAdTagDetailsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(VideoStitcherService.prototype.listVodAdTagDetails = function listVodAdTagDetails(request, callback) { - return this.rpcCall(listVodAdTagDetails, $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest, $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse, request, callback); - }, "name", { value: "ListVodAdTagDetails" }); + return UpdateCdnKeyRequest; + })(); + + v1.CreateVodSessionRequest = (function() { /** - * Calls ListVodAdTagDetails. - * @function listVodAdTagDetails - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest} request ListVodAdTagDetailsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a CreateVodSessionRequest. + * @memberof google.cloud.video.stitcher.v1 + * @interface ICreateVodSessionRequest + * @property {string|null} [parent] CreateVodSessionRequest parent + * @property {google.cloud.video.stitcher.v1.IVodSession|null} [vodSession] CreateVodSessionRequest vodSession */ /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getVodAdTagDetail}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef GetVodAdTagDetailCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.VodAdTagDetail} [response] VodAdTagDetail + * Constructs a new CreateVodSessionRequest. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a CreateVodSessionRequest. + * @implements ICreateVodSessionRequest + * @constructor + * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest=} [properties] Properties to set */ + function CreateVodSessionRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls GetVodAdTagDetail. - * @function getVodAdTagDetail - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * CreateVodSessionRequest parent. + * @member {string} parent + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest * @instance - * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest} request GetVodAdTagDetailRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetVodAdTagDetailCallback} callback Node-style callback called with the error, if any, and VodAdTagDetail - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(VideoStitcherService.prototype.getVodAdTagDetail = function getVodAdTagDetail(request, callback) { - return this.rpcCall(getVodAdTagDetail, $root.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest, $root.google.cloud.video.stitcher.v1.VodAdTagDetail, request, callback); - }, "name", { value: "GetVodAdTagDetail" }); + CreateVodSessionRequest.prototype.parent = ""; /** - * Calls GetVodAdTagDetail. - * @function getVodAdTagDetail - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * CreateVodSessionRequest vodSession. + * @member {google.cloud.video.stitcher.v1.IVodSession|null|undefined} vodSession + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest * @instance - * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest} request GetVodAdTagDetailRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CreateVodSessionRequest.prototype.vodSession = null; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listLiveAdTagDetails}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef ListLiveAdTagDetailsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} [response] ListLiveAdTagDetailsResponse + * Creates a new CreateVodSessionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @static + * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.CreateVodSessionRequest} CreateVodSessionRequest instance */ + CreateVodSessionRequest.create = function create(properties) { + return new CreateVodSessionRequest(properties); + }; /** - * Calls ListLiveAdTagDetails. - * @function listLiveAdTagDetails - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest} request ListLiveAdTagDetailsRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListLiveAdTagDetailsCallback} callback Node-style callback called with the error, if any, and ListLiveAdTagDetailsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateVodSessionRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateVodSessionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @static + * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest} message CreateVodSessionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(VideoStitcherService.prototype.listLiveAdTagDetails = function listLiveAdTagDetails(request, callback) { - return this.rpcCall(listLiveAdTagDetails, $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest, $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse, request, callback); - }, "name", { value: "ListLiveAdTagDetails" }); + CreateVodSessionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.vodSession != null && Object.hasOwnProperty.call(message, "vodSession")) + $root.google.cloud.video.stitcher.v1.VodSession.encode(message.vodSession, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls ListLiveAdTagDetails. - * @function listLiveAdTagDetails - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest} request ListLiveAdTagDetailsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified CreateVodSessionRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateVodSessionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @static + * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest} message CreateVodSessionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateVodSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getLiveAdTagDetail}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef GetLiveAdTagDetailCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.LiveAdTagDetail} [response] LiveAdTagDetail + * Decodes a CreateVodSessionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.CreateVodSessionRequest} CreateVodSessionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateVodSessionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.CreateVodSessionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.vodSession = $root.google.cloud.video.stitcher.v1.VodSession.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls GetLiveAdTagDetail. - * @function getLiveAdTagDetail - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest} request GetLiveAdTagDetailRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveAdTagDetailCallback} callback Node-style callback called with the error, if any, and LiveAdTagDetail - * @returns {undefined} - * @variation 1 + * Decodes a CreateVodSessionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.CreateVodSessionRequest} CreateVodSessionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(VideoStitcherService.prototype.getLiveAdTagDetail = function getLiveAdTagDetail(request, callback) { - return this.rpcCall(getLiveAdTagDetail, $root.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest, $root.google.cloud.video.stitcher.v1.LiveAdTagDetail, request, callback); - }, "name", { value: "GetLiveAdTagDetail" }); + CreateVodSessionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetLiveAdTagDetail. - * @function getLiveAdTagDetail - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest} request GetLiveAdTagDetailRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a CreateVodSessionRequest message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + CreateVodSessionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.vodSession != null && message.hasOwnProperty("vodSession")) { + var error = $root.google.cloud.video.stitcher.v1.VodSession.verify(message.vodSession); + if (error) + return "vodSession." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createSlate}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef CreateSlateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a CreateVodSessionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.CreateVodSessionRequest} CreateVodSessionRequest */ + CreateVodSessionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.CreateVodSessionRequest) + return object; + var message = new $root.google.cloud.video.stitcher.v1.CreateVodSessionRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.vodSession != null) { + if (typeof object.vodSession !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.CreateVodSessionRequest.vodSession: object expected"); + message.vodSession = $root.google.cloud.video.stitcher.v1.VodSession.fromObject(object.vodSession); + } + return message; + }; /** - * Calls CreateSlate. - * @function createSlate - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest} request CreateSlateRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.CreateSlateCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a plain object from a CreateVodSessionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @static + * @param {google.cloud.video.stitcher.v1.CreateVodSessionRequest} message CreateVodSessionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(VideoStitcherService.prototype.createSlate = function createSlate(request, callback) { - return this.rpcCall(createSlate, $root.google.cloud.video.stitcher.v1.CreateSlateRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateSlate" }); + CreateVodSessionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.vodSession = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.vodSession != null && message.hasOwnProperty("vodSession")) + object.vodSession = $root.google.cloud.video.stitcher.v1.VodSession.toObject(message.vodSession, options); + return object; + }; /** - * Calls CreateSlate. - * @function createSlate - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * Converts this CreateVodSessionRequest to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest * @instance - * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest} request CreateSlateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + CreateVodSessionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listSlates}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef ListSlatesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.ListSlatesResponse} [response] ListSlatesResponse + * Gets the default type url for CreateVodSessionRequest + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CreateVodSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateVodSessionRequest"; + }; - /** - * Calls ListSlates. - * @function listSlates - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListSlatesRequest} request ListSlatesRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListSlatesCallback} callback Node-style callback called with the error, if any, and ListSlatesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(VideoStitcherService.prototype.listSlates = function listSlates(request, callback) { - return this.rpcCall(listSlates, $root.google.cloud.video.stitcher.v1.ListSlatesRequest, $root.google.cloud.video.stitcher.v1.ListSlatesResponse, request, callback); - }, "name", { value: "ListSlates" }); + return CreateVodSessionRequest; + })(); + + v1.GetVodSessionRequest = (function() { /** - * Calls ListSlates. - * @function listSlates - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListSlatesRequest} request ListSlatesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a GetVodSessionRequest. + * @memberof google.cloud.video.stitcher.v1 + * @interface IGetVodSessionRequest + * @property {string|null} [name] GetVodSessionRequest name */ /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getSlate}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef GetSlateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.Slate} [response] Slate + * Constructs a new GetVodSessionRequest. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a GetVodSessionRequest. + * @implements IGetVodSessionRequest + * @constructor + * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest=} [properties] Properties to set */ + function GetVodSessionRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls GetSlate. - * @function getSlate - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * GetVodSessionRequest name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest * @instance - * @param {google.cloud.video.stitcher.v1.IGetSlateRequest} request GetSlateRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetSlateCallback} callback Node-style callback called with the error, if any, and Slate - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(VideoStitcherService.prototype.getSlate = function getSlate(request, callback) { - return this.rpcCall(getSlate, $root.google.cloud.video.stitcher.v1.GetSlateRequest, $root.google.cloud.video.stitcher.v1.Slate, request, callback); - }, "name", { value: "GetSlate" }); + GetVodSessionRequest.prototype.name = ""; /** - * Calls GetSlate. - * @function getSlate - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetSlateRequest} request GetSlateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new GetVodSessionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @static + * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.GetVodSessionRequest} GetVodSessionRequest instance */ + GetVodSessionRequest.create = function create(properties) { + return new GetVodSessionRequest(properties); + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|updateSlate}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef UpdateSlateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified GetVodSessionRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodSessionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @static + * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest} message GetVodSessionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + GetVodSessionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls UpdateSlate. - * @function updateSlate - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest} request UpdateSlateRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.UpdateSlateCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified GetVodSessionRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodSessionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @static + * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest} message GetVodSessionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(VideoStitcherService.prototype.updateSlate = function updateSlate(request, callback) { - return this.rpcCall(updateSlate, $root.google.cloud.video.stitcher.v1.UpdateSlateRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateSlate" }); + GetVodSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls UpdateSlate. - * @function updateSlate - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest} request UpdateSlateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a GetVodSessionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.GetVodSessionRequest} GetVodSessionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetVodSessionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetVodSessionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteSlate}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef DeleteSlateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a GetVodSessionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.GetVodSessionRequest} GetVodSessionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetVodSessionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteSlate. - * @function deleteSlate - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest} request DeleteSlateRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.DeleteSlateCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Verifies a GetVodSessionRequest message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(VideoStitcherService.prototype.deleteSlate = function deleteSlate(request, callback) { - return this.rpcCall(deleteSlate, $root.google.cloud.video.stitcher.v1.DeleteSlateRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteSlate" }); + GetVodSessionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Calls DeleteSlate. - * @function deleteSlate - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest} request DeleteSlateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a GetVodSessionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.GetVodSessionRequest} GetVodSessionRequest */ + GetVodSessionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.GetVodSessionRequest) + return object; + var message = new $root.google.cloud.video.stitcher.v1.GetVodSessionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createLiveSession}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef CreateLiveSessionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.LiveSession} [response] LiveSession + * Creates a plain object from a GetVodSessionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @static + * @param {google.cloud.video.stitcher.v1.GetVodSessionRequest} message GetVodSessionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + GetVodSessionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls CreateLiveSession. - * @function createLiveSession - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * Converts this GetVodSessionRequest to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest * @instance - * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest} request CreateLiveSessionRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.CreateLiveSessionCallback} callback Node-style callback called with the error, if any, and LiveSession - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(VideoStitcherService.prototype.createLiveSession = function createLiveSession(request, callback) { - return this.rpcCall(createLiveSession, $root.google.cloud.video.stitcher.v1.CreateLiveSessionRequest, $root.google.cloud.video.stitcher.v1.LiveSession, request, callback); - }, "name", { value: "CreateLiveSession" }); + GetVodSessionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls CreateLiveSession. - * @function createLiveSession - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest} request CreateLiveSessionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for GetVodSessionRequest + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + GetVodSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetVodSessionRequest"; + }; - /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getLiveSession}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef GetLiveSessionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.LiveSession} [response] LiveSession - */ + return GetVodSessionRequest; + })(); + + v1.ListVodStitchDetailsRequest = (function() { /** - * Calls GetLiveSession. - * @function getLiveSession - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest} request GetLiveSessionRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveSessionCallback} callback Node-style callback called with the error, if any, and LiveSession - * @returns {undefined} - * @variation 1 + * Properties of a ListVodStitchDetailsRequest. + * @memberof google.cloud.video.stitcher.v1 + * @interface IListVodStitchDetailsRequest + * @property {string|null} [parent] ListVodStitchDetailsRequest parent + * @property {number|null} [pageSize] ListVodStitchDetailsRequest pageSize + * @property {string|null} [pageToken] ListVodStitchDetailsRequest pageToken */ - Object.defineProperty(VideoStitcherService.prototype.getLiveSession = function getLiveSession(request, callback) { - return this.rpcCall(getLiveSession, $root.google.cloud.video.stitcher.v1.GetLiveSessionRequest, $root.google.cloud.video.stitcher.v1.LiveSession, request, callback); - }, "name", { value: "GetLiveSession" }); /** - * Calls GetLiveSession. - * @function getLiveSession - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest} request GetLiveSessionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Constructs a new ListVodStitchDetailsRequest. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a ListVodStitchDetailsRequest. + * @implements IListVodStitchDetailsRequest + * @constructor + * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest=} [properties] Properties to set */ + function ListVodStitchDetailsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createLiveConfig}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef CreateLiveConfigCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * ListVodStitchDetailsRequest parent. + * @member {string} parent + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @instance */ + ListVodStitchDetailsRequest.prototype.parent = ""; /** - * Calls CreateLiveConfig. - * @function createLiveConfig - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * ListVodStitchDetailsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest * @instance - * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest} request CreateLiveConfigRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.CreateLiveConfigCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(VideoStitcherService.prototype.createLiveConfig = function createLiveConfig(request, callback) { - return this.rpcCall(createLiveConfig, $root.google.cloud.video.stitcher.v1.CreateLiveConfigRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateLiveConfig" }); + ListVodStitchDetailsRequest.prototype.pageSize = 0; /** - * Calls CreateLiveConfig. - * @function createLiveConfig - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * ListVodStitchDetailsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest * @instance - * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest} request CreateLiveConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListVodStitchDetailsRequest.prototype.pageToken = ""; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listLiveConfigs}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef ListLiveConfigsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} [response] ListLiveConfigsResponse + * Creates a new ListVodStitchDetailsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @static + * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest instance */ + ListVodStitchDetailsRequest.create = function create(properties) { + return new ListVodStitchDetailsRequest(properties); + }; /** - * Calls ListLiveConfigs. - * @function listLiveConfigs - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest} request ListLiveConfigsRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.ListLiveConfigsCallback} callback Node-style callback called with the error, if any, and ListLiveConfigsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified ListVodStitchDetailsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @static + * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest} message ListVodStitchDetailsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListVodStitchDetailsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListVodStitchDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @static + * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest} message ListVodStitchDetailsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(VideoStitcherService.prototype.listLiveConfigs = function listLiveConfigs(request, callback) { - return this.rpcCall(listLiveConfigs, $root.google.cloud.video.stitcher.v1.ListLiveConfigsRequest, $root.google.cloud.video.stitcher.v1.ListLiveConfigsResponse, request, callback); - }, "name", { value: "ListLiveConfigs" }); + ListVodStitchDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls ListLiveConfigs. - * @function listLiveConfigs - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest} request ListLiveConfigsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a ListVodStitchDetailsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListVodStitchDetailsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getLiveConfig}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef GetLiveConfigCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.video.stitcher.v1.LiveConfig} [response] LiveConfig + * Decodes a ListVodStitchDetailsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListVodStitchDetailsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetLiveConfig. - * @function getLiveConfig - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest} request GetLiveConfigRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveConfigCallback} callback Node-style callback called with the error, if any, and LiveConfig - * @returns {undefined} - * @variation 1 + * Verifies a ListVodStitchDetailsRequest message. + * @function verify + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(VideoStitcherService.prototype.getLiveConfig = function getLiveConfig(request, callback) { - return this.rpcCall(getLiveConfig, $root.google.cloud.video.stitcher.v1.GetLiveConfigRequest, $root.google.cloud.video.stitcher.v1.LiveConfig, request, callback); - }, "name", { value: "GetLiveConfig" }); + ListVodStitchDetailsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; /** - * Calls GetLiveConfig. - * @function getLiveConfig - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest} request GetLiveConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a ListVodStitchDetailsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest */ + ListVodStitchDetailsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest) + return object; + var message = new $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; /** - * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteLiveConfig}. - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @typedef DeleteLiveConfigCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a plain object from a ListVodStitchDetailsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @static + * @param {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} message ListVodStitchDetailsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + ListVodStitchDetailsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; /** - * Calls DeleteLiveConfig. - * @function deleteLiveConfig - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService + * Converts this ListVodStitchDetailsRequest to JSON. + * @function toJSON + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest * @instance - * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest} request DeleteLiveConfigRequest message or plain object - * @param {google.cloud.video.stitcher.v1.VideoStitcherService.DeleteLiveConfigCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(VideoStitcherService.prototype.deleteLiveConfig = function deleteLiveConfig(request, callback) { - return this.rpcCall(deleteLiveConfig, $root.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteLiveConfig" }); + ListVodStitchDetailsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls DeleteLiveConfig. - * @function deleteLiveConfig - * @memberof google.cloud.video.stitcher.v1.VideoStitcherService - * @instance - * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest} request DeleteLiveConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for ListVodStitchDetailsRequest + * @function getTypeUrl + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ListVodStitchDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest"; + }; - return VideoStitcherService; + return ListVodStitchDetailsRequest; })(); - v1.CreateCdnKeyRequest = (function() { + v1.ListVodStitchDetailsResponse = (function() { /** - * Properties of a CreateCdnKeyRequest. + * Properties of a ListVodStitchDetailsResponse. * @memberof google.cloud.video.stitcher.v1 - * @interface ICreateCdnKeyRequest - * @property {string|null} [parent] CreateCdnKeyRequest parent - * @property {google.cloud.video.stitcher.v1.ICdnKey|null} [cdnKey] CreateCdnKeyRequest cdnKey - * @property {string|null} [cdnKeyId] CreateCdnKeyRequest cdnKeyId + * @interface IListVodStitchDetailsResponse + * @property {Array.|null} [vodStitchDetails] ListVodStitchDetailsResponse vodStitchDetails + * @property {string|null} [nextPageToken] ListVodStitchDetailsResponse nextPageToken */ /** - * Constructs a new CreateCdnKeyRequest. + * Constructs a new ListVodStitchDetailsResponse. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a CreateCdnKeyRequest. - * @implements ICreateCdnKeyRequest + * @classdesc Represents a ListVodStitchDetailsResponse. + * @implements IListVodStitchDetailsResponse * @constructor - * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse=} [properties] Properties to set */ - function CreateCdnKeyRequest(properties) { + function ListVodStitchDetailsResponse(properties) { + this.vodStitchDetails = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10393,103 +13384,92 @@ } /** - * CreateCdnKeyRequest parent. - * @member {string} parent - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest - * @instance - */ - CreateCdnKeyRequest.prototype.parent = ""; - - /** - * CreateCdnKeyRequest cdnKey. - * @member {google.cloud.video.stitcher.v1.ICdnKey|null|undefined} cdnKey - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * ListVodStitchDetailsResponse vodStitchDetails. + * @member {Array.} vodStitchDetails + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @instance */ - CreateCdnKeyRequest.prototype.cdnKey = null; + ListVodStitchDetailsResponse.prototype.vodStitchDetails = $util.emptyArray; /** - * CreateCdnKeyRequest cdnKeyId. - * @member {string} cdnKeyId - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * ListVodStitchDetailsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @instance */ - CreateCdnKeyRequest.prototype.cdnKeyId = ""; + ListVodStitchDetailsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateCdnKeyRequest instance using the specified properties. + * Creates a new ListVodStitchDetailsResponse instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} CreateCdnKeyRequest instance + * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse instance */ - CreateCdnKeyRequest.create = function create(properties) { - return new CreateCdnKeyRequest(properties); + ListVodStitchDetailsResponse.create = function create(properties) { + return new ListVodStitchDetailsResponse(properties); }; /** - * Encodes the specified CreateCdnKeyRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateCdnKeyRequest.verify|verify} messages. + * Encodes the specified ListVodStitchDetailsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest} message CreateCdnKeyRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse} message ListVodStitchDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCdnKeyRequest.encode = function encode(message, writer) { + ListVodStitchDetailsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.cdnKey != null && Object.hasOwnProperty.call(message, "cdnKey")) - $root.google.cloud.video.stitcher.v1.CdnKey.encode(message.cdnKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.cdnKeyId != null && Object.hasOwnProperty.call(message, "cdnKeyId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cdnKeyId); + if (message.vodStitchDetails != null && message.vodStitchDetails.length) + for (var i = 0; i < message.vodStitchDetails.length; ++i) + $root.google.cloud.video.stitcher.v1.VodStitchDetail.encode(message.vodStitchDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateCdnKeyRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateCdnKeyRequest.verify|verify} messages. + * Encodes the specified ListVodStitchDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest} message CreateCdnKeyRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse} message ListVodStitchDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVodStitchDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCdnKeyRequest message from the specified reader or buffer. + * Decodes a ListVodStitchDetailsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} CreateCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCdnKeyRequest.decode = function decode(reader, length) { + ListVodStitchDetailsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.CreateCdnKeyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.vodStitchDetails && message.vodStitchDetails.length)) + message.vodStitchDetails = []; + message.vodStitchDetails.push($root.google.cloud.video.stitcher.v1.VodStitchDetail.decode(reader, reader.uint32())); break; } case 2: { - message.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.decode(reader, reader.uint32()); - break; - } - case 3: { - message.cdnKeyId = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -10501,148 +13481,148 @@ }; /** - * Decodes a CreateCdnKeyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVodStitchDetailsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} CreateCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) { + ListVodStitchDetailsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCdnKeyRequest message. + * Verifies a ListVodStitchDetailsResponse message. * @function verify - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCdnKeyRequest.verify = function verify(message) { + ListVodStitchDetailsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.cdnKey != null && message.hasOwnProperty("cdnKey")) { - var error = $root.google.cloud.video.stitcher.v1.CdnKey.verify(message.cdnKey); - if (error) - return "cdnKey." + error; + if (message.vodStitchDetails != null && message.hasOwnProperty("vodStitchDetails")) { + if (!Array.isArray(message.vodStitchDetails)) + return "vodStitchDetails: array expected"; + for (var i = 0; i < message.vodStitchDetails.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.VodStitchDetail.verify(message.vodStitchDetails[i]); + if (error) + return "vodStitchDetails." + error; + } } - if (message.cdnKeyId != null && message.hasOwnProperty("cdnKeyId")) - if (!$util.isString(message.cdnKeyId)) - return "cdnKeyId: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateCdnKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVodStitchDetailsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} CreateCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse */ - CreateCdnKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.CreateCdnKeyRequest) + ListVodStitchDetailsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse) return object; - var message = new $root.google.cloud.video.stitcher.v1.CreateCdnKeyRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.cdnKey != null) { - if (typeof object.cdnKey !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.CreateCdnKeyRequest.cdnKey: object expected"); - message.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.fromObject(object.cdnKey); + var message = new $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse(); + if (object.vodStitchDetails) { + if (!Array.isArray(object.vodStitchDetails)) + throw TypeError(".google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse.vodStitchDetails: array expected"); + message.vodStitchDetails = []; + for (var i = 0; i < object.vodStitchDetails.length; ++i) { + if (typeof object.vodStitchDetails[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse.vodStitchDetails: object expected"); + message.vodStitchDetails[i] = $root.google.cloud.video.stitcher.v1.VodStitchDetail.fromObject(object.vodStitchDetails[i]); + } } - if (object.cdnKeyId != null) - message.cdnKeyId = String(object.cdnKeyId); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateCdnKeyRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVodStitchDetailsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} message CreateCdnKeyRequest + * @param {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} message ListVodStitchDetailsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCdnKeyRequest.toObject = function toObject(message, options) { + ListVodStitchDetailsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.cdnKey = null; - object.cdnKeyId = ""; + if (options.arrays || options.defaults) + object.vodStitchDetails = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.vodStitchDetails && message.vodStitchDetails.length) { + object.vodStitchDetails = []; + for (var j = 0; j < message.vodStitchDetails.length; ++j) + object.vodStitchDetails[j] = $root.google.cloud.video.stitcher.v1.VodStitchDetail.toObject(message.vodStitchDetails[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.cdnKey != null && message.hasOwnProperty("cdnKey")) - object.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.toObject(message.cdnKey, options); - if (message.cdnKeyId != null && message.hasOwnProperty("cdnKeyId")) - object.cdnKeyId = message.cdnKeyId; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateCdnKeyRequest to JSON. + * Converts this ListVodStitchDetailsResponse to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @instance * @returns {Object.} JSON object */ - CreateCdnKeyRequest.prototype.toJSON = function toJSON() { + ListVodStitchDetailsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateCdnKeyRequest + * Gets the default type url for ListVodStitchDetailsResponse * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVodStitchDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateCdnKeyRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse"; }; - return CreateCdnKeyRequest; + return ListVodStitchDetailsResponse; })(); - v1.ListCdnKeysRequest = (function() { + v1.GetVodStitchDetailRequest = (function() { /** - * Properties of a ListCdnKeysRequest. + * Properties of a GetVodStitchDetailRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IListCdnKeysRequest - * @property {string|null} [parent] ListCdnKeysRequest parent - * @property {number|null} [pageSize] ListCdnKeysRequest pageSize - * @property {string|null} [pageToken] ListCdnKeysRequest pageToken - * @property {string|null} [filter] ListCdnKeysRequest filter - * @property {string|null} [orderBy] ListCdnKeysRequest orderBy + * @interface IGetVodStitchDetailRequest + * @property {string|null} [name] GetVodStitchDetailRequest name */ /** - * Constructs a new ListCdnKeysRequest. + * Constructs a new GetVodStitchDetailRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListCdnKeysRequest. - * @implements IListCdnKeysRequest + * @classdesc Represents a GetVodStitchDetailRequest. + * @implements IGetVodStitchDetailRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest=} [properties] Properties to set */ - function ListCdnKeysRequest(properties) { + function GetVodStitchDetailRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10650,131 +13630,75 @@ } /** - * ListCdnKeysRequest parent. - * @member {string} parent - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest - * @instance - */ - ListCdnKeysRequest.prototype.parent = ""; - - /** - * ListCdnKeysRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest - * @instance - */ - ListCdnKeysRequest.prototype.pageSize = 0; - - /** - * ListCdnKeysRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest - * @instance - */ - ListCdnKeysRequest.prototype.pageToken = ""; - - /** - * ListCdnKeysRequest filter. - * @member {string} filter - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest - * @instance - */ - ListCdnKeysRequest.prototype.filter = ""; - - /** - * ListCdnKeysRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * GetVodStitchDetailRequest name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest * @instance */ - ListCdnKeysRequest.prototype.orderBy = ""; + GetVodStitchDetailRequest.prototype.name = ""; /** - * Creates a new ListCdnKeysRequest instance using the specified properties. + * Creates a new GetVodStitchDetailRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListCdnKeysRequest} ListCdnKeysRequest instance + * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} GetVodStitchDetailRequest instance */ - ListCdnKeysRequest.create = function create(properties) { - return new ListCdnKeysRequest(properties); + GetVodStitchDetailRequest.create = function create(properties) { + return new GetVodStitchDetailRequest(properties); }; /** - * Encodes the specified ListCdnKeysRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListCdnKeysRequest.verify|verify} messages. + * Encodes the specified GetVodStitchDetailRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodStitchDetailRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest} message ListCdnKeysRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListCdnKeysRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest} message GetVodStitchDetailRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVodStitchDetailRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListCdnKeysRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListCdnKeysRequest.verify|verify} messages. + * Encodes the specified GetVodStitchDetailRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodStitchDetailRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest} message ListCdnKeysRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest} message GetVodStitchDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCdnKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVodStitchDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCdnKeysRequest message from the specified reader or buffer. + * Decodes a GetVodStitchDetailRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListCdnKeysRequest} ListCdnKeysRequest + * @returns {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} GetVodStitchDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCdnKeysRequest.decode = function decode(reader, length) { + GetVodStitchDetailRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListCdnKeysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + message.name = reader.string(); break; } default: @@ -10786,159 +13710,124 @@ }; /** - * Decodes a ListCdnKeysRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVodStitchDetailRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListCdnKeysRequest} ListCdnKeysRequest + * @returns {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} GetVodStitchDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCdnKeysRequest.decodeDelimited = function decodeDelimited(reader) { + GetVodStitchDetailRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCdnKeysRequest message. + * Verifies a GetVodStitchDetailRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCdnKeysRequest.verify = function verify(message) { + GetVodStitchDetailRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListCdnKeysRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVodStitchDetailRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListCdnKeysRequest} ListCdnKeysRequest + * @returns {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} GetVodStitchDetailRequest */ - ListCdnKeysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListCdnKeysRequest) + GetVodStitchDetailRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListCdnKeysRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListCdnKeysRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVodStitchDetailRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.ListCdnKeysRequest} message ListCdnKeysRequest + * @param {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} message GetVodStitchDetailRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCdnKeysRequest.toObject = function toObject(message, options) { + GetVodStitchDetailRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListCdnKeysRequest to JSON. + * Converts this GetVodStitchDetailRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest * @instance * @returns {Object.} JSON object */ - ListCdnKeysRequest.prototype.toJSON = function toJSON() { + GetVodStitchDetailRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCdnKeysRequest + * Gets the default type url for GetVodStitchDetailRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest + * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCdnKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetVodStitchDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListCdnKeysRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetVodStitchDetailRequest"; }; - return ListCdnKeysRequest; + return GetVodStitchDetailRequest; })(); - v1.ListCdnKeysResponse = (function() { + v1.ListVodAdTagDetailsRequest = (function() { /** - * Properties of a ListCdnKeysResponse. + * Properties of a ListVodAdTagDetailsRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IListCdnKeysResponse - * @property {Array.|null} [cdnKeys] ListCdnKeysResponse cdnKeys - * @property {string|null} [nextPageToken] ListCdnKeysResponse nextPageToken - * @property {Array.|null} [unreachable] ListCdnKeysResponse unreachable + * @interface IListVodAdTagDetailsRequest + * @property {string|null} [parent] ListVodAdTagDetailsRequest parent + * @property {number|null} [pageSize] ListVodAdTagDetailsRequest pageSize + * @property {string|null} [pageToken] ListVodAdTagDetailsRequest pageToken */ /** - * Constructs a new ListCdnKeysResponse. + * Constructs a new ListVodAdTagDetailsRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListCdnKeysResponse. - * @implements IListCdnKeysResponse + * @classdesc Represents a ListVodAdTagDetailsRequest. + * @implements IListVodAdTagDetailsRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest=} [properties] Properties to set */ - function ListCdnKeysResponse(properties) { - this.cdnKeys = []; - this.unreachable = []; + function ListVodAdTagDetailsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10946,109 +13835,103 @@ } /** - * ListCdnKeysResponse cdnKeys. - * @member {Array.} cdnKeys - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * ListVodAdTagDetailsRequest parent. + * @member {string} parent + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @instance */ - ListCdnKeysResponse.prototype.cdnKeys = $util.emptyArray; + ListVodAdTagDetailsRequest.prototype.parent = ""; /** - * ListCdnKeysResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * ListVodAdTagDetailsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @instance */ - ListCdnKeysResponse.prototype.nextPageToken = ""; + ListVodAdTagDetailsRequest.prototype.pageSize = 0; /** - * ListCdnKeysResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * ListVodAdTagDetailsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @instance */ - ListCdnKeysResponse.prototype.unreachable = $util.emptyArray; + ListVodAdTagDetailsRequest.prototype.pageToken = ""; /** - * Creates a new ListCdnKeysResponse instance using the specified properties. + * Creates a new ListVodAdTagDetailsRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @static - * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse instance + * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest instance */ - ListCdnKeysResponse.create = function create(properties) { - return new ListCdnKeysResponse(properties); + ListVodAdTagDetailsRequest.create = function create(properties) { + return new ListVodAdTagDetailsRequest(properties); }; /** - * Encodes the specified ListCdnKeysResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListCdnKeysResponse.verify|verify} messages. + * Encodes the specified ListVodAdTagDetailsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @static - * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse} message ListCdnKeysResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest} message ListVodAdTagDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCdnKeysResponse.encode = function encode(message, writer) { + ListVodAdTagDetailsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cdnKeys != null && message.cdnKeys.length) - for (var i = 0; i < message.cdnKeys.length; ++i) - $root.google.cloud.video.stitcher.v1.CdnKey.encode(message.cdnKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified ListCdnKeysResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListCdnKeysResponse.verify|verify} messages. + * Encodes the specified ListVodAdTagDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @static - * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse} message ListCdnKeysResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest} message ListVodAdTagDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCdnKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListVodAdTagDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCdnKeysResponse message from the specified reader or buffer. + * Decodes a ListVodAdTagDetailsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse + * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCdnKeysResponse.decode = function decode(reader, length) { + ListVodAdTagDetailsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListCdnKeysResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.cdnKeys && message.cdnKeys.length)) - message.cdnKeys = []; - message.cdnKeys.push($root.google.cloud.video.stitcher.v1.CdnKey.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.pageToken = reader.string(); break; } default: @@ -11060,169 +13943,141 @@ }; /** - * Decodes a ListCdnKeysResponse message from the specified reader or buffer, length delimited. + * Decodes a ListVodAdTagDetailsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse + * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCdnKeysResponse.decodeDelimited = function decodeDelimited(reader) { + ListVodAdTagDetailsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCdnKeysResponse message. + * Verifies a ListVodAdTagDetailsRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCdnKeysResponse.verify = function verify(message) { + ListVodAdTagDetailsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cdnKeys != null && message.hasOwnProperty("cdnKeys")) { - if (!Array.isArray(message.cdnKeys)) - return "cdnKeys: array expected"; - for (var i = 0; i < message.cdnKeys.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.CdnKey.verify(message.cdnKeys[i]); - if (error) - return "cdnKeys." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a ListCdnKeysResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListVodAdTagDetailsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse + * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest */ - ListCdnKeysResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListCdnKeysResponse) + ListVodAdTagDetailsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListCdnKeysResponse(); - if (object.cdnKeys) { - if (!Array.isArray(object.cdnKeys)) - throw TypeError(".google.cloud.video.stitcher.v1.ListCdnKeysResponse.cdnKeys: array expected"); - message.cdnKeys = []; - for (var i = 0; i < object.cdnKeys.length; ++i) { - if (typeof object.cdnKeys[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.ListCdnKeysResponse.cdnKeys: object expected"); - message.cdnKeys[i] = $root.google.cloud.video.stitcher.v1.CdnKey.fromObject(object.cdnKeys[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.video.stitcher.v1.ListCdnKeysResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } + var message = new $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ListCdnKeysResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListVodAdTagDetailsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @static - * @param {google.cloud.video.stitcher.v1.ListCdnKeysResponse} message ListCdnKeysResponse + * @param {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} message ListVodAdTagDetailsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCdnKeysResponse.toObject = function toObject(message, options) { + ListVodAdTagDetailsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.cdnKeys = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.cdnKeys && message.cdnKeys.length) { - object.cdnKeys = []; - for (var j = 0; j < message.cdnKeys.length; ++j) - object.cdnKeys[j] = $root.google.cloud.video.stitcher.v1.CdnKey.toObject(message.cdnKeys[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this ListCdnKeysResponse to JSON. + * Converts this ListVodAdTagDetailsRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @instance * @returns {Object.} JSON object */ - ListCdnKeysResponse.prototype.toJSON = function toJSON() { + ListVodAdTagDetailsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCdnKeysResponse + * Gets the default type url for ListVodAdTagDetailsRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCdnKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVodAdTagDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListCdnKeysResponse"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest"; }; - return ListCdnKeysResponse; + return ListVodAdTagDetailsRequest; })(); - v1.GetCdnKeyRequest = (function() { + v1.ListVodAdTagDetailsResponse = (function() { /** - * Properties of a GetCdnKeyRequest. + * Properties of a ListVodAdTagDetailsResponse. * @memberof google.cloud.video.stitcher.v1 - * @interface IGetCdnKeyRequest - * @property {string|null} [name] GetCdnKeyRequest name + * @interface IListVodAdTagDetailsResponse + * @property {Array.|null} [vodAdTagDetails] ListVodAdTagDetailsResponse vodAdTagDetails + * @property {string|null} [nextPageToken] ListVodAdTagDetailsResponse nextPageToken */ /** - * Constructs a new GetCdnKeyRequest. + * Constructs a new ListVodAdTagDetailsResponse. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a GetCdnKeyRequest. - * @implements IGetCdnKeyRequest + * @classdesc Represents a ListVodAdTagDetailsResponse. + * @implements IListVodAdTagDetailsResponse * @constructor - * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse=} [properties] Properties to set */ - function GetCdnKeyRequest(properties) { + function ListVodAdTagDetailsResponse(properties) { + this.vodAdTagDetails = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11230,75 +14085,92 @@ } /** - * GetCdnKeyRequest name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest + * ListVodAdTagDetailsResponse vodAdTagDetails. + * @member {Array.} vodAdTagDetails + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse * @instance */ - GetCdnKeyRequest.prototype.name = ""; + ListVodAdTagDetailsResponse.prototype.vodAdTagDetails = $util.emptyArray; /** - * Creates a new GetCdnKeyRequest instance using the specified properties. + * ListVodAdTagDetailsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * @instance + */ + ListVodAdTagDetailsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListVodAdTagDetailsResponse instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.GetCdnKeyRequest} GetCdnKeyRequest instance + * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse instance */ - GetCdnKeyRequest.create = function create(properties) { - return new GetCdnKeyRequest(properties); + ListVodAdTagDetailsResponse.create = function create(properties) { + return new ListVodAdTagDetailsResponse(properties); }; /** - * Encodes the specified GetCdnKeyRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetCdnKeyRequest.verify|verify} messages. + * Encodes the specified ListVodAdTagDetailsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest} message GetCdnKeyRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse} message ListVodAdTagDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCdnKeyRequest.encode = function encode(message, writer) { + ListVodAdTagDetailsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.vodAdTagDetails != null && message.vodAdTagDetails.length) + for (var i = 0; i < message.vodAdTagDetails.length; ++i) + $root.google.cloud.video.stitcher.v1.VodAdTagDetail.encode(message.vodAdTagDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetCdnKeyRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetCdnKeyRequest.verify|verify} messages. + * Encodes the specified ListVodAdTagDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest} message GetCdnKeyRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse} message ListVodAdTagDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVodAdTagDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCdnKeyRequest message from the specified reader or buffer. + * Decodes a ListVodAdTagDetailsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.GetCdnKeyRequest} GetCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCdnKeyRequest.decode = function decode(reader, length) { + ListVodAdTagDetailsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetCdnKeyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.vodAdTagDetails && message.vodAdTagDetails.length)) + message.vodAdTagDetails = []; + message.vodAdTagDetails.push($root.google.cloud.video.stitcher.v1.VodAdTagDetail.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -11310,122 +14182,148 @@ }; /** - * Decodes a GetCdnKeyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVodAdTagDetailsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.GetCdnKeyRequest} GetCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) { + ListVodAdTagDetailsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCdnKeyRequest message. + * Verifies a ListVodAdTagDetailsResponse message. * @function verify - * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCdnKeyRequest.verify = function verify(message) { + ListVodAdTagDetailsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.vodAdTagDetails != null && message.hasOwnProperty("vodAdTagDetails")) { + if (!Array.isArray(message.vodAdTagDetails)) + return "vodAdTagDetails: array expected"; + for (var i = 0; i < message.vodAdTagDetails.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.VodAdTagDetail.verify(message.vodAdTagDetails[i]); + if (error) + return "vodAdTagDetails." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetCdnKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVodAdTagDetailsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.GetCdnKeyRequest} GetCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse */ - GetCdnKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.GetCdnKeyRequest) + ListVodAdTagDetailsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse) return object; - var message = new $root.google.cloud.video.stitcher.v1.GetCdnKeyRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse(); + if (object.vodAdTagDetails) { + if (!Array.isArray(object.vodAdTagDetails)) + throw TypeError(".google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse.vodAdTagDetails: array expected"); + message.vodAdTagDetails = []; + for (var i = 0; i < object.vodAdTagDetails.length; ++i) { + if (typeof object.vodAdTagDetails[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse.vodAdTagDetails: object expected"); + message.vodAdTagDetails[i] = $root.google.cloud.video.stitcher.v1.VodAdTagDetail.fromObject(object.vodAdTagDetails[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetCdnKeyRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVodAdTagDetailsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.GetCdnKeyRequest} message GetCdnKeyRequest + * @param {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} message ListVodAdTagDetailsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCdnKeyRequest.toObject = function toObject(message, options) { + ListVodAdTagDetailsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.vodAdTagDetails = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.vodAdTagDetails && message.vodAdTagDetails.length) { + object.vodAdTagDetails = []; + for (var j = 0; j < message.vodAdTagDetails.length; ++j) + object.vodAdTagDetails[j] = $root.google.cloud.video.stitcher.v1.VodAdTagDetail.toObject(message.vodAdTagDetails[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetCdnKeyRequest to JSON. + * Converts this ListVodAdTagDetailsResponse to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse * @instance * @returns {Object.} JSON object */ - GetCdnKeyRequest.prototype.toJSON = function toJSON() { + ListVodAdTagDetailsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCdnKeyRequest + * Gets the default type url for ListVodAdTagDetailsResponse * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVodAdTagDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetCdnKeyRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse"; }; - return GetCdnKeyRequest; + return ListVodAdTagDetailsResponse; })(); - v1.DeleteCdnKeyRequest = (function() { + v1.GetVodAdTagDetailRequest = (function() { /** - * Properties of a DeleteCdnKeyRequest. + * Properties of a GetVodAdTagDetailRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IDeleteCdnKeyRequest - * @property {string|null} [name] DeleteCdnKeyRequest name + * @interface IGetVodAdTagDetailRequest + * @property {string|null} [name] GetVodAdTagDetailRequest name */ /** - * Constructs a new DeleteCdnKeyRequest. + * Constructs a new GetVodAdTagDetailRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a DeleteCdnKeyRequest. - * @implements IDeleteCdnKeyRequest + * @classdesc Represents a GetVodAdTagDetailRequest. + * @implements IGetVodAdTagDetailRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest=} [properties] Properties to set */ - function DeleteCdnKeyRequest(properties) { + function GetVodAdTagDetailRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11433,35 +14331,35 @@ } /** - * DeleteCdnKeyRequest name. + * GetVodAdTagDetailRequest name. * @member {string} name - * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest * @instance */ - DeleteCdnKeyRequest.prototype.name = ""; + GetVodAdTagDetailRequest.prototype.name = ""; /** - * Creates a new DeleteCdnKeyRequest instance using the specified properties. + * Creates a new GetVodAdTagDetailRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} DeleteCdnKeyRequest instance + * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} GetVodAdTagDetailRequest instance */ - DeleteCdnKeyRequest.create = function create(properties) { - return new DeleteCdnKeyRequest(properties); + GetVodAdTagDetailRequest.create = function create(properties) { + return new GetVodAdTagDetailRequest(properties); }; /** - * Encodes the specified DeleteCdnKeyRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteCdnKeyRequest.verify|verify} messages. + * Encodes the specified GetVodAdTagDetailRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest} message DeleteCdnKeyRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest} message GetVodAdTagDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCdnKeyRequest.encode = function encode(message, writer) { + GetVodAdTagDetailRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -11470,33 +14368,33 @@ }; /** - * Encodes the specified DeleteCdnKeyRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteCdnKeyRequest.verify|verify} messages. + * Encodes the specified GetVodAdTagDetailRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest} message DeleteCdnKeyRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest} message GetVodAdTagDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVodAdTagDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteCdnKeyRequest message from the specified reader or buffer. + * Decodes a GetVodAdTagDetailRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} DeleteCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} GetVodAdTagDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCdnKeyRequest.decode = function decode(reader, length) { + GetVodAdTagDetailRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11513,30 +14411,30 @@ }; /** - * Decodes a DeleteCdnKeyRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVodAdTagDetailRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} DeleteCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} GetVodAdTagDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) { + GetVodAdTagDetailRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteCdnKeyRequest message. + * Verifies a GetVodAdTagDetailRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteCdnKeyRequest.verify = function verify(message) { + GetVodAdTagDetailRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -11546,32 +14444,32 @@ }; /** - * Creates a DeleteCdnKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVodAdTagDetailRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} DeleteCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} GetVodAdTagDetailRequest */ - DeleteCdnKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest) + GetVodAdTagDetailRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest(); + var message = new $root.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteCdnKeyRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVodAdTagDetailRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} message DeleteCdnKeyRequest + * @param {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} message GetVodAdTagDetailRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteCdnKeyRequest.toObject = function toObject(message, options) { + GetVodAdTagDetailRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -11583,53 +14481,54 @@ }; /** - * Converts this DeleteCdnKeyRequest to JSON. + * Converts this GetVodAdTagDetailRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest * @instance * @returns {Object.} JSON object */ - DeleteCdnKeyRequest.prototype.toJSON = function toJSON() { + GetVodAdTagDetailRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteCdnKeyRequest + * Gets the default type url for GetVodAdTagDetailRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetVodAdTagDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.DeleteCdnKeyRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest"; }; - return DeleteCdnKeyRequest; + return GetVodAdTagDetailRequest; })(); - v1.UpdateCdnKeyRequest = (function() { + v1.ListLiveAdTagDetailsRequest = (function() { /** - * Properties of an UpdateCdnKeyRequest. + * Properties of a ListLiveAdTagDetailsRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IUpdateCdnKeyRequest - * @property {google.cloud.video.stitcher.v1.ICdnKey|null} [cdnKey] UpdateCdnKeyRequest cdnKey - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCdnKeyRequest updateMask + * @interface IListLiveAdTagDetailsRequest + * @property {string|null} [parent] ListLiveAdTagDetailsRequest parent + * @property {number|null} [pageSize] ListLiveAdTagDetailsRequest pageSize + * @property {string|null} [pageToken] ListLiveAdTagDetailsRequest pageToken */ /** - * Constructs a new UpdateCdnKeyRequest. + * Constructs a new ListLiveAdTagDetailsRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents an UpdateCdnKeyRequest. - * @implements IUpdateCdnKeyRequest + * @classdesc Represents a ListLiveAdTagDetailsRequest. + * @implements IListLiveAdTagDetailsRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest=} [properties] Properties to set */ - function UpdateCdnKeyRequest(properties) { + function ListLiveAdTagDetailsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11637,89 +14536,103 @@ } /** - * UpdateCdnKeyRequest cdnKey. - * @member {google.cloud.video.stitcher.v1.ICdnKey|null|undefined} cdnKey - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * ListLiveAdTagDetailsRequest parent. + * @member {string} parent + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @instance */ - UpdateCdnKeyRequest.prototype.cdnKey = null; + ListLiveAdTagDetailsRequest.prototype.parent = ""; /** - * UpdateCdnKeyRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * ListLiveAdTagDetailsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @instance */ - UpdateCdnKeyRequest.prototype.updateMask = null; + ListLiveAdTagDetailsRequest.prototype.pageSize = 0; /** - * Creates a new UpdateCdnKeyRequest instance using the specified properties. + * ListLiveAdTagDetailsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @instance + */ + ListLiveAdTagDetailsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListLiveAdTagDetailsRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @static - * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} UpdateCdnKeyRequest instance + * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} ListLiveAdTagDetailsRequest instance */ - UpdateCdnKeyRequest.create = function create(properties) { - return new UpdateCdnKeyRequest(properties); + ListLiveAdTagDetailsRequest.create = function create(properties) { + return new ListLiveAdTagDetailsRequest(properties); }; /** - * Encodes the specified UpdateCdnKeyRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateCdnKeyRequest.verify|verify} messages. + * Encodes the specified ListLiveAdTagDetailsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @static - * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest} message UpdateCdnKeyRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest} message ListLiveAdTagDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCdnKeyRequest.encode = function encode(message, writer) { + ListLiveAdTagDetailsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cdnKey != null && Object.hasOwnProperty.call(message, "cdnKey")) - $root.google.cloud.video.stitcher.v1.CdnKey.encode(message.cdnKey, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified UpdateCdnKeyRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateCdnKeyRequest.verify|verify} messages. + * Encodes the specified ListLiveAdTagDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @static - * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest} message UpdateCdnKeyRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest} message ListLiveAdTagDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListLiveAdTagDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCdnKeyRequest message from the specified reader or buffer. + * Decodes a ListLiveAdTagDetailsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} UpdateCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} ListLiveAdTagDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCdnKeyRequest.decode = function decode(reader, length) { + ListLiveAdTagDetailsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -11731,142 +14644,141 @@ }; /** - * Decodes an UpdateCdnKeyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListLiveAdTagDetailsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} UpdateCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} ListLiveAdTagDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) { + ListLiveAdTagDetailsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCdnKeyRequest message. + * Verifies a ListLiveAdTagDetailsRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCdnKeyRequest.verify = function verify(message) { + ListLiveAdTagDetailsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cdnKey != null && message.hasOwnProperty("cdnKey")) { - var error = $root.google.cloud.video.stitcher.v1.CdnKey.verify(message.cdnKey); - if (error) - return "cdnKey." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates an UpdateCdnKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListLiveAdTagDetailsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} UpdateCdnKeyRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} ListLiveAdTagDetailsRequest */ - UpdateCdnKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest) + ListLiveAdTagDetailsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest(); - if (object.cdnKey != null) { - if (typeof object.cdnKey !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.UpdateCdnKeyRequest.cdnKey: object expected"); - message.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.fromObject(object.cdnKey); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.UpdateCdnKeyRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from an UpdateCdnKeyRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListLiveAdTagDetailsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @static - * @param {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} message UpdateCdnKeyRequest + * @param {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} message ListLiveAdTagDetailsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCdnKeyRequest.toObject = function toObject(message, options) { + ListLiveAdTagDetailsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.cdnKey = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.cdnKey != null && message.hasOwnProperty("cdnKey")) - object.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.toObject(message.cdnKey, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this UpdateCdnKeyRequest to JSON. + * Converts this ListLiveAdTagDetailsRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @instance * @returns {Object.} JSON object */ - UpdateCdnKeyRequest.prototype.toJSON = function toJSON() { + ListLiveAdTagDetailsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateCdnKeyRequest + * Gets the default type url for ListLiveAdTagDetailsRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListLiveAdTagDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.UpdateCdnKeyRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest"; }; - return UpdateCdnKeyRequest; + return ListLiveAdTagDetailsRequest; })(); - v1.CreateVodSessionRequest = (function() { + v1.ListLiveAdTagDetailsResponse = (function() { /** - * Properties of a CreateVodSessionRequest. + * Properties of a ListLiveAdTagDetailsResponse. * @memberof google.cloud.video.stitcher.v1 - * @interface ICreateVodSessionRequest - * @property {string|null} [parent] CreateVodSessionRequest parent - * @property {google.cloud.video.stitcher.v1.IVodSession|null} [vodSession] CreateVodSessionRequest vodSession + * @interface IListLiveAdTagDetailsResponse + * @property {Array.|null} [liveAdTagDetails] ListLiveAdTagDetailsResponse liveAdTagDetails + * @property {string|null} [nextPageToken] ListLiveAdTagDetailsResponse nextPageToken */ /** - * Constructs a new CreateVodSessionRequest. + * Constructs a new ListLiveAdTagDetailsResponse. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a CreateVodSessionRequest. - * @implements ICreateVodSessionRequest + * @classdesc Represents a ListLiveAdTagDetailsResponse. + * @implements IListLiveAdTagDetailsResponse * @constructor - * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsResponse=} [properties] Properties to set */ - function CreateVodSessionRequest(properties) { + function ListLiveAdTagDetailsResponse(properties) { + this.liveAdTagDetails = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11874,89 +14786,92 @@ } /** - * CreateVodSessionRequest parent. - * @member {string} parent - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * ListLiveAdTagDetailsResponse liveAdTagDetails. + * @member {Array.} liveAdTagDetails + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @instance */ - CreateVodSessionRequest.prototype.parent = ""; + ListLiveAdTagDetailsResponse.prototype.liveAdTagDetails = $util.emptyArray; /** - * CreateVodSessionRequest vodSession. - * @member {google.cloud.video.stitcher.v1.IVodSession|null|undefined} vodSession - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * ListLiveAdTagDetailsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @instance */ - CreateVodSessionRequest.prototype.vodSession = null; + ListLiveAdTagDetailsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateVodSessionRequest instance using the specified properties. + * Creates a new ListLiveAdTagDetailsResponse instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.CreateVodSessionRequest} CreateVodSessionRequest instance + * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsResponse=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} ListLiveAdTagDetailsResponse instance */ - CreateVodSessionRequest.create = function create(properties) { - return new CreateVodSessionRequest(properties); + ListLiveAdTagDetailsResponse.create = function create(properties) { + return new ListLiveAdTagDetailsResponse(properties); }; /** - * Encodes the specified CreateVodSessionRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateVodSessionRequest.verify|verify} messages. + * Encodes the specified ListLiveAdTagDetailsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest} message CreateVodSessionRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsResponse} message ListLiveAdTagDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVodSessionRequest.encode = function encode(message, writer) { + ListLiveAdTagDetailsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.vodSession != null && Object.hasOwnProperty.call(message, "vodSession")) - $root.google.cloud.video.stitcher.v1.VodSession.encode(message.vodSession, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.liveAdTagDetails != null && message.liveAdTagDetails.length) + for (var i = 0; i < message.liveAdTagDetails.length; ++i) + $root.google.cloud.video.stitcher.v1.LiveAdTagDetail.encode(message.liveAdTagDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateVodSessionRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateVodSessionRequest.verify|verify} messages. + * Encodes the specified ListLiveAdTagDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest} message CreateVodSessionRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsResponse} message ListLiveAdTagDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVodSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListLiveAdTagDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateVodSessionRequest message from the specified reader or buffer. + * Decodes a ListLiveAdTagDetailsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.CreateVodSessionRequest} CreateVodSessionRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} ListLiveAdTagDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVodSessionRequest.decode = function decode(reader, length) { + ListLiveAdTagDetailsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.CreateVodSessionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.liveAdTagDetails && message.liveAdTagDetails.length)) + message.liveAdTagDetails = []; + message.liveAdTagDetails.push($root.google.cloud.video.stitcher.v1.LiveAdTagDetail.decode(reader, reader.uint32())); break; } case 2: { - message.vodSession = $root.google.cloud.video.stitcher.v1.VodSession.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -11968,136 +14883,148 @@ }; /** - * Decodes a CreateVodSessionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListLiveAdTagDetailsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.CreateVodSessionRequest} CreateVodSessionRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} ListLiveAdTagDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVodSessionRequest.decodeDelimited = function decodeDelimited(reader) { + ListLiveAdTagDetailsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateVodSessionRequest message. + * Verifies a ListLiveAdTagDetailsResponse message. * @function verify - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateVodSessionRequest.verify = function verify(message) { + ListLiveAdTagDetailsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.vodSession != null && message.hasOwnProperty("vodSession")) { - var error = $root.google.cloud.video.stitcher.v1.VodSession.verify(message.vodSession); - if (error) - return "vodSession." + error; + if (message.liveAdTagDetails != null && message.hasOwnProperty("liveAdTagDetails")) { + if (!Array.isArray(message.liveAdTagDetails)) + return "liveAdTagDetails: array expected"; + for (var i = 0; i < message.liveAdTagDetails.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.LiveAdTagDetail.verify(message.liveAdTagDetails[i]); + if (error) + return "liveAdTagDetails." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateVodSessionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListLiveAdTagDetailsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.CreateVodSessionRequest} CreateVodSessionRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} ListLiveAdTagDetailsResponse */ - CreateVodSessionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.CreateVodSessionRequest) + ListLiveAdTagDetailsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse) return object; - var message = new $root.google.cloud.video.stitcher.v1.CreateVodSessionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.vodSession != null) { - if (typeof object.vodSession !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.CreateVodSessionRequest.vodSession: object expected"); - message.vodSession = $root.google.cloud.video.stitcher.v1.VodSession.fromObject(object.vodSession); + var message = new $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse(); + if (object.liveAdTagDetails) { + if (!Array.isArray(object.liveAdTagDetails)) + throw TypeError(".google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse.liveAdTagDetails: array expected"); + message.liveAdTagDetails = []; + for (var i = 0; i < object.liveAdTagDetails.length; ++i) { + if (typeof object.liveAdTagDetails[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse.liveAdTagDetails: object expected"); + message.liveAdTagDetails[i] = $root.google.cloud.video.stitcher.v1.LiveAdTagDetail.fromObject(object.liveAdTagDetails[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateVodSessionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListLiveAdTagDetailsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @static - * @param {google.cloud.video.stitcher.v1.CreateVodSessionRequest} message CreateVodSessionRequest + * @param {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} message ListLiveAdTagDetailsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateVodSessionRequest.toObject = function toObject(message, options) { + ListLiveAdTagDetailsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.vodSession = null; + if (options.arrays || options.defaults) + object.liveAdTagDetails = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.liveAdTagDetails && message.liveAdTagDetails.length) { + object.liveAdTagDetails = []; + for (var j = 0; j < message.liveAdTagDetails.length; ++j) + object.liveAdTagDetails[j] = $root.google.cloud.video.stitcher.v1.LiveAdTagDetail.toObject(message.liveAdTagDetails[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.vodSession != null && message.hasOwnProperty("vodSession")) - object.vodSession = $root.google.cloud.video.stitcher.v1.VodSession.toObject(message.vodSession, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateVodSessionRequest to JSON. + * Converts this ListLiveAdTagDetailsResponse to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @instance * @returns {Object.} JSON object */ - CreateVodSessionRequest.prototype.toJSON = function toJSON() { + ListLiveAdTagDetailsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateVodSessionRequest + * Gets the default type url for ListLiveAdTagDetailsResponse * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateVodSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListLiveAdTagDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateVodSessionRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse"; }; - return CreateVodSessionRequest; + return ListLiveAdTagDetailsResponse; })(); - v1.GetVodSessionRequest = (function() { + v1.GetLiveAdTagDetailRequest = (function() { /** - * Properties of a GetVodSessionRequest. + * Properties of a GetLiveAdTagDetailRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IGetVodSessionRequest - * @property {string|null} [name] GetVodSessionRequest name + * @interface IGetLiveAdTagDetailRequest + * @property {string|null} [name] GetLiveAdTagDetailRequest name */ /** - * Constructs a new GetVodSessionRequest. + * Constructs a new GetLiveAdTagDetailRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a GetVodSessionRequest. - * @implements IGetVodSessionRequest + * @classdesc Represents a GetLiveAdTagDetailRequest. + * @implements IGetLiveAdTagDetailRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest=} [properties] Properties to set */ - function GetVodSessionRequest(properties) { + function GetLiveAdTagDetailRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12105,35 +15032,35 @@ } /** - * GetVodSessionRequest name. + * GetLiveAdTagDetailRequest name. * @member {string} name - * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest * @instance */ - GetVodSessionRequest.prototype.name = ""; + GetLiveAdTagDetailRequest.prototype.name = ""; /** - * Creates a new GetVodSessionRequest instance using the specified properties. + * Creates a new GetLiveAdTagDetailRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.GetVodSessionRequest} GetVodSessionRequest instance + * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest} GetLiveAdTagDetailRequest instance */ - GetVodSessionRequest.create = function create(properties) { - return new GetVodSessionRequest(properties); + GetLiveAdTagDetailRequest.create = function create(properties) { + return new GetLiveAdTagDetailRequest(properties); }; /** - * Encodes the specified GetVodSessionRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodSessionRequest.verify|verify} messages. + * Encodes the specified GetLiveAdTagDetailRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest} message GetVodSessionRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest} message GetLiveAdTagDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVodSessionRequest.encode = function encode(message, writer) { + GetLiveAdTagDetailRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -12142,33 +15069,33 @@ }; /** - * Encodes the specified GetVodSessionRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodSessionRequest.verify|verify} messages. + * Encodes the specified GetLiveAdTagDetailRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest} message GetVodSessionRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest} message GetLiveAdTagDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVodSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetLiveAdTagDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVodSessionRequest message from the specified reader or buffer. + * Decodes a GetLiveAdTagDetailRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.GetVodSessionRequest} GetVodSessionRequest + * @returns {google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest} GetLiveAdTagDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVodSessionRequest.decode = function decode(reader, length) { + GetLiveAdTagDetailRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetVodSessionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12185,30 +15112,30 @@ }; /** - * Decodes a GetVodSessionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetLiveAdTagDetailRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.GetVodSessionRequest} GetVodSessionRequest + * @returns {google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest} GetLiveAdTagDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVodSessionRequest.decodeDelimited = function decodeDelimited(reader) { + GetLiveAdTagDetailRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVodSessionRequest message. + * Verifies a GetLiveAdTagDetailRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVodSessionRequest.verify = function verify(message) { + GetLiveAdTagDetailRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -12218,32 +15145,32 @@ }; /** - * Creates a GetVodSessionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetLiveAdTagDetailRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.GetVodSessionRequest} GetVodSessionRequest + * @returns {google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest} GetLiveAdTagDetailRequest */ - GetVodSessionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.GetVodSessionRequest) + GetLiveAdTagDetailRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.GetVodSessionRequest(); + var message = new $root.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetVodSessionRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetLiveAdTagDetailRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest * @static - * @param {google.cloud.video.stitcher.v1.GetVodSessionRequest} message GetVodSessionRequest + * @param {google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest} message GetLiveAdTagDetailRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVodSessionRequest.toObject = function toObject(message, options) { + GetLiveAdTagDetailRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -12255,54 +15182,55 @@ }; /** - * Converts this GetVodSessionRequest to JSON. + * Converts this GetLiveAdTagDetailRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest * @instance * @returns {Object.} JSON object */ - GetVodSessionRequest.prototype.toJSON = function toJSON() { + GetLiveAdTagDetailRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetVodSessionRequest + * Gets the default type url for GetLiveAdTagDetailRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetVodSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetLiveAdTagDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetVodSessionRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest"; }; - return GetVodSessionRequest; + return GetLiveAdTagDetailRequest; })(); - v1.ListVodStitchDetailsRequest = (function() { + v1.CreateSlateRequest = (function() { /** - * Properties of a ListVodStitchDetailsRequest. + * Properties of a CreateSlateRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IListVodStitchDetailsRequest - * @property {string|null} [parent] ListVodStitchDetailsRequest parent - * @property {number|null} [pageSize] ListVodStitchDetailsRequest pageSize - * @property {string|null} [pageToken] ListVodStitchDetailsRequest pageToken + * @interface ICreateSlateRequest + * @property {string|null} [parent] CreateSlateRequest parent + * @property {string|null} [slateId] CreateSlateRequest slateId + * @property {google.cloud.video.stitcher.v1.ISlate|null} [slate] CreateSlateRequest slate + * @property {string|null} [requestId] CreateSlateRequest requestId */ /** - * Constructs a new ListVodStitchDetailsRequest. + * Constructs a new CreateSlateRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListVodStitchDetailsRequest. - * @implements IListVodStitchDetailsRequest + * @classdesc Represents a CreateSlateRequest. + * @implements ICreateSlateRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest=} [properties] Properties to set */ - function ListVodStitchDetailsRequest(properties) { + function CreateSlateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12310,90 +15238,100 @@ } /** - * ListVodStitchDetailsRequest parent. + * CreateSlateRequest parent. * @member {string} parent - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @instance */ - ListVodStitchDetailsRequest.prototype.parent = ""; + CreateSlateRequest.prototype.parent = ""; /** - * ListVodStitchDetailsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * CreateSlateRequest slateId. + * @member {string} slateId + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @instance */ - ListVodStitchDetailsRequest.prototype.pageSize = 0; + CreateSlateRequest.prototype.slateId = ""; /** - * ListVodStitchDetailsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * CreateSlateRequest slate. + * @member {google.cloud.video.stitcher.v1.ISlate|null|undefined} slate + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @instance */ - ListVodStitchDetailsRequest.prototype.pageToken = ""; + CreateSlateRequest.prototype.slate = null; /** - * Creates a new ListVodStitchDetailsRequest instance using the specified properties. + * CreateSlateRequest requestId. + * @member {string} requestId + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @instance + */ + CreateSlateRequest.prototype.requestId = ""; + + /** + * Creates a new CreateSlateRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest instance + * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.CreateSlateRequest} CreateSlateRequest instance */ - ListVodStitchDetailsRequest.create = function create(properties) { - return new ListVodStitchDetailsRequest(properties); + CreateSlateRequest.create = function create(properties) { + return new CreateSlateRequest(properties); }; /** - * Encodes the specified ListVodStitchDetailsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest.verify|verify} messages. + * Encodes the specified CreateSlateRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateSlateRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest} message ListVodStitchDetailsRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest} message CreateSlateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVodStitchDetailsRequest.encode = function encode(message, writer) { + CreateSlateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.slateId != null && Object.hasOwnProperty.call(message, "slateId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.slateId); + if (message.slate != null && Object.hasOwnProperty.call(message, "slate")) + $root.google.cloud.video.stitcher.v1.Slate.encode(message.slate, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified ListVodStitchDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest.verify|verify} messages. + * Encodes the specified CreateSlateRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateSlateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest} message ListVodStitchDetailsRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest} message CreateSlateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVodStitchDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateSlateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVodStitchDetailsRequest message from the specified reader or buffer. + * Decodes a CreateSlateRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest + * @returns {google.cloud.video.stitcher.v1.CreateSlateRequest} CreateSlateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVodStitchDetailsRequest.decode = function decode(reader, length) { + CreateSlateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.CreateSlateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12402,11 +15340,15 @@ break; } case 2: { - message.pageSize = reader.int32(); + message.slateId = reader.string(); break; } case 3: { - message.pageToken = reader.string(); + message.slate = $root.google.cloud.video.stitcher.v1.Slate.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); break; } default: @@ -12418,141 +15360,152 @@ }; /** - * Decodes a ListVodStitchDetailsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateSlateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest + * @returns {google.cloud.video.stitcher.v1.CreateSlateRequest} CreateSlateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVodStitchDetailsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateSlateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVodStitchDetailsRequest message. + * Verifies a CreateSlateRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVodStitchDetailsRequest.verify = function verify(message) { + CreateSlateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.slateId != null && message.hasOwnProperty("slateId")) + if (!$util.isString(message.slateId)) + return "slateId: string expected"; + if (message.slate != null && message.hasOwnProperty("slate")) { + var error = $root.google.cloud.video.stitcher.v1.Slate.verify(message.slate); + if (error) + return "slate." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a ListVodStitchDetailsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSlateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest + * @returns {google.cloud.video.stitcher.v1.CreateSlateRequest} CreateSlateRequest */ - ListVodStitchDetailsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest) + CreateSlateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.CreateSlateRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest(); + var message = new $root.google.cloud.video.stitcher.v1.CreateSlateRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + if (object.slateId != null) + message.slateId = String(object.slateId); + if (object.slate != null) { + if (typeof object.slate !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.CreateSlateRequest.slate: object expected"); + message.slate = $root.google.cloud.video.stitcher.v1.Slate.fromObject(object.slate); + } + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ListVodStitchDetailsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateSlateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} message ListVodStitchDetailsRequest + * @param {google.cloud.video.stitcher.v1.CreateSlateRequest} message CreateSlateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVodStitchDetailsRequest.toObject = function toObject(message, options) { + CreateSlateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.slateId = ""; + object.slate = null; + object.requestId = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.slateId != null && message.hasOwnProperty("slateId")) + object.slateId = message.slateId; + if (message.slate != null && message.hasOwnProperty("slate")) + object.slate = $root.google.cloud.video.stitcher.v1.Slate.toObject(message.slate, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this ListVodStitchDetailsRequest to JSON. + * Converts this CreateSlateRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @instance * @returns {Object.} JSON object */ - ListVodStitchDetailsRequest.prototype.toJSON = function toJSON() { + CreateSlateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVodStitchDetailsRequest + * Gets the default type url for CreateSlateRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVodStitchDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateSlateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateSlateRequest"; }; - return ListVodStitchDetailsRequest; + return CreateSlateRequest; })(); - v1.ListVodStitchDetailsResponse = (function() { + v1.GetSlateRequest = (function() { /** - * Properties of a ListVodStitchDetailsResponse. + * Properties of a GetSlateRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IListVodStitchDetailsResponse - * @property {Array.|null} [vodStitchDetails] ListVodStitchDetailsResponse vodStitchDetails - * @property {string|null} [nextPageToken] ListVodStitchDetailsResponse nextPageToken + * @interface IGetSlateRequest + * @property {string|null} [name] GetSlateRequest name */ /** - * Constructs a new ListVodStitchDetailsResponse. + * Constructs a new GetSlateRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListVodStitchDetailsResponse. - * @implements IListVodStitchDetailsResponse + * @classdesc Represents a GetSlateRequest. + * @implements IGetSlateRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IGetSlateRequest=} [properties] Properties to set */ - function ListVodStitchDetailsResponse(properties) { - this.vodStitchDetails = []; + function GetSlateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12560,92 +15513,75 @@ } /** - * ListVodStitchDetailsResponse vodStitchDetails. - * @member {Array.} vodStitchDetails - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse - * @instance - */ - ListVodStitchDetailsResponse.prototype.vodStitchDetails = $util.emptyArray; - - /** - * ListVodStitchDetailsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse + * GetSlateRequest name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.GetSlateRequest * @instance */ - ListVodStitchDetailsResponse.prototype.nextPageToken = ""; + GetSlateRequest.prototype.name = ""; /** - * Creates a new ListVodStitchDetailsResponse instance using the specified properties. + * Creates a new GetSlateRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse instance + * @param {google.cloud.video.stitcher.v1.IGetSlateRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.GetSlateRequest} GetSlateRequest instance */ - ListVodStitchDetailsResponse.create = function create(properties) { - return new ListVodStitchDetailsResponse(properties); + GetSlateRequest.create = function create(properties) { + return new GetSlateRequest(properties); }; /** - * Encodes the specified ListVodStitchDetailsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse.verify|verify} messages. + * Encodes the specified GetSlateRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetSlateRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse} message ListVodStitchDetailsResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetSlateRequest} message GetSlateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVodStitchDetailsResponse.encode = function encode(message, writer) { + GetSlateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.vodStitchDetails != null && message.vodStitchDetails.length) - for (var i = 0; i < message.vodStitchDetails.length; ++i) - $root.google.cloud.video.stitcher.v1.VodStitchDetail.encode(message.vodStitchDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListVodStitchDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse.verify|verify} messages. + * Encodes the specified GetSlateRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetSlateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse} message ListVodStitchDetailsResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetSlateRequest} message GetSlateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVodStitchDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSlateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVodStitchDetailsResponse message from the specified reader or buffer. + * Decodes a GetSlateRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetSlateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse + * @returns {google.cloud.video.stitcher.v1.GetSlateRequest} GetSlateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVodStitchDetailsResponse.decode = function decode(reader, length) { + GetSlateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetSlateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.vodStitchDetails && message.vodStitchDetails.length)) - message.vodStitchDetails = []; - message.vodStitchDetails.push($root.google.cloud.video.stitcher.v1.VodStitchDetail.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -12657,148 +15593,126 @@ }; /** - * Decodes a ListVodStitchDetailsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSlateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetSlateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse + * @returns {google.cloud.video.stitcher.v1.GetSlateRequest} GetSlateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVodStitchDetailsResponse.decodeDelimited = function decodeDelimited(reader) { + GetSlateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVodStitchDetailsResponse message. + * Verifies a GetSlateRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetSlateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVodStitchDetailsResponse.verify = function verify(message) { + GetSlateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.vodStitchDetails != null && message.hasOwnProperty("vodStitchDetails")) { - if (!Array.isArray(message.vodStitchDetails)) - return "vodStitchDetails: array expected"; - for (var i = 0; i < message.vodStitchDetails.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.VodStitchDetail.verify(message.vodStitchDetails[i]); - if (error) - return "vodStitchDetails." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListVodStitchDetailsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSlateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetSlateRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse + * @returns {google.cloud.video.stitcher.v1.GetSlateRequest} GetSlateRequest */ - ListVodStitchDetailsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse) + GetSlateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.GetSlateRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse(); - if (object.vodStitchDetails) { - if (!Array.isArray(object.vodStitchDetails)) - throw TypeError(".google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse.vodStitchDetails: array expected"); - message.vodStitchDetails = []; - for (var i = 0; i < object.vodStitchDetails.length; ++i) { - if (typeof object.vodStitchDetails[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse.vodStitchDetails: object expected"); - message.vodStitchDetails[i] = $root.google.cloud.video.stitcher.v1.VodStitchDetail.fromObject(object.vodStitchDetails[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.video.stitcher.v1.GetSlateRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListVodStitchDetailsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSlateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} message ListVodStitchDetailsResponse + * @param {google.cloud.video.stitcher.v1.GetSlateRequest} message GetSlateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVodStitchDetailsResponse.toObject = function toObject(message, options) { + GetSlateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.vodStitchDetails = []; if (options.defaults) - object.nextPageToken = ""; - if (message.vodStitchDetails && message.vodStitchDetails.length) { - object.vodStitchDetails = []; - for (var j = 0; j < message.vodStitchDetails.length; ++j) - object.vodStitchDetails[j] = $root.google.cloud.video.stitcher.v1.VodStitchDetail.toObject(message.vodStitchDetails[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListVodStitchDetailsResponse to JSON. + * Converts this GetSlateRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetSlateRequest * @instance * @returns {Object.} JSON object */ - ListVodStitchDetailsResponse.prototype.toJSON = function toJSON() { + GetSlateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVodStitchDetailsResponse + * Gets the default type url for GetSlateRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetSlateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVodStitchDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSlateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetSlateRequest"; }; - return ListVodStitchDetailsResponse; + return GetSlateRequest; })(); - v1.GetVodStitchDetailRequest = (function() { + v1.ListSlatesRequest = (function() { /** - * Properties of a GetVodStitchDetailRequest. + * Properties of a ListSlatesRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IGetVodStitchDetailRequest - * @property {string|null} [name] GetVodStitchDetailRequest name + * @interface IListSlatesRequest + * @property {string|null} [parent] ListSlatesRequest parent + * @property {number|null} [pageSize] ListSlatesRequest pageSize + * @property {string|null} [pageToken] ListSlatesRequest pageToken + * @property {string|null} [filter] ListSlatesRequest filter + * @property {string|null} [orderBy] ListSlatesRequest orderBy */ /** - * Constructs a new GetVodStitchDetailRequest. + * Constructs a new ListSlatesRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a GetVodStitchDetailRequest. - * @implements IGetVodStitchDetailRequest + * @classdesc Represents a ListSlatesRequest. + * @implements IListSlatesRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListSlatesRequest=} [properties] Properties to set */ - function GetVodStitchDetailRequest(properties) { + function ListSlatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12806,75 +15720,131 @@ } /** - * GetVodStitchDetailRequest name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest + * ListSlatesRequest parent. + * @member {string} parent + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest * @instance */ - GetVodStitchDetailRequest.prototype.name = ""; + ListSlatesRequest.prototype.parent = ""; /** - * Creates a new GetVodStitchDetailRequest instance using the specified properties. + * ListSlatesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @instance + */ + ListSlatesRequest.prototype.pageSize = 0; + + /** + * ListSlatesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @instance + */ + ListSlatesRequest.prototype.pageToken = ""; + + /** + * ListSlatesRequest filter. + * @member {string} filter + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @instance + */ + ListSlatesRequest.prototype.filter = ""; + + /** + * ListSlatesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @instance + */ + ListSlatesRequest.prototype.orderBy = ""; + + /** + * Creates a new ListSlatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} GetVodStitchDetailRequest instance + * @param {google.cloud.video.stitcher.v1.IListSlatesRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListSlatesRequest} ListSlatesRequest instance */ - GetVodStitchDetailRequest.create = function create(properties) { - return new GetVodStitchDetailRequest(properties); + ListSlatesRequest.create = function create(properties) { + return new ListSlatesRequest(properties); }; /** - * Encodes the specified GetVodStitchDetailRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodStitchDetailRequest.verify|verify} messages. + * Encodes the specified ListSlatesRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListSlatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest} message GetVodStitchDetailRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListSlatesRequest} message ListSlatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVodStitchDetailRequest.encode = function encode(message, writer) { + ListSlatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified GetVodStitchDetailRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodStitchDetailRequest.verify|verify} messages. + * Encodes the specified ListSlatesRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListSlatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest} message GetVodStitchDetailRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListSlatesRequest} message ListSlatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVodStitchDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSlatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVodStitchDetailRequest message from the specified reader or buffer. + * Decodes a ListSlatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} GetVodStitchDetailRequest + * @returns {google.cloud.video.stitcher.v1.ListSlatesRequest} ListSlatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVodStitchDetailRequest.decode = function decode(reader, length) { + ListSlatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListSlatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -12886,124 +15856,159 @@ }; /** - * Decodes a GetVodStitchDetailRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSlatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} GetVodStitchDetailRequest + * @returns {google.cloud.video.stitcher.v1.ListSlatesRequest} ListSlatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVodStitchDetailRequest.decodeDelimited = function decodeDelimited(reader) { + ListSlatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVodStitchDetailRequest message. + * Verifies a ListSlatesRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVodStitchDetailRequest.verify = function verify(message) { + ListSlatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a GetVodStitchDetailRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSlatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} GetVodStitchDetailRequest + * @returns {google.cloud.video.stitcher.v1.ListSlatesRequest} ListSlatesRequest */ - GetVodStitchDetailRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest) + ListSlatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListSlatesRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.video.stitcher.v1.ListSlatesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a GetVodStitchDetailRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSlatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest * @static - * @param {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} message GetVodStitchDetailRequest + * @param {google.cloud.video.stitcher.v1.ListSlatesRequest} message ListSlatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVodStitchDetailRequest.toObject = function toObject(message, options) { + ListSlatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this GetVodStitchDetailRequest to JSON. + * Converts this ListSlatesRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest * @instance * @returns {Object.} JSON object */ - GetVodStitchDetailRequest.prototype.toJSON = function toJSON() { + ListSlatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetVodStitchDetailRequest + * Gets the default type url for ListSlatesRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetVodStitchDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSlatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetVodStitchDetailRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListSlatesRequest"; }; - return GetVodStitchDetailRequest; + return ListSlatesRequest; })(); - v1.ListVodAdTagDetailsRequest = (function() { + v1.ListSlatesResponse = (function() { /** - * Properties of a ListVodAdTagDetailsRequest. + * Properties of a ListSlatesResponse. * @memberof google.cloud.video.stitcher.v1 - * @interface IListVodAdTagDetailsRequest - * @property {string|null} [parent] ListVodAdTagDetailsRequest parent - * @property {number|null} [pageSize] ListVodAdTagDetailsRequest pageSize - * @property {string|null} [pageToken] ListVodAdTagDetailsRequest pageToken + * @interface IListSlatesResponse + * @property {Array.|null} [slates] ListSlatesResponse slates + * @property {string|null} [nextPageToken] ListSlatesResponse nextPageToken + * @property {Array.|null} [unreachable] ListSlatesResponse unreachable */ /** - * Constructs a new ListVodAdTagDetailsRequest. + * Constructs a new ListSlatesResponse. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListVodAdTagDetailsRequest. - * @implements IListVodAdTagDetailsRequest + * @classdesc Represents a ListSlatesResponse. + * @implements IListSlatesResponse * @constructor - * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListSlatesResponse=} [properties] Properties to set */ - function ListVodAdTagDetailsRequest(properties) { + function ListSlatesResponse(properties) { + this.slates = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13011,103 +16016,109 @@ } /** - * ListVodAdTagDetailsRequest parent. - * @member {string} parent - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * ListSlatesResponse slates. + * @member {Array.} slates + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @instance */ - ListVodAdTagDetailsRequest.prototype.parent = ""; + ListSlatesResponse.prototype.slates = $util.emptyArray; /** - * ListVodAdTagDetailsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * ListSlatesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @instance */ - ListVodAdTagDetailsRequest.prototype.pageSize = 0; + ListSlatesResponse.prototype.nextPageToken = ""; /** - * ListVodAdTagDetailsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * ListSlatesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @instance */ - ListVodAdTagDetailsRequest.prototype.pageToken = ""; + ListSlatesResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new ListVodAdTagDetailsRequest instance using the specified properties. + * Creates a new ListSlatesResponse instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @static - * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest instance + * @param {google.cloud.video.stitcher.v1.IListSlatesResponse=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListSlatesResponse} ListSlatesResponse instance */ - ListVodAdTagDetailsRequest.create = function create(properties) { - return new ListVodAdTagDetailsRequest(properties); + ListSlatesResponse.create = function create(properties) { + return new ListSlatesResponse(properties); }; /** - * Encodes the specified ListVodAdTagDetailsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest.verify|verify} messages. + * Encodes the specified ListSlatesResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListSlatesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @static - * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest} message ListVodAdTagDetailsRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListSlatesResponse} message ListSlatesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVodAdTagDetailsRequest.encode = function encode(message, writer) { + ListSlatesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.slates != null && message.slates.length) + for (var i = 0; i < message.slates.length; ++i) + $root.google.cloud.video.stitcher.v1.Slate.encode(message.slates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified ListVodAdTagDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest.verify|verify} messages. + * Encodes the specified ListSlatesResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListSlatesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @static - * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest} message ListVodAdTagDetailsRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListSlatesResponse} message ListSlatesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVodAdTagDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSlatesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVodAdTagDetailsRequest message from the specified reader or buffer. + * Decodes a ListSlatesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest + * @returns {google.cloud.video.stitcher.v1.ListSlatesResponse} ListSlatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVodAdTagDetailsRequest.decode = function decode(reader, length) { + ListSlatesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListSlatesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.slates && message.slates.length)) + message.slates = []; + message.slates.push($root.google.cloud.video.stitcher.v1.Slate.decode(reader, reader.uint32())); break; } case 2: { - message.pageSize = reader.int32(); + message.nextPageToken = reader.string(); break; } case 3: { - message.pageToken = reader.string(); + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -13119,141 +16130,170 @@ }; /** - * Decodes a ListVodAdTagDetailsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSlatesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest + * @returns {google.cloud.video.stitcher.v1.ListSlatesResponse} ListSlatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVodAdTagDetailsRequest.decodeDelimited = function decodeDelimited(reader) { + ListSlatesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVodAdTagDetailsRequest message. + * Verifies a ListSlatesResponse message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVodAdTagDetailsRequest.verify = function verify(message) { + ListSlatesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.slates != null && message.hasOwnProperty("slates")) { + if (!Array.isArray(message.slates)) + return "slates: array expected"; + for (var i = 0; i < message.slates.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.Slate.verify(message.slates[i]); + if (error) + return "slates." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates a ListVodAdTagDetailsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSlatesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest + * @returns {google.cloud.video.stitcher.v1.ListSlatesResponse} ListSlatesResponse */ - ListVodAdTagDetailsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest) + ListSlatesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListSlatesResponse) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.video.stitcher.v1.ListSlatesResponse(); + if (object.slates) { + if (!Array.isArray(object.slates)) + throw TypeError(".google.cloud.video.stitcher.v1.ListSlatesResponse.slates: array expected"); + message.slates = []; + for (var i = 0; i < object.slates.length; ++i) { + if (typeof object.slates[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.ListSlatesResponse.slates: object expected"); + message.slates[i] = $root.google.cloud.video.stitcher.v1.Slate.fromObject(object.slates[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.video.stitcher.v1.ListSlatesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a ListVodAdTagDetailsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSlatesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @static - * @param {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} message ListVodAdTagDetailsRequest + * @param {google.cloud.video.stitcher.v1.ListSlatesResponse} message ListSlatesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVodAdTagDetailsRequest.toObject = function toObject(message, options) { + ListSlatesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) { + object.slates = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.slates && message.slates.length) { + object.slates = []; + for (var j = 0; j < message.slates.length; ++j) + object.slates[j] = $root.google.cloud.video.stitcher.v1.Slate.toObject(message.slates[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; return object; }; /** - * Converts this ListVodAdTagDetailsRequest to JSON. + * Converts this ListSlatesResponse to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @instance * @returns {Object.} JSON object */ - ListVodAdTagDetailsRequest.prototype.toJSON = function toJSON() { + ListSlatesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVodAdTagDetailsRequest + * Gets the default type url for ListSlatesResponse * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVodAdTagDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSlatesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListSlatesResponse"; }; - return ListVodAdTagDetailsRequest; + return ListSlatesResponse; })(); - v1.ListVodAdTagDetailsResponse = (function() { + v1.UpdateSlateRequest = (function() { /** - * Properties of a ListVodAdTagDetailsResponse. + * Properties of an UpdateSlateRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IListVodAdTagDetailsResponse - * @property {Array.|null} [vodAdTagDetails] ListVodAdTagDetailsResponse vodAdTagDetails - * @property {string|null} [nextPageToken] ListVodAdTagDetailsResponse nextPageToken + * @interface IUpdateSlateRequest + * @property {google.cloud.video.stitcher.v1.ISlate|null} [slate] UpdateSlateRequest slate + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSlateRequest updateMask */ /** - * Constructs a new ListVodAdTagDetailsResponse. + * Constructs a new UpdateSlateRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListVodAdTagDetailsResponse. - * @implements IListVodAdTagDetailsResponse + * @classdesc Represents an UpdateSlateRequest. + * @implements IUpdateSlateRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest=} [properties] Properties to set */ - function ListVodAdTagDetailsResponse(properties) { - this.vodAdTagDetails = []; + function UpdateSlateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13261,92 +16301,89 @@ } /** - * ListVodAdTagDetailsResponse vodAdTagDetails. - * @member {Array.} vodAdTagDetails - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * UpdateSlateRequest slate. + * @member {google.cloud.video.stitcher.v1.ISlate|null|undefined} slate + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @instance */ - ListVodAdTagDetailsResponse.prototype.vodAdTagDetails = $util.emptyArray; + UpdateSlateRequest.prototype.slate = null; /** - * ListVodAdTagDetailsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * UpdateSlateRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @instance */ - ListVodAdTagDetailsResponse.prototype.nextPageToken = ""; + UpdateSlateRequest.prototype.updateMask = null; /** - * Creates a new ListVodAdTagDetailsResponse instance using the specified properties. + * Creates a new UpdateSlateRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse instance + * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.UpdateSlateRequest} UpdateSlateRequest instance */ - ListVodAdTagDetailsResponse.create = function create(properties) { - return new ListVodAdTagDetailsResponse(properties); + UpdateSlateRequest.create = function create(properties) { + return new UpdateSlateRequest(properties); }; /** - * Encodes the specified ListVodAdTagDetailsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse.verify|verify} messages. + * Encodes the specified UpdateSlateRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateSlateRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse} message ListVodAdTagDetailsResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest} message UpdateSlateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVodAdTagDetailsResponse.encode = function encode(message, writer) { + UpdateSlateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.vodAdTagDetails != null && message.vodAdTagDetails.length) - for (var i = 0; i < message.vodAdTagDetails.length; ++i) - $root.google.cloud.video.stitcher.v1.VodAdTagDetail.encode(message.vodAdTagDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.slate != null && Object.hasOwnProperty.call(message, "slate")) + $root.google.cloud.video.stitcher.v1.Slate.encode(message.slate, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListVodAdTagDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse.verify|verify} messages. + * Encodes the specified UpdateSlateRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateSlateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse} message ListVodAdTagDetailsResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest} message UpdateSlateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVodAdTagDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSlateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVodAdTagDetailsResponse message from the specified reader or buffer. + * Decodes an UpdateSlateRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse + * @returns {google.cloud.video.stitcher.v1.UpdateSlateRequest} UpdateSlateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVodAdTagDetailsResponse.decode = function decode(reader, length) { + UpdateSlateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.UpdateSlateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.vodAdTagDetails && message.vodAdTagDetails.length)) - message.vodAdTagDetails = []; - message.vodAdTagDetails.push($root.google.cloud.video.stitcher.v1.VodAdTagDetail.decode(reader, reader.uint32())); + message.slate = $root.google.cloud.video.stitcher.v1.Slate.decode(reader, reader.uint32()); break; } case 2: { - message.nextPageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -13358,148 +16395,141 @@ }; /** - * Decodes a ListVodAdTagDetailsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateSlateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse + * @returns {google.cloud.video.stitcher.v1.UpdateSlateRequest} UpdateSlateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVodAdTagDetailsResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateSlateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVodAdTagDetailsResponse message. + * Verifies an UpdateSlateRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVodAdTagDetailsResponse.verify = function verify(message) { + UpdateSlateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.vodAdTagDetails != null && message.hasOwnProperty("vodAdTagDetails")) { - if (!Array.isArray(message.vodAdTagDetails)) - return "vodAdTagDetails: array expected"; - for (var i = 0; i < message.vodAdTagDetails.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.VodAdTagDetail.verify(message.vodAdTagDetails[i]); - if (error) - return "vodAdTagDetails." + error; - } + if (message.slate != null && message.hasOwnProperty("slate")) { + var error = $root.google.cloud.video.stitcher.v1.Slate.verify(message.slate); + if (error) + return "slate." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListVodAdTagDetailsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSlateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse + * @returns {google.cloud.video.stitcher.v1.UpdateSlateRequest} UpdateSlateRequest */ - ListVodAdTagDetailsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse) + UpdateSlateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.UpdateSlateRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse(); - if (object.vodAdTagDetails) { - if (!Array.isArray(object.vodAdTagDetails)) - throw TypeError(".google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse.vodAdTagDetails: array expected"); - message.vodAdTagDetails = []; - for (var i = 0; i < object.vodAdTagDetails.length; ++i) { - if (typeof object.vodAdTagDetails[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse.vodAdTagDetails: object expected"); - message.vodAdTagDetails[i] = $root.google.cloud.video.stitcher.v1.VodAdTagDetail.fromObject(object.vodAdTagDetails[i]); - } + var message = new $root.google.cloud.video.stitcher.v1.UpdateSlateRequest(); + if (object.slate != null) { + if (typeof object.slate !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.UpdateSlateRequest.slate: object expected"); + message.slate = $root.google.cloud.video.stitcher.v1.Slate.fromObject(object.slate); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.UpdateSlateRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListVodAdTagDetailsResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSlateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} message ListVodAdTagDetailsResponse + * @param {google.cloud.video.stitcher.v1.UpdateSlateRequest} message UpdateSlateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVodAdTagDetailsResponse.toObject = function toObject(message, options) { + UpdateSlateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.vodAdTagDetails = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.vodAdTagDetails && message.vodAdTagDetails.length) { - object.vodAdTagDetails = []; - for (var j = 0; j < message.vodAdTagDetails.length; ++j) - object.vodAdTagDetails[j] = $root.google.cloud.video.stitcher.v1.VodAdTagDetail.toObject(message.vodAdTagDetails[j], options); + if (options.defaults) { + object.slate = null; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.slate != null && message.hasOwnProperty("slate")) + object.slate = $root.google.cloud.video.stitcher.v1.Slate.toObject(message.slate, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListVodAdTagDetailsResponse to JSON. + * Converts this UpdateSlateRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @instance * @returns {Object.} JSON object */ - ListVodAdTagDetailsResponse.prototype.toJSON = function toJSON() { + UpdateSlateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVodAdTagDetailsResponse + * Gets the default type url for UpdateSlateRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVodAdTagDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateSlateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.UpdateSlateRequest"; }; - return ListVodAdTagDetailsResponse; + return UpdateSlateRequest; })(); - v1.GetVodAdTagDetailRequest = (function() { + v1.DeleteSlateRequest = (function() { /** - * Properties of a GetVodAdTagDetailRequest. + * Properties of a DeleteSlateRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IGetVodAdTagDetailRequest - * @property {string|null} [name] GetVodAdTagDetailRequest name + * @interface IDeleteSlateRequest + * @property {string|null} [name] DeleteSlateRequest name */ /** - * Constructs a new GetVodAdTagDetailRequest. + * Constructs a new DeleteSlateRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a GetVodAdTagDetailRequest. - * @implements IGetVodAdTagDetailRequest + * @classdesc Represents a DeleteSlateRequest. + * @implements IDeleteSlateRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest=} [properties] Properties to set */ - function GetVodAdTagDetailRequest(properties) { + function DeleteSlateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13507,35 +16537,35 @@ } /** - * GetVodAdTagDetailRequest name. + * DeleteSlateRequest name. * @member {string} name - * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest * @instance */ - GetVodAdTagDetailRequest.prototype.name = ""; + DeleteSlateRequest.prototype.name = ""; /** - * Creates a new GetVodAdTagDetailRequest instance using the specified properties. + * Creates a new DeleteSlateRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} GetVodAdTagDetailRequest instance + * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.DeleteSlateRequest} DeleteSlateRequest instance */ - GetVodAdTagDetailRequest.create = function create(properties) { - return new GetVodAdTagDetailRequest(properties); + DeleteSlateRequest.create = function create(properties) { + return new DeleteSlateRequest(properties); }; /** - * Encodes the specified GetVodAdTagDetailRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest.verify|verify} messages. + * Encodes the specified DeleteSlateRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteSlateRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest} message GetVodAdTagDetailRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest} message DeleteSlateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVodAdTagDetailRequest.encode = function encode(message, writer) { + DeleteSlateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -13544,33 +16574,33 @@ }; /** - * Encodes the specified GetVodAdTagDetailRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest.verify|verify} messages. + * Encodes the specified DeleteSlateRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteSlateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest} message GetVodAdTagDetailRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest} message DeleteSlateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVodAdTagDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSlateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVodAdTagDetailRequest message from the specified reader or buffer. + * Decodes a DeleteSlateRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} GetVodAdTagDetailRequest + * @returns {google.cloud.video.stitcher.v1.DeleteSlateRequest} DeleteSlateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVodAdTagDetailRequest.decode = function decode(reader, length) { + DeleteSlateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.DeleteSlateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13587,30 +16617,30 @@ }; /** - * Decodes a GetVodAdTagDetailRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteSlateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} GetVodAdTagDetailRequest + * @returns {google.cloud.video.stitcher.v1.DeleteSlateRequest} DeleteSlateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVodAdTagDetailRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteSlateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVodAdTagDetailRequest message. + * Verifies a DeleteSlateRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVodAdTagDetailRequest.verify = function verify(message) { + DeleteSlateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -13620,32 +16650,32 @@ }; /** - * Creates a GetVodAdTagDetailRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSlateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} GetVodAdTagDetailRequest + * @returns {google.cloud.video.stitcher.v1.DeleteSlateRequest} DeleteSlateRequest */ - GetVodAdTagDetailRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest) + DeleteSlateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.DeleteSlateRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest(); + var message = new $root.google.cloud.video.stitcher.v1.DeleteSlateRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetVodAdTagDetailRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSlateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest * @static - * @param {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} message GetVodAdTagDetailRequest + * @param {google.cloud.video.stitcher.v1.DeleteSlateRequest} message DeleteSlateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVodAdTagDetailRequest.toObject = function toObject(message, options) { + DeleteSlateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -13657,54 +16687,53 @@ }; /** - * Converts this GetVodAdTagDetailRequest to JSON. + * Converts this DeleteSlateRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest * @instance * @returns {Object.} JSON object */ - GetVodAdTagDetailRequest.prototype.toJSON = function toJSON() { + DeleteSlateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetVodAdTagDetailRequest + * Gets the default type url for DeleteSlateRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetVodAdTagDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteSlateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.DeleteSlateRequest"; }; - return GetVodAdTagDetailRequest; + return DeleteSlateRequest; })(); - v1.ListLiveAdTagDetailsRequest = (function() { + v1.CreateLiveSessionRequest = (function() { /** - * Properties of a ListLiveAdTagDetailsRequest. + * Properties of a CreateLiveSessionRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IListLiveAdTagDetailsRequest - * @property {string|null} [parent] ListLiveAdTagDetailsRequest parent - * @property {number|null} [pageSize] ListLiveAdTagDetailsRequest pageSize - * @property {string|null} [pageToken] ListLiveAdTagDetailsRequest pageToken + * @interface ICreateLiveSessionRequest + * @property {string|null} [parent] CreateLiveSessionRequest parent + * @property {google.cloud.video.stitcher.v1.ILiveSession|null} [liveSession] CreateLiveSessionRequest liveSession */ /** - * Constructs a new ListLiveAdTagDetailsRequest. + * Constructs a new CreateLiveSessionRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListLiveAdTagDetailsRequest. - * @implements IListLiveAdTagDetailsRequest + * @classdesc Represents a CreateLiveSessionRequest. + * @implements ICreateLiveSessionRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest=} [properties] Properties to set */ - function ListLiveAdTagDetailsRequest(properties) { + function CreateLiveSessionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13712,90 +16741,80 @@ } /** - * ListLiveAdTagDetailsRequest parent. + * CreateLiveSessionRequest parent. * @member {string} parent - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest - * @instance - */ - ListLiveAdTagDetailsRequest.prototype.parent = ""; - - /** - * ListLiveAdTagDetailsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @instance */ - ListLiveAdTagDetailsRequest.prototype.pageSize = 0; + CreateLiveSessionRequest.prototype.parent = ""; /** - * ListLiveAdTagDetailsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * CreateLiveSessionRequest liveSession. + * @member {google.cloud.video.stitcher.v1.ILiveSession|null|undefined} liveSession + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @instance */ - ListLiveAdTagDetailsRequest.prototype.pageToken = ""; + CreateLiveSessionRequest.prototype.liveSession = null; /** - * Creates a new ListLiveAdTagDetailsRequest instance using the specified properties. + * Creates a new CreateLiveSessionRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} ListLiveAdTagDetailsRequest instance + * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.CreateLiveSessionRequest} CreateLiveSessionRequest instance */ - ListLiveAdTagDetailsRequest.create = function create(properties) { - return new ListLiveAdTagDetailsRequest(properties); + CreateLiveSessionRequest.create = function create(properties) { + return new CreateLiveSessionRequest(properties); }; /** - * Encodes the specified ListLiveAdTagDetailsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest.verify|verify} messages. + * Encodes the specified CreateLiveSessionRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateLiveSessionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest} message ListLiveAdTagDetailsRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest} message CreateLiveSessionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListLiveAdTagDetailsRequest.encode = function encode(message, writer) { + CreateLiveSessionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.liveSession != null && Object.hasOwnProperty.call(message, "liveSession")) + $root.google.cloud.video.stitcher.v1.LiveSession.encode(message.liveSession, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListLiveAdTagDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest.verify|verify} messages. + * Encodes the specified CreateLiveSessionRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateLiveSessionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest} message ListLiveAdTagDetailsRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest} message CreateLiveSessionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListLiveAdTagDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateLiveSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListLiveAdTagDetailsRequest message from the specified reader or buffer. + * Decodes a CreateLiveSessionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} ListLiveAdTagDetailsRequest + * @returns {google.cloud.video.stitcher.v1.CreateLiveSessionRequest} CreateLiveSessionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListLiveAdTagDetailsRequest.decode = function decode(reader, length) { + CreateLiveSessionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.CreateLiveSessionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13804,11 +16823,7 @@ break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.liveSession = $root.google.cloud.video.stitcher.v1.LiveSession.decode(reader, reader.uint32()); break; } default: @@ -13820,141 +16835,136 @@ }; /** - * Decodes a ListLiveAdTagDetailsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateLiveSessionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} ListLiveAdTagDetailsRequest + * @returns {google.cloud.video.stitcher.v1.CreateLiveSessionRequest} CreateLiveSessionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListLiveAdTagDetailsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateLiveSessionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListLiveAdTagDetailsRequest message. + * Verifies a CreateLiveSessionRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListLiveAdTagDetailsRequest.verify = function verify(message) { + CreateLiveSessionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.liveSession != null && message.hasOwnProperty("liveSession")) { + var error = $root.google.cloud.video.stitcher.v1.LiveSession.verify(message.liveSession); + if (error) + return "liveSession." + error; + } return null; }; /** - * Creates a ListLiveAdTagDetailsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateLiveSessionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} ListLiveAdTagDetailsRequest + * @returns {google.cloud.video.stitcher.v1.CreateLiveSessionRequest} CreateLiveSessionRequest */ - ListLiveAdTagDetailsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest) + CreateLiveSessionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.CreateLiveSessionRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest(); + var message = new $root.google.cloud.video.stitcher.v1.CreateLiveSessionRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + if (object.liveSession != null) { + if (typeof object.liveSession !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.CreateLiveSessionRequest.liveSession: object expected"); + message.liveSession = $root.google.cloud.video.stitcher.v1.LiveSession.fromObject(object.liveSession); + } return message; }; /** - * Creates a plain object from a ListLiveAdTagDetailsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateLiveSessionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @static - * @param {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} message ListLiveAdTagDetailsRequest + * @param {google.cloud.video.stitcher.v1.CreateLiveSessionRequest} message CreateLiveSessionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListLiveAdTagDetailsRequest.toObject = function toObject(message, options) { + CreateLiveSessionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.liveSession = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.liveSession != null && message.hasOwnProperty("liveSession")) + object.liveSession = $root.google.cloud.video.stitcher.v1.LiveSession.toObject(message.liveSession, options); return object; }; /** - * Converts this ListLiveAdTagDetailsRequest to JSON. + * Converts this CreateLiveSessionRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @instance * @returns {Object.} JSON object */ - ListLiveAdTagDetailsRequest.prototype.toJSON = function toJSON() { + CreateLiveSessionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListLiveAdTagDetailsRequest + * Gets the default type url for CreateLiveSessionRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListLiveAdTagDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateLiveSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateLiveSessionRequest"; }; - return ListLiveAdTagDetailsRequest; + return CreateLiveSessionRequest; })(); - v1.ListLiveAdTagDetailsResponse = (function() { + v1.GetLiveSessionRequest = (function() { /** - * Properties of a ListLiveAdTagDetailsResponse. + * Properties of a GetLiveSessionRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IListLiveAdTagDetailsResponse - * @property {Array.|null} [liveAdTagDetails] ListLiveAdTagDetailsResponse liveAdTagDetails - * @property {string|null} [nextPageToken] ListLiveAdTagDetailsResponse nextPageToken + * @interface IGetLiveSessionRequest + * @property {string|null} [name] GetLiveSessionRequest name */ /** - * Constructs a new ListLiveAdTagDetailsResponse. + * Constructs a new GetLiveSessionRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListLiveAdTagDetailsResponse. - * @implements IListLiveAdTagDetailsResponse + * @classdesc Represents a GetLiveSessionRequest. + * @implements IGetLiveSessionRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsResponse=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest=} [properties] Properties to set */ - function ListLiveAdTagDetailsResponse(properties) { - this.liveAdTagDetails = []; + function GetLiveSessionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13962,92 +16972,75 @@ } /** - * ListLiveAdTagDetailsResponse liveAdTagDetails. - * @member {Array.} liveAdTagDetails - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse - * @instance - */ - ListLiveAdTagDetailsResponse.prototype.liveAdTagDetails = $util.emptyArray; - - /** - * ListLiveAdTagDetailsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse + * GetLiveSessionRequest name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest * @instance */ - ListLiveAdTagDetailsResponse.prototype.nextPageToken = ""; + GetLiveSessionRequest.prototype.name = ""; /** - * Creates a new ListLiveAdTagDetailsResponse instance using the specified properties. + * Creates a new GetLiveSessionRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsResponse=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} ListLiveAdTagDetailsResponse instance + * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.GetLiveSessionRequest} GetLiveSessionRequest instance */ - ListLiveAdTagDetailsResponse.create = function create(properties) { - return new ListLiveAdTagDetailsResponse(properties); + GetLiveSessionRequest.create = function create(properties) { + return new GetLiveSessionRequest(properties); }; /** - * Encodes the specified ListLiveAdTagDetailsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse.verify|verify} messages. + * Encodes the specified GetLiveSessionRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveSessionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsResponse} message ListLiveAdTagDetailsResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest} message GetLiveSessionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListLiveAdTagDetailsResponse.encode = function encode(message, writer) { + GetLiveSessionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.liveAdTagDetails != null && message.liveAdTagDetails.length) - for (var i = 0; i < message.liveAdTagDetails.length; ++i) - $root.google.cloud.video.stitcher.v1.LiveAdTagDetail.encode(message.liveAdTagDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListLiveAdTagDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse.verify|verify} messages. + * Encodes the specified GetLiveSessionRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveSessionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsResponse} message ListLiveAdTagDetailsResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest} message GetLiveSessionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListLiveAdTagDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetLiveSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListLiveAdTagDetailsResponse message from the specified reader or buffer. + * Decodes a GetLiveSessionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} ListLiveAdTagDetailsResponse + * @returns {google.cloud.video.stitcher.v1.GetLiveSessionRequest} GetLiveSessionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListLiveAdTagDetailsResponse.decode = function decode(reader, length) { + GetLiveSessionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetLiveSessionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.liveAdTagDetails && message.liveAdTagDetails.length)) - message.liveAdTagDetails = []; - message.liveAdTagDetails.push($root.google.cloud.video.stitcher.v1.LiveAdTagDetail.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -14059,148 +17052,125 @@ }; /** - * Decodes a ListLiveAdTagDetailsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetLiveSessionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} ListLiveAdTagDetailsResponse + * @returns {google.cloud.video.stitcher.v1.GetLiveSessionRequest} GetLiveSessionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListLiveAdTagDetailsResponse.decodeDelimited = function decodeDelimited(reader) { + GetLiveSessionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListLiveAdTagDetailsResponse message. + * Verifies a GetLiveSessionRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListLiveAdTagDetailsResponse.verify = function verify(message) { + GetLiveSessionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.liveAdTagDetails != null && message.hasOwnProperty("liveAdTagDetails")) { - if (!Array.isArray(message.liveAdTagDetails)) - return "liveAdTagDetails: array expected"; - for (var i = 0; i < message.liveAdTagDetails.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.LiveAdTagDetail.verify(message.liveAdTagDetails[i]); - if (error) - return "liveAdTagDetails." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListLiveAdTagDetailsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetLiveSessionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} ListLiveAdTagDetailsResponse + * @returns {google.cloud.video.stitcher.v1.GetLiveSessionRequest} GetLiveSessionRequest */ - ListLiveAdTagDetailsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse) + GetLiveSessionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.GetLiveSessionRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse(); - if (object.liveAdTagDetails) { - if (!Array.isArray(object.liveAdTagDetails)) - throw TypeError(".google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse.liveAdTagDetails: array expected"); - message.liveAdTagDetails = []; - for (var i = 0; i < object.liveAdTagDetails.length; ++i) { - if (typeof object.liveAdTagDetails[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse.liveAdTagDetails: object expected"); - message.liveAdTagDetails[i] = $root.google.cloud.video.stitcher.v1.LiveAdTagDetail.fromObject(object.liveAdTagDetails[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.video.stitcher.v1.GetLiveSessionRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListLiveAdTagDetailsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetLiveSessionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest * @static - * @param {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse} message ListLiveAdTagDetailsResponse + * @param {google.cloud.video.stitcher.v1.GetLiveSessionRequest} message GetLiveSessionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListLiveAdTagDetailsResponse.toObject = function toObject(message, options) { + GetLiveSessionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.liveAdTagDetails = []; if (options.defaults) - object.nextPageToken = ""; - if (message.liveAdTagDetails && message.liveAdTagDetails.length) { - object.liveAdTagDetails = []; - for (var j = 0; j < message.liveAdTagDetails.length; ++j) - object.liveAdTagDetails[j] = $root.google.cloud.video.stitcher.v1.LiveAdTagDetail.toObject(message.liveAdTagDetails[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListLiveAdTagDetailsResponse to JSON. + * Converts this GetLiveSessionRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest * @instance * @returns {Object.} JSON object */ - ListLiveAdTagDetailsResponse.prototype.toJSON = function toJSON() { + GetLiveSessionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListLiveAdTagDetailsResponse + * Gets the default type url for GetLiveSessionRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse + * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListLiveAdTagDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetLiveSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetLiveSessionRequest"; }; - return ListLiveAdTagDetailsResponse; + return GetLiveSessionRequest; })(); - v1.GetLiveAdTagDetailRequest = (function() { + v1.CreateLiveConfigRequest = (function() { /** - * Properties of a GetLiveAdTagDetailRequest. + * Properties of a CreateLiveConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IGetLiveAdTagDetailRequest - * @property {string|null} [name] GetLiveAdTagDetailRequest name + * @interface ICreateLiveConfigRequest + * @property {string|null} [parent] CreateLiveConfigRequest parent + * @property {string|null} [liveConfigId] CreateLiveConfigRequest liveConfigId + * @property {google.cloud.video.stitcher.v1.ILiveConfig|null} [liveConfig] CreateLiveConfigRequest liveConfig + * @property {string|null} [requestId] CreateLiveConfigRequest requestId */ /** - * Constructs a new GetLiveAdTagDetailRequest. + * Constructs a new CreateLiveConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a GetLiveAdTagDetailRequest. - * @implements IGetLiveAdTagDetailRequest + * @classdesc Represents a CreateLiveConfigRequest. + * @implements ICreateLiveConfigRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest=} [properties] Properties to set */ - function GetLiveAdTagDetailRequest(properties) { + function CreateLiveConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14208,75 +17178,117 @@ } /** - * GetLiveAdTagDetailRequest name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest + * CreateLiveConfigRequest parent. + * @member {string} parent + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest * @instance */ - GetLiveAdTagDetailRequest.prototype.name = ""; + CreateLiveConfigRequest.prototype.parent = ""; /** - * Creates a new GetLiveAdTagDetailRequest instance using the specified properties. + * CreateLiveConfigRequest liveConfigId. + * @member {string} liveConfigId + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @instance + */ + CreateLiveConfigRequest.prototype.liveConfigId = ""; + + /** + * CreateLiveConfigRequest liveConfig. + * @member {google.cloud.video.stitcher.v1.ILiveConfig|null|undefined} liveConfig + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @instance + */ + CreateLiveConfigRequest.prototype.liveConfig = null; + + /** + * CreateLiveConfigRequest requestId. + * @member {string} requestId + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @instance + */ + CreateLiveConfigRequest.prototype.requestId = ""; + + /** + * Creates a new CreateLiveConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest} GetLiveAdTagDetailRequest instance + * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.CreateLiveConfigRequest} CreateLiveConfigRequest instance */ - GetLiveAdTagDetailRequest.create = function create(properties) { - return new GetLiveAdTagDetailRequest(properties); + CreateLiveConfigRequest.create = function create(properties) { + return new CreateLiveConfigRequest(properties); }; /** - * Encodes the specified GetLiveAdTagDetailRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest.verify|verify} messages. + * Encodes the specified CreateLiveConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateLiveConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest} message GetLiveAdTagDetailRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest} message CreateLiveConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetLiveAdTagDetailRequest.encode = function encode(message, writer) { + CreateLiveConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.liveConfigId != null && Object.hasOwnProperty.call(message, "liveConfigId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.liveConfigId); + if (message.liveConfig != null && Object.hasOwnProperty.call(message, "liveConfig")) + $root.google.cloud.video.stitcher.v1.LiveConfig.encode(message.liveConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified GetLiveAdTagDetailRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest.verify|verify} messages. + * Encodes the specified CreateLiveConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateLiveConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest} message GetLiveAdTagDetailRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest} message CreateLiveConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetLiveAdTagDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateLiveConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetLiveAdTagDetailRequest message from the specified reader or buffer. + * Decodes a CreateLiveConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest} GetLiveAdTagDetailRequest + * @returns {google.cloud.video.stitcher.v1.CreateLiveConfigRequest} CreateLiveConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetLiveAdTagDetailRequest.decode = function decode(reader, length) { + CreateLiveConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.CreateLiveConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.liveConfigId = reader.string(); + break; + } + case 3: { + message.liveConfig = $root.google.cloud.video.stitcher.v1.LiveConfig.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); break; } default: @@ -14288,125 +17300,156 @@ }; /** - * Decodes a GetLiveAdTagDetailRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateLiveConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest} GetLiveAdTagDetailRequest + * @returns {google.cloud.video.stitcher.v1.CreateLiveConfigRequest} CreateLiveConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetLiveAdTagDetailRequest.decodeDelimited = function decodeDelimited(reader) { + CreateLiveConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetLiveAdTagDetailRequest message. + * Verifies a CreateLiveConfigRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetLiveAdTagDetailRequest.verify = function verify(message) { + CreateLiveConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.liveConfigId != null && message.hasOwnProperty("liveConfigId")) + if (!$util.isString(message.liveConfigId)) + return "liveConfigId: string expected"; + if (message.liveConfig != null && message.hasOwnProperty("liveConfig")) { + var error = $root.google.cloud.video.stitcher.v1.LiveConfig.verify(message.liveConfig); + if (error) + return "liveConfig." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a GetLiveAdTagDetailRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateLiveConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest} GetLiveAdTagDetailRequest + * @returns {google.cloud.video.stitcher.v1.CreateLiveConfigRequest} CreateLiveConfigRequest */ - GetLiveAdTagDetailRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest) + CreateLiveConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.CreateLiveConfigRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.video.stitcher.v1.CreateLiveConfigRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.liveConfigId != null) + message.liveConfigId = String(object.liveConfigId); + if (object.liveConfig != null) { + if (typeof object.liveConfig !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.CreateLiveConfigRequest.liveConfig: object expected"); + message.liveConfig = $root.google.cloud.video.stitcher.v1.LiveConfig.fromObject(object.liveConfig); + } + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a GetLiveAdTagDetailRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateLiveConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest} message GetLiveAdTagDetailRequest + * @param {google.cloud.video.stitcher.v1.CreateLiveConfigRequest} message CreateLiveConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetLiveAdTagDetailRequest.toObject = function toObject(message, options) { + CreateLiveConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.liveConfigId = ""; + object.liveConfig = null; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.liveConfigId != null && message.hasOwnProperty("liveConfigId")) + object.liveConfigId = message.liveConfigId; + if (message.liveConfig != null && message.hasOwnProperty("liveConfig")) + object.liveConfig = $root.google.cloud.video.stitcher.v1.LiveConfig.toObject(message.liveConfig, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this GetLiveAdTagDetailRequest to JSON. + * Converts this CreateLiveConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest * @instance * @returns {Object.} JSON object */ - GetLiveAdTagDetailRequest.prototype.toJSON = function toJSON() { + CreateLiveConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetLiveAdTagDetailRequest + * Gets the default type url for CreateLiveConfigRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest + * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetLiveAdTagDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateLiveConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateLiveConfigRequest"; }; - return GetLiveAdTagDetailRequest; + return CreateLiveConfigRequest; })(); - v1.CreateSlateRequest = (function() { + v1.ListLiveConfigsRequest = (function() { /** - * Properties of a CreateSlateRequest. + * Properties of a ListLiveConfigsRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface ICreateSlateRequest - * @property {string|null} [parent] CreateSlateRequest parent - * @property {string|null} [slateId] CreateSlateRequest slateId - * @property {google.cloud.video.stitcher.v1.ISlate|null} [slate] CreateSlateRequest slate - * @property {string|null} [requestId] CreateSlateRequest requestId + * @interface IListLiveConfigsRequest + * @property {string|null} [parent] ListLiveConfigsRequest parent + * @property {number|null} [pageSize] ListLiveConfigsRequest pageSize + * @property {string|null} [pageToken] ListLiveConfigsRequest pageToken + * @property {string|null} [filter] ListLiveConfigsRequest filter + * @property {string|null} [orderBy] ListLiveConfigsRequest orderBy */ /** - * Constructs a new CreateSlateRequest. + * Constructs a new ListLiveConfigsRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a CreateSlateRequest. - * @implements ICreateSlateRequest + * @classdesc Represents a ListLiveConfigsRequest. + * @implements IListLiveConfigsRequest * @constructor - * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest=} [properties] Properties to set */ - function CreateSlateRequest(properties) { + function ListLiveConfigsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14414,100 +17457,110 @@ } /** - * CreateSlateRequest parent. + * ListLiveConfigsRequest parent. * @member {string} parent - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @instance */ - CreateSlateRequest.prototype.parent = ""; + ListLiveConfigsRequest.prototype.parent = ""; /** - * CreateSlateRequest slateId. - * @member {string} slateId - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * ListLiveConfigsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @instance */ - CreateSlateRequest.prototype.slateId = ""; + ListLiveConfigsRequest.prototype.pageSize = 0; /** - * CreateSlateRequest slate. - * @member {google.cloud.video.stitcher.v1.ISlate|null|undefined} slate - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * ListLiveConfigsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @instance */ - CreateSlateRequest.prototype.slate = null; + ListLiveConfigsRequest.prototype.pageToken = ""; /** - * CreateSlateRequest requestId. - * @member {string} requestId - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * ListLiveConfigsRequest filter. + * @member {string} filter + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @instance */ - CreateSlateRequest.prototype.requestId = ""; + ListLiveConfigsRequest.prototype.filter = ""; /** - * Creates a new CreateSlateRequest instance using the specified properties. + * ListLiveConfigsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * @instance + */ + ListLiveConfigsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListLiveConfigsRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @static - * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.CreateSlateRequest} CreateSlateRequest instance + * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsRequest} ListLiveConfigsRequest instance */ - CreateSlateRequest.create = function create(properties) { - return new CreateSlateRequest(properties); + ListLiveConfigsRequest.create = function create(properties) { + return new ListLiveConfigsRequest(properties); }; /** - * Encodes the specified CreateSlateRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateSlateRequest.verify|verify} messages. + * Encodes the specified ListLiveConfigsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @static - * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest} message CreateSlateRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest} message ListLiveConfigsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSlateRequest.encode = function encode(message, writer) { + ListLiveConfigsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.slateId != null && Object.hasOwnProperty.call(message, "slateId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.slateId); - if (message.slate != null && Object.hasOwnProperty.call(message, "slate")) - $root.google.cloud.video.stitcher.v1.Slate.encode(message.slate, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified CreateSlateRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateSlateRequest.verify|verify} messages. + * Encodes the specified ListLiveConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @static - * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest} message CreateSlateRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest} message ListLiveConfigsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSlateRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListLiveConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSlateRequest message from the specified reader or buffer. + * Decodes a ListLiveConfigsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.CreateSlateRequest} CreateSlateRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsRequest} ListLiveConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSlateRequest.decode = function decode(reader, length) { + ListLiveConfigsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.CreateSlateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListLiveConfigsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -14516,15 +17569,19 @@ break; } case 2: { - message.slateId = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - message.slate = $root.google.cloud.video.stitcher.v1.Slate.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; } case 4: { - message.requestId = reader.string(); + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -14536,152 +17593,159 @@ }; /** - * Decodes a CreateSlateRequest message from the specified reader or buffer, length delimited. + * Decodes a ListLiveConfigsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.CreateSlateRequest} CreateSlateRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsRequest} ListLiveConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSlateRequest.decodeDelimited = function decodeDelimited(reader) { + ListLiveConfigsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSlateRequest message. + * Verifies a ListLiveConfigsRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateSlateRequest.verify = function verify(message) { + ListLiveConfigsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.slateId != null && message.hasOwnProperty("slateId")) - if (!$util.isString(message.slateId)) - return "slateId: string expected"; - if (message.slate != null && message.hasOwnProperty("slate")) { - var error = $root.google.cloud.video.stitcher.v1.Slate.verify(message.slate); - if (error) - return "slate." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a CreateSlateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListLiveConfigsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.CreateSlateRequest} CreateSlateRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsRequest} ListLiveConfigsRequest */ - CreateSlateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.CreateSlateRequest) + ListLiveConfigsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListLiveConfigsRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.CreateSlateRequest(); + var message = new $root.google.cloud.video.stitcher.v1.ListLiveConfigsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.slateId != null) - message.slateId = String(object.slateId); - if (object.slate != null) { - if (typeof object.slate !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.CreateSlateRequest.slate: object expected"); - message.slate = $root.google.cloud.video.stitcher.v1.Slate.fromObject(object.slate); - } - if (object.requestId != null) - message.requestId = String(object.requestId); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a CreateSlateRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListLiveConfigsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @static - * @param {google.cloud.video.stitcher.v1.CreateSlateRequest} message CreateSlateRequest + * @param {google.cloud.video.stitcher.v1.ListLiveConfigsRequest} message ListLiveConfigsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSlateRequest.toObject = function toObject(message, options) { + ListLiveConfigsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.slateId = ""; - object.slate = null; - object.requestId = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.slateId != null && message.hasOwnProperty("slateId")) - object.slateId = message.slateId; - if (message.slate != null && message.hasOwnProperty("slate")) - object.slate = $root.google.cloud.video.stitcher.v1.Slate.toObject(message.slate, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this CreateSlateRequest to JSON. + * Converts this ListLiveConfigsRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @instance * @returns {Object.} JSON object */ - CreateSlateRequest.prototype.toJSON = function toJSON() { + ListLiveConfigsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateSlateRequest + * Gets the default type url for ListLiveConfigsRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.CreateSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateSlateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListLiveConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateSlateRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListLiveConfigsRequest"; }; - return CreateSlateRequest; + return ListLiveConfigsRequest; })(); - v1.GetSlateRequest = (function() { + v1.ListLiveConfigsResponse = (function() { /** - * Properties of a GetSlateRequest. + * Properties of a ListLiveConfigsResponse. * @memberof google.cloud.video.stitcher.v1 - * @interface IGetSlateRequest - * @property {string|null} [name] GetSlateRequest name + * @interface IListLiveConfigsResponse + * @property {Array.|null} [liveConfigs] ListLiveConfigsResponse liveConfigs + * @property {string|null} [nextPageToken] ListLiveConfigsResponse nextPageToken + * @property {Array.|null} [unreachable] ListLiveConfigsResponse unreachable */ /** - * Constructs a new GetSlateRequest. + * Constructs a new ListLiveConfigsResponse. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a GetSlateRequest. - * @implements IGetSlateRequest + * @classdesc Represents a ListLiveConfigsResponse. + * @implements IListLiveConfigsResponse * @constructor - * @param {google.cloud.video.stitcher.v1.IGetSlateRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListLiveConfigsResponse=} [properties] Properties to set */ - function GetSlateRequest(properties) { + function ListLiveConfigsResponse(properties) { + this.liveConfigs = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14689,75 +17753,109 @@ } /** - * GetSlateRequest name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.GetSlateRequest + * ListLiveConfigsResponse liveConfigs. + * @member {Array.} liveConfigs + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse * @instance */ - GetSlateRequest.prototype.name = ""; + ListLiveConfigsResponse.prototype.liveConfigs = $util.emptyArray; /** - * Creates a new GetSlateRequest instance using the specified properties. + * ListLiveConfigsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @instance + */ + ListLiveConfigsResponse.prototype.nextPageToken = ""; + + /** + * ListLiveConfigsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @instance + */ + ListLiveConfigsResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListLiveConfigsResponse instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.GetSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse * @static - * @param {google.cloud.video.stitcher.v1.IGetSlateRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.GetSlateRequest} GetSlateRequest instance + * @param {google.cloud.video.stitcher.v1.IListLiveConfigsResponse=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} ListLiveConfigsResponse instance */ - GetSlateRequest.create = function create(properties) { - return new GetSlateRequest(properties); + ListLiveConfigsResponse.create = function create(properties) { + return new ListLiveConfigsResponse(properties); }; /** - * Encodes the specified GetSlateRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetSlateRequest.verify|verify} messages. + * Encodes the specified ListLiveConfigsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.GetSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse * @static - * @param {google.cloud.video.stitcher.v1.IGetSlateRequest} message GetSlateRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListLiveConfigsResponse} message ListLiveConfigsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSlateRequest.encode = function encode(message, writer) { + ListLiveConfigsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.liveConfigs != null && message.liveConfigs.length) + for (var i = 0; i < message.liveConfigs.length; ++i) + $root.google.cloud.video.stitcher.v1.LiveConfig.encode(message.liveConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified GetSlateRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetSlateRequest.verify|verify} messages. + * Encodes the specified ListLiveConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse * @static - * @param {google.cloud.video.stitcher.v1.IGetSlateRequest} message GetSlateRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListLiveConfigsResponse} message ListLiveConfigsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSlateRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListLiveConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSlateRequest message from the specified reader or buffer. + * Decodes a ListLiveConfigsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.GetSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.GetSlateRequest} GetSlateRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} ListLiveConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSlateRequest.decode = function decode(reader, length) { + ListLiveConfigsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetSlateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListLiveConfigsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.liveConfigs && message.liveConfigs.length)) + message.liveConfigs = []; + message.liveConfigs.push($root.google.cloud.video.stitcher.v1.LiveConfig.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -14769,126 +17867,169 @@ }; /** - * Decodes a GetSlateRequest message from the specified reader or buffer, length delimited. + * Decodes a ListLiveConfigsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.GetSlateRequest} GetSlateRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} ListLiveConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSlateRequest.decodeDelimited = function decodeDelimited(reader) { + ListLiveConfigsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSlateRequest message. + * Verifies a ListLiveConfigsResponse message. * @function verify - * @memberof google.cloud.video.stitcher.v1.GetSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSlateRequest.verify = function verify(message) { + ListLiveConfigsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.liveConfigs != null && message.hasOwnProperty("liveConfigs")) { + if (!Array.isArray(message.liveConfigs)) + return "liveConfigs: array expected"; + for (var i = 0; i < message.liveConfigs.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.LiveConfig.verify(message.liveConfigs[i]); + if (error) + return "liveConfigs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates a GetSlateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListLiveConfigsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.GetSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.GetSlateRequest} GetSlateRequest + * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} ListLiveConfigsResponse */ - GetSlateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.GetSlateRequest) + ListLiveConfigsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListLiveConfigsResponse) return object; - var message = new $root.google.cloud.video.stitcher.v1.GetSlateRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.video.stitcher.v1.ListLiveConfigsResponse(); + if (object.liveConfigs) { + if (!Array.isArray(object.liveConfigs)) + throw TypeError(".google.cloud.video.stitcher.v1.ListLiveConfigsResponse.liveConfigs: array expected"); + message.liveConfigs = []; + for (var i = 0; i < object.liveConfigs.length; ++i) { + if (typeof object.liveConfigs[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.ListLiveConfigsResponse.liveConfigs: object expected"); + message.liveConfigs[i] = $root.google.cloud.video.stitcher.v1.LiveConfig.fromObject(object.liveConfigs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.video.stitcher.v1.ListLiveConfigsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a GetSlateRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListLiveConfigsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.GetSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse * @static - * @param {google.cloud.video.stitcher.v1.GetSlateRequest} message GetSlateRequest + * @param {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} message ListLiveConfigsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSlateRequest.toObject = function toObject(message, options) { + ListLiveConfigsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.liveConfigs = []; + object.unreachable = []; + } if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.liveConfigs && message.liveConfigs.length) { + object.liveConfigs = []; + for (var j = 0; j < message.liveConfigs.length; ++j) + object.liveConfigs[j] = $root.google.cloud.video.stitcher.v1.LiveConfig.toObject(message.liveConfigs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } return object; }; /** - * Converts this GetSlateRequest to JSON. + * Converts this ListLiveConfigsResponse to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.GetSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse * @instance * @returns {Object.} JSON object */ - GetSlateRequest.prototype.toJSON = function toJSON() { + ListLiveConfigsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSlateRequest + * Gets the default type url for ListLiveConfigsResponse * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.GetSlateRequest + * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSlateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListLiveConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetSlateRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListLiveConfigsResponse"; }; - return GetSlateRequest; + return ListLiveConfigsResponse; })(); - v1.ListSlatesRequest = (function() { + v1.GetLiveConfigRequest = (function() { /** - * Properties of a ListSlatesRequest. + * Properties of a GetLiveConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IListSlatesRequest - * @property {string|null} [parent] ListSlatesRequest parent - * @property {number|null} [pageSize] ListSlatesRequest pageSize - * @property {string|null} [pageToken] ListSlatesRequest pageToken - * @property {string|null} [filter] ListSlatesRequest filter - * @property {string|null} [orderBy] ListSlatesRequest orderBy + * @interface IGetLiveConfigRequest + * @property {string|null} [name] GetLiveConfigRequest name */ /** - * Constructs a new ListSlatesRequest. + * Constructs a new GetLiveConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListSlatesRequest. - * @implements IListSlatesRequest + * @classdesc Represents a GetLiveConfigRequest. + * @implements IGetLiveConfigRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IListSlatesRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest=} [properties] Properties to set */ - function ListSlatesRequest(properties) { + function GetLiveConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14896,131 +18037,75 @@ } /** - * ListSlatesRequest parent. - * @member {string} parent - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest - * @instance - */ - ListSlatesRequest.prototype.parent = ""; - - /** - * ListSlatesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest - * @instance - */ - ListSlatesRequest.prototype.pageSize = 0; - - /** - * ListSlatesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest - * @instance - */ - ListSlatesRequest.prototype.pageToken = ""; - - /** - * ListSlatesRequest filter. - * @member {string} filter - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest - * @instance - */ - ListSlatesRequest.prototype.filter = ""; - - /** - * ListSlatesRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * GetLiveConfigRequest name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest * @instance */ - ListSlatesRequest.prototype.orderBy = ""; + GetLiveConfigRequest.prototype.name = ""; /** - * Creates a new ListSlatesRequest instance using the specified properties. + * Creates a new GetLiveConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListSlatesRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListSlatesRequest} ListSlatesRequest instance + * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.GetLiveConfigRequest} GetLiveConfigRequest instance */ - ListSlatesRequest.create = function create(properties) { - return new ListSlatesRequest(properties); + GetLiveConfigRequest.create = function create(properties) { + return new GetLiveConfigRequest(properties); }; /** - * Encodes the specified ListSlatesRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListSlatesRequest.verify|verify} messages. + * Encodes the specified GetLiveConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListSlatesRequest} message ListSlatesRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest} message GetLiveConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSlatesRequest.encode = function encode(message, writer) { + GetLiveConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListSlatesRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListSlatesRequest.verify|verify} messages. + * Encodes the specified GetLiveConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListSlatesRequest} message ListSlatesRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest} message GetLiveConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSlatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetLiveConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSlatesRequest message from the specified reader or buffer. + * Decodes a GetLiveConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListSlatesRequest} ListSlatesRequest + * @returns {google.cloud.video.stitcher.v1.GetLiveConfigRequest} GetLiveConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSlatesRequest.decode = function decode(reader, length) { + GetLiveConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListSlatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetLiveConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + message.name = reader.string(); break; } default: @@ -15032,159 +18117,122 @@ }; /** - * Decodes a ListSlatesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetLiveConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListSlatesRequest} ListSlatesRequest + * @returns {google.cloud.video.stitcher.v1.GetLiveConfigRequest} GetLiveConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSlatesRequest.decodeDelimited = function decodeDelimited(reader) { + GetLiveConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSlatesRequest message. + * Verifies a GetLiveConfigRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSlatesRequest.verify = function verify(message) { + GetLiveConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListSlatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetLiveConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListSlatesRequest} ListSlatesRequest + * @returns {google.cloud.video.stitcher.v1.GetLiveConfigRequest} GetLiveConfigRequest */ - ListSlatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListSlatesRequest) + GetLiveConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.GetLiveConfigRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListSlatesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.video.stitcher.v1.GetLiveConfigRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListSlatesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetLiveConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.ListSlatesRequest} message ListSlatesRequest + * @param {google.cloud.video.stitcher.v1.GetLiveConfigRequest} message GetLiveConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSlatesRequest.toObject = function toObject(message, options) { + GetLiveConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListSlatesRequest to JSON. + * Converts this GetLiveConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest * @instance * @returns {Object.} JSON object */ - ListSlatesRequest.prototype.toJSON = function toJSON() { + GetLiveConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSlatesRequest + * Gets the default type url for GetLiveConfigRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListSlatesRequest + * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSlatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetLiveConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListSlatesRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetLiveConfigRequest"; }; - return ListSlatesRequest; + return GetLiveConfigRequest; })(); - v1.ListSlatesResponse = (function() { + v1.DeleteLiveConfigRequest = (function() { /** - * Properties of a ListSlatesResponse. + * Properties of a DeleteLiveConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IListSlatesResponse - * @property {Array.|null} [slates] ListSlatesResponse slates - * @property {string|null} [nextPageToken] ListSlatesResponse nextPageToken - * @property {Array.|null} [unreachable] ListSlatesResponse unreachable + * @interface IDeleteLiveConfigRequest + * @property {string|null} [name] DeleteLiveConfigRequest name */ /** - * Constructs a new ListSlatesResponse. + * Constructs a new DeleteLiveConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListSlatesResponse. - * @implements IListSlatesResponse + * @classdesc Represents a DeleteLiveConfigRequest. + * @implements IDeleteLiveConfigRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IListSlatesResponse=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest=} [properties] Properties to set */ - function ListSlatesResponse(properties) { - this.slates = []; - this.unreachable = []; + function DeleteLiveConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15192,109 +18240,75 @@ } /** - * ListSlatesResponse slates. - * @member {Array.} slates - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse - * @instance - */ - ListSlatesResponse.prototype.slates = $util.emptyArray; - - /** - * ListSlatesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse - * @instance - */ - ListSlatesResponse.prototype.nextPageToken = ""; - - /** - * ListSlatesResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse + * DeleteLiveConfigRequest name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest * @instance */ - ListSlatesResponse.prototype.unreachable = $util.emptyArray; + DeleteLiveConfigRequest.prototype.name = ""; /** - * Creates a new ListSlatesResponse instance using the specified properties. + * Creates a new DeleteLiveConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse + * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListSlatesResponse=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListSlatesResponse} ListSlatesResponse instance + * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.DeleteLiveConfigRequest} DeleteLiveConfigRequest instance */ - ListSlatesResponse.create = function create(properties) { - return new ListSlatesResponse(properties); + DeleteLiveConfigRequest.create = function create(properties) { + return new DeleteLiveConfigRequest(properties); }; /** - * Encodes the specified ListSlatesResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListSlatesResponse.verify|verify} messages. + * Encodes the specified DeleteLiveConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteLiveConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse + * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListSlatesResponse} message ListSlatesResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest} message DeleteLiveConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSlatesResponse.encode = function encode(message, writer) { + DeleteLiveConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.slates != null && message.slates.length) - for (var i = 0; i < message.slates.length; ++i) - $root.google.cloud.video.stitcher.v1.Slate.encode(message.slates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListSlatesResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListSlatesResponse.verify|verify} messages. + * Encodes the specified DeleteLiveConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteLiveConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse + * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListSlatesResponse} message ListSlatesResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest} message DeleteLiveConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSlatesResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteLiveConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSlatesResponse message from the specified reader or buffer. + * Decodes a DeleteLiveConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse + * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListSlatesResponse} ListSlatesResponse + * @returns {google.cloud.video.stitcher.v1.DeleteLiveConfigRequest} DeleteLiveConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSlatesResponse.decode = function decode(reader, length) { + DeleteLiveConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListSlatesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.slates && message.slates.length)) - message.slates = []; - message.slates.push($root.google.cloud.video.stitcher.v1.Slate.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.name = reader.string(); break; } default: @@ -15306,170 +18320,123 @@ }; /** - * Decodes a ListSlatesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteLiveConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse + * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListSlatesResponse} ListSlatesResponse + * @returns {google.cloud.video.stitcher.v1.DeleteLiveConfigRequest} DeleteLiveConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSlatesResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteLiveConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSlatesResponse message. + * Verifies a DeleteLiveConfigRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse + * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSlatesResponse.verify = function verify(message) { + DeleteLiveConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.slates != null && message.hasOwnProperty("slates")) { - if (!Array.isArray(message.slates)) - return "slates: array expected"; - for (var i = 0; i < message.slates.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.Slate.verify(message.slates[i]); - if (error) - return "slates." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListSlatesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteLiveConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse + * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListSlatesResponse} ListSlatesResponse + * @returns {google.cloud.video.stitcher.v1.DeleteLiveConfigRequest} DeleteLiveConfigRequest */ - ListSlatesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListSlatesResponse) + DeleteLiveConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListSlatesResponse(); - if (object.slates) { - if (!Array.isArray(object.slates)) - throw TypeError(".google.cloud.video.stitcher.v1.ListSlatesResponse.slates: array expected"); - message.slates = []; - for (var i = 0; i < object.slates.length; ++i) { - if (typeof object.slates[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.ListSlatesResponse.slates: object expected"); - message.slates[i] = $root.google.cloud.video.stitcher.v1.Slate.fromObject(object.slates[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.video.stitcher.v1.ListSlatesResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } + var message = new $root.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListSlatesResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteLiveConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse + * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.ListSlatesResponse} message ListSlatesResponse + * @param {google.cloud.video.stitcher.v1.DeleteLiveConfigRequest} message DeleteLiveConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSlatesResponse.toObject = function toObject(message, options) { + DeleteLiveConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.slates = []; - object.unreachable = []; - } if (options.defaults) - object.nextPageToken = ""; - if (message.slates && message.slates.length) { - object.slates = []; - for (var j = 0; j < message.slates.length; ++j) - object.slates[j] = $root.google.cloud.video.stitcher.v1.Slate.toObject(message.slates[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListSlatesResponse to JSON. + * Converts this DeleteLiveConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse + * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest * @instance * @returns {Object.} JSON object */ - ListSlatesResponse.prototype.toJSON = function toJSON() { + DeleteLiveConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSlatesResponse + * Gets the default type url for DeleteLiveConfigRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListSlatesResponse + * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSlatesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteLiveConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListSlatesResponse"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.DeleteLiveConfigRequest"; }; - return ListSlatesResponse; + return DeleteLiveConfigRequest; })(); - v1.UpdateSlateRequest = (function() { + v1.UpdateLiveConfigRequest = (function() { /** - * Properties of an UpdateSlateRequest. + * Properties of an UpdateLiveConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IUpdateSlateRequest - * @property {google.cloud.video.stitcher.v1.ISlate|null} [slate] UpdateSlateRequest slate - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSlateRequest updateMask + * @interface IUpdateLiveConfigRequest + * @property {google.cloud.video.stitcher.v1.ILiveConfig|null} [liveConfig] UpdateLiveConfigRequest liveConfig + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateLiveConfigRequest updateMask */ /** - * Constructs a new UpdateSlateRequest. + * Constructs a new UpdateLiveConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents an UpdateSlateRequest. - * @implements IUpdateSlateRequest + * @classdesc Represents an UpdateLiveConfigRequest. + * @implements IUpdateLiveConfigRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest=} [properties] Properties to set */ - function UpdateSlateRequest(properties) { + function UpdateLiveConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15477,85 +18444,85 @@ } /** - * UpdateSlateRequest slate. - * @member {google.cloud.video.stitcher.v1.ISlate|null|undefined} slate - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * UpdateLiveConfigRequest liveConfig. + * @member {google.cloud.video.stitcher.v1.ILiveConfig|null|undefined} liveConfig + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @instance */ - UpdateSlateRequest.prototype.slate = null; + UpdateLiveConfigRequest.prototype.liveConfig = null; /** - * UpdateSlateRequest updateMask. + * UpdateLiveConfigRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @instance */ - UpdateSlateRequest.prototype.updateMask = null; + UpdateLiveConfigRequest.prototype.updateMask = null; /** - * Creates a new UpdateSlateRequest instance using the specified properties. + * Creates a new UpdateLiveConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.UpdateSlateRequest} UpdateSlateRequest instance + * @param {google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.UpdateLiveConfigRequest} UpdateLiveConfigRequest instance */ - UpdateSlateRequest.create = function create(properties) { - return new UpdateSlateRequest(properties); + UpdateLiveConfigRequest.create = function create(properties) { + return new UpdateLiveConfigRequest(properties); }; /** - * Encodes the specified UpdateSlateRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateSlateRequest.verify|verify} messages. + * Encodes the specified UpdateLiveConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest} message UpdateSlateRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest} message UpdateLiveConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSlateRequest.encode = function encode(message, writer) { + UpdateLiveConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.slate != null && Object.hasOwnProperty.call(message, "slate")) - $root.google.cloud.video.stitcher.v1.Slate.encode(message.slate, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.liveConfig != null && Object.hasOwnProperty.call(message, "liveConfig")) + $root.google.cloud.video.stitcher.v1.LiveConfig.encode(message.liveConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateSlateRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateSlateRequest.verify|verify} messages. + * Encodes the specified UpdateLiveConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest} message UpdateSlateRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest} message UpdateLiveConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSlateRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateLiveConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSlateRequest message from the specified reader or buffer. + * Decodes an UpdateLiveConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.UpdateSlateRequest} UpdateSlateRequest + * @returns {google.cloud.video.stitcher.v1.UpdateLiveConfigRequest} UpdateLiveConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSlateRequest.decode = function decode(reader, length) { + UpdateLiveConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.UpdateSlateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.slate = $root.google.cloud.video.stitcher.v1.Slate.decode(reader, reader.uint32()); + message.liveConfig = $root.google.cloud.video.stitcher.v1.LiveConfig.decode(reader, reader.uint32()); break; } case 2: { @@ -15571,36 +18538,36 @@ }; /** - * Decodes an UpdateSlateRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateLiveConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.UpdateSlateRequest} UpdateSlateRequest + * @returns {google.cloud.video.stitcher.v1.UpdateLiveConfigRequest} UpdateLiveConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSlateRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateLiveConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSlateRequest message. + * Verifies an UpdateLiveConfigRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateSlateRequest.verify = function verify(message) { + UpdateLiveConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.slate != null && message.hasOwnProperty("slate")) { - var error = $root.google.cloud.video.stitcher.v1.Slate.verify(message.slate); + if (message.liveConfig != null && message.hasOwnProperty("liveConfig")) { + var error = $root.google.cloud.video.stitcher.v1.LiveConfig.verify(message.liveConfig); if (error) - return "slate." + error; + return "liveConfig." + error; } if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); @@ -15611,101 +18578,104 @@ }; /** - * Creates an UpdateSlateRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateLiveConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.UpdateSlateRequest} UpdateSlateRequest + * @returns {google.cloud.video.stitcher.v1.UpdateLiveConfigRequest} UpdateLiveConfigRequest */ - UpdateSlateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.UpdateSlateRequest) + UpdateLiveConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.UpdateSlateRequest(); - if (object.slate != null) { - if (typeof object.slate !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.UpdateSlateRequest.slate: object expected"); - message.slate = $root.google.cloud.video.stitcher.v1.Slate.fromObject(object.slate); + var message = new $root.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest(); + if (object.liveConfig != null) { + if (typeof object.liveConfig !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.liveConfig: object expected"); + message.liveConfig = $root.google.cloud.video.stitcher.v1.LiveConfig.fromObject(object.liveConfig); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.UpdateSlateRequest.updateMask: object expected"); + throw TypeError(".google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an UpdateSlateRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateLiveConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.UpdateSlateRequest} message UpdateSlateRequest + * @param {google.cloud.video.stitcher.v1.UpdateLiveConfigRequest} message UpdateLiveConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSlateRequest.toObject = function toObject(message, options) { + UpdateLiveConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.slate = null; + object.liveConfig = null; object.updateMask = null; } - if (message.slate != null && message.hasOwnProperty("slate")) - object.slate = $root.google.cloud.video.stitcher.v1.Slate.toObject(message.slate, options); + if (message.liveConfig != null && message.hasOwnProperty("liveConfig")) + object.liveConfig = $root.google.cloud.video.stitcher.v1.LiveConfig.toObject(message.liveConfig, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateSlateRequest to JSON. + * Converts this UpdateLiveConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @instance * @returns {Object.} JSON object */ - UpdateSlateRequest.prototype.toJSON = function toJSON() { + UpdateLiveConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateSlateRequest + * Gets the default type url for UpdateLiveConfigRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.UpdateSlateRequest + * @memberof google.cloud.video.stitcher.v1.UpdateLiveConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateSlateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateLiveConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.UpdateSlateRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.UpdateLiveConfigRequest"; }; - return UpdateSlateRequest; + return UpdateLiveConfigRequest; })(); - v1.DeleteSlateRequest = (function() { + v1.CreateVodConfigRequest = (function() { /** - * Properties of a DeleteSlateRequest. + * Properties of a CreateVodConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IDeleteSlateRequest - * @property {string|null} [name] DeleteSlateRequest name + * @interface ICreateVodConfigRequest + * @property {string|null} [parent] CreateVodConfigRequest parent + * @property {string|null} [vodConfigId] CreateVodConfigRequest vodConfigId + * @property {google.cloud.video.stitcher.v1.IVodConfig|null} [vodConfig] CreateVodConfigRequest vodConfig + * @property {string|null} [requestId] CreateVodConfigRequest requestId */ /** - * Constructs a new DeleteSlateRequest. + * Constructs a new CreateVodConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a DeleteSlateRequest. - * @implements IDeleteSlateRequest + * @classdesc Represents a CreateVodConfigRequest. + * @implements ICreateVodConfigRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.ICreateVodConfigRequest=} [properties] Properties to set */ - function DeleteSlateRequest(properties) { + function CreateVodConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15713,75 +18683,117 @@ } /** - * DeleteSlateRequest name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest + * CreateVodConfigRequest parent. + * @member {string} parent + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest * @instance */ - DeleteSlateRequest.prototype.name = ""; + CreateVodConfigRequest.prototype.parent = ""; /** - * Creates a new DeleteSlateRequest instance using the specified properties. + * CreateVodConfigRequest vodConfigId. + * @member {string} vodConfigId + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest + * @instance + */ + CreateVodConfigRequest.prototype.vodConfigId = ""; + + /** + * CreateVodConfigRequest vodConfig. + * @member {google.cloud.video.stitcher.v1.IVodConfig|null|undefined} vodConfig + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest + * @instance + */ + CreateVodConfigRequest.prototype.vodConfig = null; + + /** + * CreateVodConfigRequest requestId. + * @member {string} requestId + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest + * @instance + */ + CreateVodConfigRequest.prototype.requestId = ""; + + /** + * Creates a new CreateVodConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.DeleteSlateRequest} DeleteSlateRequest instance + * @param {google.cloud.video.stitcher.v1.ICreateVodConfigRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.CreateVodConfigRequest} CreateVodConfigRequest instance */ - DeleteSlateRequest.create = function create(properties) { - return new DeleteSlateRequest(properties); + CreateVodConfigRequest.create = function create(properties) { + return new CreateVodConfigRequest(properties); }; /** - * Encodes the specified DeleteSlateRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteSlateRequest.verify|verify} messages. + * Encodes the specified CreateVodConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateVodConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest} message DeleteSlateRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ICreateVodConfigRequest} message CreateVodConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSlateRequest.encode = function encode(message, writer) { + CreateVodConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.vodConfigId != null && Object.hasOwnProperty.call(message, "vodConfigId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.vodConfigId); + if (message.vodConfig != null && Object.hasOwnProperty.call(message, "vodConfig")) + $root.google.cloud.video.stitcher.v1.VodConfig.encode(message.vodConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified DeleteSlateRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteSlateRequest.verify|verify} messages. + * Encodes the specified CreateVodConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateVodConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest} message DeleteSlateRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.ICreateVodConfigRequest} message CreateVodConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSlateRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateVodConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSlateRequest message from the specified reader or buffer. + * Decodes a CreateVodConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.DeleteSlateRequest} DeleteSlateRequest + * @returns {google.cloud.video.stitcher.v1.CreateVodConfigRequest} CreateVodConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSlateRequest.decode = function decode(reader, length) { + CreateVodConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.DeleteSlateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.CreateVodConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.vodConfigId = reader.string(); + break; + } + case 3: { + message.vodConfig = $root.google.cloud.video.stitcher.v1.VodConfig.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); break; } default: @@ -15793,123 +18805,156 @@ }; /** - * Decodes a DeleteSlateRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateVodConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.DeleteSlateRequest} DeleteSlateRequest + * @returns {google.cloud.video.stitcher.v1.CreateVodConfigRequest} CreateVodConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSlateRequest.decodeDelimited = function decodeDelimited(reader) { + CreateVodConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSlateRequest message. + * Verifies a CreateVodConfigRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSlateRequest.verify = function verify(message) { + CreateVodConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.vodConfigId != null && message.hasOwnProperty("vodConfigId")) + if (!$util.isString(message.vodConfigId)) + return "vodConfigId: string expected"; + if (message.vodConfig != null && message.hasOwnProperty("vodConfig")) { + var error = $root.google.cloud.video.stitcher.v1.VodConfig.verify(message.vodConfig); + if (error) + return "vodConfig." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a DeleteSlateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVodConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.DeleteSlateRequest} DeleteSlateRequest + * @returns {google.cloud.video.stitcher.v1.CreateVodConfigRequest} CreateVodConfigRequest */ - DeleteSlateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.DeleteSlateRequest) + CreateVodConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.CreateVodConfigRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.DeleteSlateRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.video.stitcher.v1.CreateVodConfigRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.vodConfigId != null) + message.vodConfigId = String(object.vodConfigId); + if (object.vodConfig != null) { + if (typeof object.vodConfig !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.CreateVodConfigRequest.vodConfig: object expected"); + message.vodConfig = $root.google.cloud.video.stitcher.v1.VodConfig.fromObject(object.vodConfig); + } + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a DeleteSlateRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateVodConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.DeleteSlateRequest} message DeleteSlateRequest + * @param {google.cloud.video.stitcher.v1.CreateVodConfigRequest} message CreateVodConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSlateRequest.toObject = function toObject(message, options) { + CreateVodConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.vodConfigId = ""; + object.vodConfig = null; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.vodConfigId != null && message.hasOwnProperty("vodConfigId")) + object.vodConfigId = message.vodConfigId; + if (message.vodConfig != null && message.hasOwnProperty("vodConfig")) + object.vodConfig = $root.google.cloud.video.stitcher.v1.VodConfig.toObject(message.vodConfig, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this DeleteSlateRequest to JSON. + * Converts this CreateVodConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest * @instance * @returns {Object.} JSON object */ - DeleteSlateRequest.prototype.toJSON = function toJSON() { + CreateVodConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteSlateRequest + * Gets the default type url for CreateVodConfigRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.DeleteSlateRequest + * @memberof google.cloud.video.stitcher.v1.CreateVodConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteSlateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateVodConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.DeleteSlateRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateVodConfigRequest"; }; - return DeleteSlateRequest; + return CreateVodConfigRequest; })(); - v1.CreateLiveSessionRequest = (function() { + v1.ListVodConfigsRequest = (function() { /** - * Properties of a CreateLiveSessionRequest. + * Properties of a ListVodConfigsRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface ICreateLiveSessionRequest - * @property {string|null} [parent] CreateLiveSessionRequest parent - * @property {google.cloud.video.stitcher.v1.ILiveSession|null} [liveSession] CreateLiveSessionRequest liveSession + * @interface IListVodConfigsRequest + * @property {string|null} [parent] ListVodConfigsRequest parent + * @property {number|null} [pageSize] ListVodConfigsRequest pageSize + * @property {string|null} [pageToken] ListVodConfigsRequest pageToken + * @property {string|null} [filter] ListVodConfigsRequest filter + * @property {string|null} [orderBy] ListVodConfigsRequest orderBy */ /** - * Constructs a new CreateLiveSessionRequest. + * Constructs a new ListVodConfigsRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a CreateLiveSessionRequest. - * @implements ICreateLiveSessionRequest + * @classdesc Represents a ListVodConfigsRequest. + * @implements IListVodConfigsRequest * @constructor - * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListVodConfigsRequest=} [properties] Properties to set */ - function CreateLiveSessionRequest(properties) { + function ListVodConfigsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15917,80 +18962,110 @@ } /** - * CreateLiveSessionRequest parent. + * ListVodConfigsRequest parent. * @member {string} parent - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @instance */ - CreateLiveSessionRequest.prototype.parent = ""; + ListVodConfigsRequest.prototype.parent = ""; /** - * CreateLiveSessionRequest liveSession. - * @member {google.cloud.video.stitcher.v1.ILiveSession|null|undefined} liveSession - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * ListVodConfigsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @instance */ - CreateLiveSessionRequest.prototype.liveSession = null; + ListVodConfigsRequest.prototype.pageSize = 0; /** - * Creates a new CreateLiveSessionRequest instance using the specified properties. + * ListVodConfigsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest + * @instance + */ + ListVodConfigsRequest.prototype.pageToken = ""; + + /** + * ListVodConfigsRequest filter. + * @member {string} filter + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest + * @instance + */ + ListVodConfigsRequest.prototype.filter = ""; + + /** + * ListVodConfigsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest + * @instance + */ + ListVodConfigsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListVodConfigsRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @static - * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.CreateLiveSessionRequest} CreateLiveSessionRequest instance + * @param {google.cloud.video.stitcher.v1.IListVodConfigsRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListVodConfigsRequest} ListVodConfigsRequest instance */ - CreateLiveSessionRequest.create = function create(properties) { - return new CreateLiveSessionRequest(properties); + ListVodConfigsRequest.create = function create(properties) { + return new ListVodConfigsRequest(properties); }; /** - * Encodes the specified CreateLiveSessionRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateLiveSessionRequest.verify|verify} messages. + * Encodes the specified ListVodConfigsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodConfigsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @static - * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest} message CreateLiveSessionRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListVodConfigsRequest} message ListVodConfigsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateLiveSessionRequest.encode = function encode(message, writer) { + ListVodConfigsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.liveSession != null && Object.hasOwnProperty.call(message, "liveSession")) - $root.google.cloud.video.stitcher.v1.LiveSession.encode(message.liveSession, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified CreateLiveSessionRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateLiveSessionRequest.verify|verify} messages. + * Encodes the specified ListVodConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodConfigsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @static - * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest} message CreateLiveSessionRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListVodConfigsRequest} message ListVodConfigsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateLiveSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVodConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateLiveSessionRequest message from the specified reader or buffer. + * Decodes a ListVodConfigsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.CreateLiveSessionRequest} CreateLiveSessionRequest + * @returns {google.cloud.video.stitcher.v1.ListVodConfigsRequest} ListVodConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateLiveSessionRequest.decode = function decode(reader, length) { + ListVodConfigsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.CreateLiveSessionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListVodConfigsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -15998,8 +19073,20 @@ message.parent = reader.string(); break; } - case 2: { - message.liveSession = $root.google.cloud.video.stitcher.v1.LiveSession.decode(reader, reader.uint32()); + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -16011,136 +19098,159 @@ }; /** - * Decodes a CreateLiveSessionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVodConfigsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.CreateLiveSessionRequest} CreateLiveSessionRequest + * @returns {google.cloud.video.stitcher.v1.ListVodConfigsRequest} ListVodConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateLiveSessionRequest.decodeDelimited = function decodeDelimited(reader) { + ListVodConfigsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateLiveSessionRequest message. + * Verifies a ListVodConfigsRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateLiveSessionRequest.verify = function verify(message) { + ListVodConfigsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.liveSession != null && message.hasOwnProperty("liveSession")) { - var error = $root.google.cloud.video.stitcher.v1.LiveSession.verify(message.liveSession); - if (error) - return "liveSession." + error; - } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a CreateLiveSessionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVodConfigsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.CreateLiveSessionRequest} CreateLiveSessionRequest + * @returns {google.cloud.video.stitcher.v1.ListVodConfigsRequest} ListVodConfigsRequest */ - CreateLiveSessionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.CreateLiveSessionRequest) + ListVodConfigsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodConfigsRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.CreateLiveSessionRequest(); + var message = new $root.google.cloud.video.stitcher.v1.ListVodConfigsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.liveSession != null) { - if (typeof object.liveSession !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.CreateLiveSessionRequest.liveSession: object expected"); - message.liveSession = $root.google.cloud.video.stitcher.v1.LiveSession.fromObject(object.liveSession); - } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a CreateLiveSessionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVodConfigsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @static - * @param {google.cloud.video.stitcher.v1.CreateLiveSessionRequest} message CreateLiveSessionRequest + * @param {google.cloud.video.stitcher.v1.ListVodConfigsRequest} message ListVodConfigsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateLiveSessionRequest.toObject = function toObject(message, options) { + ListVodConfigsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.liveSession = null; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.liveSession != null && message.hasOwnProperty("liveSession")) - object.liveSession = $root.google.cloud.video.stitcher.v1.LiveSession.toObject(message.liveSession, options); + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this CreateLiveSessionRequest to JSON. + * Converts this ListVodConfigsRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @instance * @returns {Object.} JSON object */ - CreateLiveSessionRequest.prototype.toJSON = function toJSON() { + ListVodConfigsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateLiveSessionRequest + * Gets the default type url for ListVodConfigsRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.CreateLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateLiveSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVodConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateLiveSessionRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListVodConfigsRequest"; }; - return CreateLiveSessionRequest; + return ListVodConfigsRequest; })(); - v1.GetLiveSessionRequest = (function() { + v1.ListVodConfigsResponse = (function() { /** - * Properties of a GetLiveSessionRequest. + * Properties of a ListVodConfigsResponse. * @memberof google.cloud.video.stitcher.v1 - * @interface IGetLiveSessionRequest - * @property {string|null} [name] GetLiveSessionRequest name + * @interface IListVodConfigsResponse + * @property {Array.|null} [vodConfigs] ListVodConfigsResponse vodConfigs + * @property {string|null} [nextPageToken] ListVodConfigsResponse nextPageToken + * @property {Array.|null} [unreachable] ListVodConfigsResponse unreachable */ /** - * Constructs a new GetLiveSessionRequest. + * Constructs a new ListVodConfigsResponse. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a GetLiveSessionRequest. - * @implements IGetLiveSessionRequest + * @classdesc Represents a ListVodConfigsResponse. + * @implements IListVodConfigsResponse * @constructor - * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IListVodConfigsResponse=} [properties] Properties to set */ - function GetLiveSessionRequest(properties) { + function ListVodConfigsResponse(properties) { + this.vodConfigs = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16148,75 +19258,109 @@ } /** - * GetLiveSessionRequest name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest + * ListVodConfigsResponse vodConfigs. + * @member {Array.} vodConfigs + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse * @instance */ - GetLiveSessionRequest.prototype.name = ""; + ListVodConfigsResponse.prototype.vodConfigs = $util.emptyArray; /** - * Creates a new GetLiveSessionRequest instance using the specified properties. + * ListVodConfigsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse + * @instance + */ + ListVodConfigsResponse.prototype.nextPageToken = ""; + + /** + * ListVodConfigsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse + * @instance + */ + ListVodConfigsResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListVodConfigsResponse instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse * @static - * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.GetLiveSessionRequest} GetLiveSessionRequest instance + * @param {google.cloud.video.stitcher.v1.IListVodConfigsResponse=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.ListVodConfigsResponse} ListVodConfigsResponse instance */ - GetLiveSessionRequest.create = function create(properties) { - return new GetLiveSessionRequest(properties); + ListVodConfigsResponse.create = function create(properties) { + return new ListVodConfigsResponse(properties); }; /** - * Encodes the specified GetLiveSessionRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveSessionRequest.verify|verify} messages. + * Encodes the specified ListVodConfigsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodConfigsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse * @static - * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest} message GetLiveSessionRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListVodConfigsResponse} message ListVodConfigsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetLiveSessionRequest.encode = function encode(message, writer) { + ListVodConfigsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.vodConfigs != null && message.vodConfigs.length) + for (var i = 0; i < message.vodConfigs.length; ++i) + $root.google.cloud.video.stitcher.v1.VodConfig.encode(message.vodConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified GetLiveSessionRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveSessionRequest.verify|verify} messages. + * Encodes the specified ListVodConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodConfigsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse * @static - * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest} message GetLiveSessionRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IListVodConfigsResponse} message ListVodConfigsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetLiveSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVodConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetLiveSessionRequest message from the specified reader or buffer. + * Decodes a ListVodConfigsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.GetLiveSessionRequest} GetLiveSessionRequest + * @returns {google.cloud.video.stitcher.v1.ListVodConfigsResponse} ListVodConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetLiveSessionRequest.decode = function decode(reader, length) { + ListVodConfigsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetLiveSessionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListVodConfigsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.vodConfigs && message.vodConfigs.length)) + message.vodConfigs = []; + message.vodConfigs.push($root.google.cloud.video.stitcher.v1.VodConfig.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -16228,243 +19372,245 @@ }; /** - * Decodes a GetLiveSessionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVodConfigsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.GetLiveSessionRequest} GetLiveSessionRequest + * @returns {google.cloud.video.stitcher.v1.ListVodConfigsResponse} ListVodConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetLiveSessionRequest.decodeDelimited = function decodeDelimited(reader) { + ListVodConfigsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetLiveSessionRequest message. + * Verifies a ListVodConfigsResponse message. * @function verify - * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetLiveSessionRequest.verify = function verify(message) { + ListVodConfigsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.vodConfigs != null && message.hasOwnProperty("vodConfigs")) { + if (!Array.isArray(message.vodConfigs)) + return "vodConfigs: array expected"; + for (var i = 0; i < message.vodConfigs.length; ++i) { + var error = $root.google.cloud.video.stitcher.v1.VodConfig.verify(message.vodConfigs[i]); + if (error) + return "vodConfigs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates a GetLiveSessionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVodConfigsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.GetLiveSessionRequest} GetLiveSessionRequest + * @returns {google.cloud.video.stitcher.v1.ListVodConfigsResponse} ListVodConfigsResponse */ - GetLiveSessionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.GetLiveSessionRequest) + ListVodConfigsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodConfigsResponse) return object; - var message = new $root.google.cloud.video.stitcher.v1.GetLiveSessionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.video.stitcher.v1.ListVodConfigsResponse(); + if (object.vodConfigs) { + if (!Array.isArray(object.vodConfigs)) + throw TypeError(".google.cloud.video.stitcher.v1.ListVodConfigsResponse.vodConfigs: array expected"); + message.vodConfigs = []; + for (var i = 0; i < object.vodConfigs.length; ++i) { + if (typeof object.vodConfigs[i] !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.ListVodConfigsResponse.vodConfigs: object expected"); + message.vodConfigs[i] = $root.google.cloud.video.stitcher.v1.VodConfig.fromObject(object.vodConfigs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.video.stitcher.v1.ListVodConfigsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a GetLiveSessionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVodConfigsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse * @static - * @param {google.cloud.video.stitcher.v1.GetLiveSessionRequest} message GetLiveSessionRequest + * @param {google.cloud.video.stitcher.v1.ListVodConfigsResponse} message ListVodConfigsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetLiveSessionRequest.toObject = function toObject(message, options) { + ListVodConfigsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.vodConfigs = []; + object.unreachable = []; + } if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.vodConfigs && message.vodConfigs.length) { + object.vodConfigs = []; + for (var j = 0; j < message.vodConfigs.length; ++j) + object.vodConfigs[j] = $root.google.cloud.video.stitcher.v1.VodConfig.toObject(message.vodConfigs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } return object; }; /** - * Converts this GetLiveSessionRequest to JSON. + * Converts this ListVodConfigsResponse to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse * @instance * @returns {Object.} JSON object */ - GetLiveSessionRequest.prototype.toJSON = function toJSON() { + ListVodConfigsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetLiveSessionRequest + * Gets the default type url for ListVodConfigsResponse * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.GetLiveSessionRequest + * @memberof google.cloud.video.stitcher.v1.ListVodConfigsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetLiveSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVodConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetLiveSessionRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListVodConfigsResponse"; }; - return GetLiveSessionRequest; + return ListVodConfigsResponse; })(); - v1.CreateLiveConfigRequest = (function() { - - /** - * Properties of a CreateLiveConfigRequest. - * @memberof google.cloud.video.stitcher.v1 - * @interface ICreateLiveConfigRequest - * @property {string|null} [parent] CreateLiveConfigRequest parent - * @property {string|null} [liveConfigId] CreateLiveConfigRequest liveConfigId - * @property {google.cloud.video.stitcher.v1.ILiveConfig|null} [liveConfig] CreateLiveConfigRequest liveConfig - * @property {string|null} [requestId] CreateLiveConfigRequest requestId - */ + v1.GetVodConfigRequest = (function() { /** - * Constructs a new CreateLiveConfigRequest. + * Properties of a GetVodConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a CreateLiveConfigRequest. - * @implements ICreateLiveConfigRequest - * @constructor - * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest=} [properties] Properties to set - */ - function CreateLiveConfigRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateLiveConfigRequest parent. - * @member {string} parent - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest - * @instance - */ - CreateLiveConfigRequest.prototype.parent = ""; - - /** - * CreateLiveConfigRequest liveConfigId. - * @member {string} liveConfigId - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest - * @instance - */ - CreateLiveConfigRequest.prototype.liveConfigId = ""; - - /** - * CreateLiveConfigRequest liveConfig. - * @member {google.cloud.video.stitcher.v1.ILiveConfig|null|undefined} liveConfig - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest - * @instance + * @interface IGetVodConfigRequest + * @property {string|null} [name] GetVodConfigRequest name */ - CreateLiveConfigRequest.prototype.liveConfig = null; /** - * CreateLiveConfigRequest requestId. - * @member {string} requestId - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * Constructs a new GetVodConfigRequest. + * @memberof google.cloud.video.stitcher.v1 + * @classdesc Represents a GetVodConfigRequest. + * @implements IGetVodConfigRequest + * @constructor + * @param {google.cloud.video.stitcher.v1.IGetVodConfigRequest=} [properties] Properties to set + */ + function GetVodConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVodConfigRequest name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.GetVodConfigRequest * @instance */ - CreateLiveConfigRequest.prototype.requestId = ""; + GetVodConfigRequest.prototype.name = ""; /** - * Creates a new CreateLiveConfigRequest instance using the specified properties. + * Creates a new GetVodConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.GetVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.CreateLiveConfigRequest} CreateLiveConfigRequest instance + * @param {google.cloud.video.stitcher.v1.IGetVodConfigRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.GetVodConfigRequest} GetVodConfigRequest instance */ - CreateLiveConfigRequest.create = function create(properties) { - return new CreateLiveConfigRequest(properties); + GetVodConfigRequest.create = function create(properties) { + return new GetVodConfigRequest(properties); }; /** - * Encodes the specified CreateLiveConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateLiveConfigRequest.verify|verify} messages. + * Encodes the specified GetVodConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.GetVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest} message CreateLiveConfigRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetVodConfigRequest} message GetVodConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateLiveConfigRequest.encode = function encode(message, writer) { + GetVodConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.liveConfigId != null && Object.hasOwnProperty.call(message, "liveConfigId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.liveConfigId); - if (message.liveConfig != null && Object.hasOwnProperty.call(message, "liveConfig")) - $root.google.cloud.video.stitcher.v1.LiveConfig.encode(message.liveConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateLiveConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateLiveConfigRequest.verify|verify} messages. + * Encodes the specified GetVodConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.GetVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.ICreateLiveConfigRequest} message CreateLiveConfigRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGetVodConfigRequest} message GetVodConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateLiveConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVodConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateLiveConfigRequest message from the specified reader or buffer. + * Decodes a GetVodConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.GetVodConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.CreateLiveConfigRequest} CreateLiveConfigRequest + * @returns {google.cloud.video.stitcher.v1.GetVodConfigRequest} GetVodConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateLiveConfigRequest.decode = function decode(reader, length) { + GetVodConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.CreateLiveConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetVodConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.liveConfigId = reader.string(); - break; - } - case 3: { - message.liveConfig = $root.google.cloud.video.stitcher.v1.LiveConfig.decode(reader, reader.uint32()); - break; - } - case 4: { - message.requestId = reader.string(); + message.name = reader.string(); break; } default: @@ -16476,156 +19622,122 @@ }; /** - * Decodes a CreateLiveConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVodConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.GetVodConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.CreateLiveConfigRequest} CreateLiveConfigRequest + * @returns {google.cloud.video.stitcher.v1.GetVodConfigRequest} GetVodConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateLiveConfigRequest.decodeDelimited = function decodeDelimited(reader) { + GetVodConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateLiveConfigRequest message. + * Verifies a GetVodConfigRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.GetVodConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateLiveConfigRequest.verify = function verify(message) { + GetVodConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.liveConfigId != null && message.hasOwnProperty("liveConfigId")) - if (!$util.isString(message.liveConfigId)) - return "liveConfigId: string expected"; - if (message.liveConfig != null && message.hasOwnProperty("liveConfig")) { - var error = $root.google.cloud.video.stitcher.v1.LiveConfig.verify(message.liveConfig); - if (error) - return "liveConfig." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateLiveConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVodConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.GetVodConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.CreateLiveConfigRequest} CreateLiveConfigRequest + * @returns {google.cloud.video.stitcher.v1.GetVodConfigRequest} GetVodConfigRequest */ - CreateLiveConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.CreateLiveConfigRequest) + GetVodConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.GetVodConfigRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.CreateLiveConfigRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.liveConfigId != null) - message.liveConfigId = String(object.liveConfigId); - if (object.liveConfig != null) { - if (typeof object.liveConfig !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.CreateLiveConfigRequest.liveConfig: object expected"); - message.liveConfig = $root.google.cloud.video.stitcher.v1.LiveConfig.fromObject(object.liveConfig); - } - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.video.stitcher.v1.GetVodConfigRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateLiveConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVodConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.GetVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.CreateLiveConfigRequest} message CreateLiveConfigRequest + * @param {google.cloud.video.stitcher.v1.GetVodConfigRequest} message GetVodConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateLiveConfigRequest.toObject = function toObject(message, options) { + GetVodConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.liveConfigId = ""; - object.liveConfig = null; - object.requestId = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.liveConfigId != null && message.hasOwnProperty("liveConfigId")) - object.liveConfigId = message.liveConfigId; - if (message.liveConfig != null && message.hasOwnProperty("liveConfig")) - object.liveConfig = $root.google.cloud.video.stitcher.v1.LiveConfig.toObject(message.liveConfig, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateLiveConfigRequest to JSON. + * Converts this GetVodConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.GetVodConfigRequest * @instance * @returns {Object.} JSON object */ - CreateLiveConfigRequest.prototype.toJSON = function toJSON() { + GetVodConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateLiveConfigRequest + * Gets the default type url for GetVodConfigRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.CreateLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.GetVodConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateLiveConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetVodConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateLiveConfigRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetVodConfigRequest"; }; - return CreateLiveConfigRequest; + return GetVodConfigRequest; })(); - v1.ListLiveConfigsRequest = (function() { + v1.DeleteVodConfigRequest = (function() { /** - * Properties of a ListLiveConfigsRequest. + * Properties of a DeleteVodConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IListLiveConfigsRequest - * @property {string|null} [parent] ListLiveConfigsRequest parent - * @property {number|null} [pageSize] ListLiveConfigsRequest pageSize - * @property {string|null} [pageToken] ListLiveConfigsRequest pageToken - * @property {string|null} [filter] ListLiveConfigsRequest filter - * @property {string|null} [orderBy] ListLiveConfigsRequest orderBy + * @interface IDeleteVodConfigRequest + * @property {string|null} [name] DeleteVodConfigRequest name */ /** - * Constructs a new ListLiveConfigsRequest. + * Constructs a new DeleteVodConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListLiveConfigsRequest. - * @implements IListLiveConfigsRequest + * @classdesc Represents a DeleteVodConfigRequest. + * @implements IDeleteVodConfigRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IDeleteVodConfigRequest=} [properties] Properties to set */ - function ListLiveConfigsRequest(properties) { + function DeleteVodConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16633,131 +19745,75 @@ } /** - * ListLiveConfigsRequest parent. - * @member {string} parent - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest - * @instance - */ - ListLiveConfigsRequest.prototype.parent = ""; - - /** - * ListLiveConfigsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest - * @instance - */ - ListLiveConfigsRequest.prototype.pageSize = 0; - - /** - * ListLiveConfigsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest - * @instance - */ - ListLiveConfigsRequest.prototype.pageToken = ""; - - /** - * ListLiveConfigsRequest filter. - * @member {string} filter - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest - * @instance - */ - ListLiveConfigsRequest.prototype.filter = ""; - - /** - * ListLiveConfigsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * DeleteVodConfigRequest name. + * @member {string} name + * @memberof google.cloud.video.stitcher.v1.DeleteVodConfigRequest * @instance */ - ListLiveConfigsRequest.prototype.orderBy = ""; + DeleteVodConfigRequest.prototype.name = ""; /** - * Creates a new ListLiveConfigsRequest instance using the specified properties. + * Creates a new DeleteVodConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * @memberof google.cloud.video.stitcher.v1.DeleteVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsRequest} ListLiveConfigsRequest instance + * @param {google.cloud.video.stitcher.v1.IDeleteVodConfigRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.DeleteVodConfigRequest} DeleteVodConfigRequest instance */ - ListLiveConfigsRequest.create = function create(properties) { - return new ListLiveConfigsRequest(properties); + DeleteVodConfigRequest.create = function create(properties) { + return new DeleteVodConfigRequest(properties); }; /** - * Encodes the specified ListLiveConfigsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsRequest.verify|verify} messages. + * Encodes the specified DeleteVodConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteVodConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * @memberof google.cloud.video.stitcher.v1.DeleteVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest} message ListLiveConfigsRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IDeleteVodConfigRequest} message DeleteVodConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListLiveConfigsRequest.encode = function encode(message, writer) { + DeleteVodConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListLiveConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsRequest.verify|verify} messages. + * Encodes the specified DeleteVodConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteVodConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * @memberof google.cloud.video.stitcher.v1.DeleteVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveConfigsRequest} message ListLiveConfigsRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IDeleteVodConfigRequest} message DeleteVodConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListLiveConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteVodConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListLiveConfigsRequest message from the specified reader or buffer. + * Decodes a DeleteVodConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * @memberof google.cloud.video.stitcher.v1.DeleteVodConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsRequest} ListLiveConfigsRequest + * @returns {google.cloud.video.stitcher.v1.DeleteVodConfigRequest} DeleteVodConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListLiveConfigsRequest.decode = function decode(reader, length) { + DeleteVodConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListLiveConfigsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.DeleteVodConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + message.name = reader.string(); break; } default: @@ -16769,159 +19825,123 @@ }; /** - * Decodes a ListLiveConfigsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteVodConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * @memberof google.cloud.video.stitcher.v1.DeleteVodConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsRequest} ListLiveConfigsRequest + * @returns {google.cloud.video.stitcher.v1.DeleteVodConfigRequest} DeleteVodConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListLiveConfigsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteVodConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListLiveConfigsRequest message. + * Verifies a DeleteVodConfigRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * @memberof google.cloud.video.stitcher.v1.DeleteVodConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListLiveConfigsRequest.verify = function verify(message) { + DeleteVodConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListLiveConfigsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVodConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * @memberof google.cloud.video.stitcher.v1.DeleteVodConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsRequest} ListLiveConfigsRequest + * @returns {google.cloud.video.stitcher.v1.DeleteVodConfigRequest} DeleteVodConfigRequest */ - ListLiveConfigsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListLiveConfigsRequest) + DeleteVodConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.DeleteVodConfigRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListLiveConfigsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.video.stitcher.v1.DeleteVodConfigRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListLiveConfigsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteVodConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * @memberof google.cloud.video.stitcher.v1.DeleteVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.ListLiveConfigsRequest} message ListLiveConfigsRequest + * @param {google.cloud.video.stitcher.v1.DeleteVodConfigRequest} message DeleteVodConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListLiveConfigsRequest.toObject = function toObject(message, options) { + DeleteVodConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListLiveConfigsRequest to JSON. + * Converts this DeleteVodConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * @memberof google.cloud.video.stitcher.v1.DeleteVodConfigRequest * @instance * @returns {Object.} JSON object */ - ListLiveConfigsRequest.prototype.toJSON = function toJSON() { + DeleteVodConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListLiveConfigsRequest + * Gets the default type url for DeleteVodConfigRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsRequest + * @memberof google.cloud.video.stitcher.v1.DeleteVodConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListLiveConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteVodConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListLiveConfigsRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.DeleteVodConfigRequest"; }; - return ListLiveConfigsRequest; + return DeleteVodConfigRequest; })(); - v1.ListLiveConfigsResponse = (function() { + v1.UpdateVodConfigRequest = (function() { /** - * Properties of a ListLiveConfigsResponse. + * Properties of an UpdateVodConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @interface IListLiveConfigsResponse - * @property {Array.|null} [liveConfigs] ListLiveConfigsResponse liveConfigs - * @property {string|null} [nextPageToken] ListLiveConfigsResponse nextPageToken - * @property {Array.|null} [unreachable] ListLiveConfigsResponse unreachable + * @interface IUpdateVodConfigRequest + * @property {google.cloud.video.stitcher.v1.IVodConfig|null} [vodConfig] UpdateVodConfigRequest vodConfig + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVodConfigRequest updateMask */ /** - * Constructs a new ListLiveConfigsResponse. + * Constructs a new UpdateVodConfigRequest. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a ListLiveConfigsResponse. - * @implements IListLiveConfigsResponse + * @classdesc Represents an UpdateVodConfigRequest. + * @implements IUpdateVodConfigRequest * @constructor - * @param {google.cloud.video.stitcher.v1.IListLiveConfigsResponse=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IUpdateVodConfigRequest=} [properties] Properties to set */ - function ListLiveConfigsResponse(properties) { - this.liveConfigs = []; - this.unreachable = []; + function UpdateVodConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16929,109 +19949,89 @@ } /** - * ListLiveConfigsResponse liveConfigs. - * @member {Array.} liveConfigs - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse - * @instance - */ - ListLiveConfigsResponse.prototype.liveConfigs = $util.emptyArray; - - /** - * ListLiveConfigsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * UpdateVodConfigRequest vodConfig. + * @member {google.cloud.video.stitcher.v1.IVodConfig|null|undefined} vodConfig + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @instance */ - ListLiveConfigsResponse.prototype.nextPageToken = ""; + UpdateVodConfigRequest.prototype.vodConfig = null; /** - * ListLiveConfigsResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * UpdateVodConfigRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @instance */ - ListLiveConfigsResponse.prototype.unreachable = $util.emptyArray; + UpdateVodConfigRequest.prototype.updateMask = null; /** - * Creates a new ListLiveConfigsResponse instance using the specified properties. + * Creates a new UpdateVodConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveConfigsResponse=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} ListLiveConfigsResponse instance + * @param {google.cloud.video.stitcher.v1.IUpdateVodConfigRequest=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.UpdateVodConfigRequest} UpdateVodConfigRequest instance */ - ListLiveConfigsResponse.create = function create(properties) { - return new ListLiveConfigsResponse(properties); + UpdateVodConfigRequest.create = function create(properties) { + return new UpdateVodConfigRequest(properties); }; /** - * Encodes the specified ListLiveConfigsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsResponse.verify|verify} messages. + * Encodes the specified UpdateVodConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateVodConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveConfigsResponse} message ListLiveConfigsResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IUpdateVodConfigRequest} message UpdateVodConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListLiveConfigsResponse.encode = function encode(message, writer) { + UpdateVodConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.liveConfigs != null && message.liveConfigs.length) - for (var i = 0; i < message.liveConfigs.length; ++i) - $root.google.cloud.video.stitcher.v1.LiveConfig.encode(message.liveConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.vodConfig != null && Object.hasOwnProperty.call(message, "vodConfig")) + $root.google.cloud.video.stitcher.v1.VodConfig.encode(message.vodConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListLiveConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsResponse.verify|verify} messages. + * Encodes the specified UpdateVodConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateVodConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.IListLiveConfigsResponse} message ListLiveConfigsResponse message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IUpdateVodConfigRequest} message UpdateVodConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListLiveConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVodConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListLiveConfigsResponse message from the specified reader or buffer. + * Decodes an UpdateVodConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} ListLiveConfigsResponse + * @returns {google.cloud.video.stitcher.v1.UpdateVodConfigRequest} UpdateVodConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListLiveConfigsResponse.decode = function decode(reader, length) { + UpdateVodConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.ListLiveConfigsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.UpdateVodConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.liveConfigs && message.liveConfigs.length)) - message.liveConfigs = []; - message.liveConfigs.push($root.google.cloud.video.stitcher.v1.LiveConfig.decode(reader, reader.uint32())); + message.vodConfig = $root.google.cloud.video.stitcher.v1.VodConfig.decode(reader, reader.uint32()); break; } case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -17043,169 +20043,144 @@ }; /** - * Decodes a ListLiveConfigsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateVodConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} ListLiveConfigsResponse + * @returns {google.cloud.video.stitcher.v1.UpdateVodConfigRequest} UpdateVodConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListLiveConfigsResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateVodConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListLiveConfigsResponse message. + * Verifies an UpdateVodConfigRequest message. * @function verify - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListLiveConfigsResponse.verify = function verify(message) { + UpdateVodConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.liveConfigs != null && message.hasOwnProperty("liveConfigs")) { - if (!Array.isArray(message.liveConfigs)) - return "liveConfigs: array expected"; - for (var i = 0; i < message.liveConfigs.length; ++i) { - var error = $root.google.cloud.video.stitcher.v1.LiveConfig.verify(message.liveConfigs[i]); - if (error) - return "liveConfigs." + error; - } + if (message.vodConfig != null && message.hasOwnProperty("vodConfig")) { + var error = $root.google.cloud.video.stitcher.v1.VodConfig.verify(message.vodConfig); + if (error) + return "vodConfig." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a ListLiveConfigsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVodConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} ListLiveConfigsResponse + * @returns {google.cloud.video.stitcher.v1.UpdateVodConfigRequest} UpdateVodConfigRequest */ - ListLiveConfigsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.ListLiveConfigsResponse) + UpdateVodConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.UpdateVodConfigRequest) return object; - var message = new $root.google.cloud.video.stitcher.v1.ListLiveConfigsResponse(); - if (object.liveConfigs) { - if (!Array.isArray(object.liveConfigs)) - throw TypeError(".google.cloud.video.stitcher.v1.ListLiveConfigsResponse.liveConfigs: array expected"); - message.liveConfigs = []; - for (var i = 0; i < object.liveConfigs.length; ++i) { - if (typeof object.liveConfigs[i] !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.ListLiveConfigsResponse.liveConfigs: object expected"); - message.liveConfigs[i] = $root.google.cloud.video.stitcher.v1.LiveConfig.fromObject(object.liveConfigs[i]); - } + var message = new $root.google.cloud.video.stitcher.v1.UpdateVodConfigRequest(); + if (object.vodConfig != null) { + if (typeof object.vodConfig !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.UpdateVodConfigRequest.vodConfig: object expected"); + message.vodConfig = $root.google.cloud.video.stitcher.v1.VodConfig.fromObject(object.vodConfig); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.video.stitcher.v1.ListLiveConfigsResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.UpdateVodConfigRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a ListLiveConfigsResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVodConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @static - * @param {google.cloud.video.stitcher.v1.ListLiveConfigsResponse} message ListLiveConfigsResponse + * @param {google.cloud.video.stitcher.v1.UpdateVodConfigRequest} message UpdateVodConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListLiveConfigsResponse.toObject = function toObject(message, options) { + UpdateVodConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.liveConfigs = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.liveConfigs && message.liveConfigs.length) { - object.liveConfigs = []; - for (var j = 0; j < message.liveConfigs.length; ++j) - object.liveConfigs[j] = $root.google.cloud.video.stitcher.v1.LiveConfig.toObject(message.liveConfigs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (options.defaults) { + object.vodConfig = null; + object.updateMask = null; } + if (message.vodConfig != null && message.hasOwnProperty("vodConfig")) + object.vodConfig = $root.google.cloud.video.stitcher.v1.VodConfig.toObject(message.vodConfig, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListLiveConfigsResponse to JSON. + * Converts this UpdateVodConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @instance * @returns {Object.} JSON object */ - ListLiveConfigsResponse.prototype.toJSON = function toJSON() { + UpdateVodConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListLiveConfigsResponse + * Gets the default type url for UpdateVodConfigRequest * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.ListLiveConfigsResponse + * @memberof google.cloud.video.stitcher.v1.UpdateVodConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListLiveConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateVodConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListLiveConfigsResponse"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.UpdateVodConfigRequest"; }; - return ListLiveConfigsResponse; + return UpdateVodConfigRequest; })(); - v1.GetLiveConfigRequest = (function() { + v1.OperationMetadata = (function() { /** - * Properties of a GetLiveConfigRequest. + * Properties of an OperationMetadata. * @memberof google.cloud.video.stitcher.v1 - * @interface IGetLiveConfigRequest - * @property {string|null} [name] GetLiveConfigRequest name + * @interface IOperationMetadata + * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime + * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime + * @property {string|null} [target] OperationMetadata target + * @property {string|null} [verb] OperationMetadata verb */ /** - * Constructs a new GetLiveConfigRequest. + * Constructs a new OperationMetadata. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a GetLiveConfigRequest. - * @implements IGetLiveConfigRequest + * @classdesc Represents an OperationMetadata. + * @implements IOperationMetadata * @constructor - * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IOperationMetadata=} [properties] Properties to set */ - function GetLiveConfigRequest(properties) { + function OperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17213,75 +20188,117 @@ } /** - * GetLiveConfigRequest name. - * @member {string} name - * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest + * OperationMetadata createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.createTime = null; + + /** + * OperationMetadata endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.endTime = null; + + /** + * OperationMetadata target. + * @member {string} target + * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.target = ""; + + /** + * OperationMetadata verb. + * @member {string} verb + * @memberof google.cloud.video.stitcher.v1.OperationMetadata * @instance */ - GetLiveConfigRequest.prototype.name = ""; + OperationMetadata.prototype.verb = ""; /** - * Creates a new GetLiveConfigRequest instance using the specified properties. + * Creates a new OperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.OperationMetadata * @static - * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.GetLiveConfigRequest} GetLiveConfigRequest instance + * @param {google.cloud.video.stitcher.v1.IOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.OperationMetadata} OperationMetadata instance */ - GetLiveConfigRequest.create = function create(properties) { - return new GetLiveConfigRequest(properties); + OperationMetadata.create = function create(properties) { + return new OperationMetadata(properties); }; /** - * Encodes the specified GetLiveConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveConfigRequest.verify|verify} messages. + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.video.stitcher.v1.OperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.OperationMetadata * @static - * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest} message GetLiveConfigRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IOperationMetadata} message OperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetLiveConfigRequest.encode = function encode(message, writer) { + OperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); + if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); return writer; }; /** - * Encodes the specified GetLiveConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveConfigRequest.verify|verify} messages. + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.OperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.OperationMetadata * @static - * @param {google.cloud.video.stitcher.v1.IGetLiveConfigRequest} message GetLiveConfigRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IOperationMetadata} message OperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetLiveConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetLiveConfigRequest message from the specified reader or buffer. + * Decodes an OperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.OperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.GetLiveConfigRequest} GetLiveConfigRequest + * @returns {google.cloud.video.stitcher.v1.OperationMetadata} OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetLiveConfigRequest.decode = function decode(reader, length) { + OperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GetLiveConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.OperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.target = reader.string(); + break; + } + case 4: { + message.verb = reader.string(); break; } default: @@ -17293,122 +20310,162 @@ }; /** - * Decodes a GetLiveConfigRequest message from the specified reader or buffer, length delimited. + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.OperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.GetLiveConfigRequest} GetLiveConfigRequest + * @returns {google.cloud.video.stitcher.v1.OperationMetadata} OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetLiveConfigRequest.decodeDelimited = function decodeDelimited(reader) { + OperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetLiveConfigRequest message. + * Verifies an OperationMetadata message. * @function verify - * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.OperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetLiveConfigRequest.verify = function verify(message) { + OperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.target != null && message.hasOwnProperty("target")) + if (!$util.isString(message.target)) + return "target: string expected"; + if (message.verb != null && message.hasOwnProperty("verb")) + if (!$util.isString(message.verb)) + return "verb: string expected"; return null; }; /** - * Creates a GetLiveConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.OperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.GetLiveConfigRequest} GetLiveConfigRequest + * @returns {google.cloud.video.stitcher.v1.OperationMetadata} OperationMetadata */ - GetLiveConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.GetLiveConfigRequest) + OperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.OperationMetadata) return object; - var message = new $root.google.cloud.video.stitcher.v1.GetLiveConfigRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.video.stitcher.v1.OperationMetadata(); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.OperationMetadata.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.OperationMetadata.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.target != null) + message.target = String(object.target); + if (object.verb != null) + message.verb = String(object.verb); return message; }; /** - * Creates a plain object from a GetLiveConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.OperationMetadata * @static - * @param {google.cloud.video.stitcher.v1.GetLiveConfigRequest} message GetLiveConfigRequest + * @param {google.cloud.video.stitcher.v1.OperationMetadata} message OperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetLiveConfigRequest.toObject = function toObject(message, options) { + OperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.createTime = null; + object.endTime = null; + object.target = ""; + object.verb = ""; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = message.target; + if (message.verb != null && message.hasOwnProperty("verb")) + object.verb = message.verb; return object; }; /** - * Converts this GetLiveConfigRequest to JSON. + * Converts this OperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.OperationMetadata * @instance * @returns {Object.} JSON object */ - GetLiveConfigRequest.prototype.toJSON = function toJSON() { + OperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetLiveConfigRequest + * Gets the default type url for OperationMetadata * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.GetLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.OperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetLiveConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GetLiveConfigRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.OperationMetadata"; }; - return GetLiveConfigRequest; + return OperationMetadata; })(); - v1.DeleteLiveConfigRequest = (function() { + v1.VodConfig = (function() { /** - * Properties of a DeleteLiveConfigRequest. + * Properties of a VodConfig. * @memberof google.cloud.video.stitcher.v1 - * @interface IDeleteLiveConfigRequest - * @property {string|null} [name] DeleteLiveConfigRequest name + * @interface IVodConfig + * @property {string|null} [name] VodConfig name + * @property {string|null} [sourceUri] VodConfig sourceUri + * @property {string|null} [adTagUri] VodConfig adTagUri + * @property {google.cloud.video.stitcher.v1.IGamVodConfig|null} [gamVodConfig] VodConfig gamVodConfig + * @property {google.cloud.video.stitcher.v1.VodConfig.State|null} [state] VodConfig state + * @property {google.cloud.video.stitcher.v1.IFetchOptions|null} [sourceFetchOptions] VodConfig sourceFetchOptions */ /** - * Constructs a new DeleteLiveConfigRequest. + * Constructs a new VodConfig. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents a DeleteLiveConfigRequest. - * @implements IDeleteLiveConfigRequest + * @classdesc Represents a VodConfig. + * @implements IVodConfig * @constructor - * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IVodConfig=} [properties] Properties to set */ - function DeleteLiveConfigRequest(properties) { + function VodConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17416,70 +20473,120 @@ } /** - * DeleteLiveConfigRequest name. + * VodConfig name. * @member {string} name - * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.VodConfig * @instance */ - DeleteLiveConfigRequest.prototype.name = ""; + VodConfig.prototype.name = ""; /** - * Creates a new DeleteLiveConfigRequest instance using the specified properties. + * VodConfig sourceUri. + * @member {string} sourceUri + * @memberof google.cloud.video.stitcher.v1.VodConfig + * @instance + */ + VodConfig.prototype.sourceUri = ""; + + /** + * VodConfig adTagUri. + * @member {string} adTagUri + * @memberof google.cloud.video.stitcher.v1.VodConfig + * @instance + */ + VodConfig.prototype.adTagUri = ""; + + /** + * VodConfig gamVodConfig. + * @member {google.cloud.video.stitcher.v1.IGamVodConfig|null|undefined} gamVodConfig + * @memberof google.cloud.video.stitcher.v1.VodConfig + * @instance + */ + VodConfig.prototype.gamVodConfig = null; + + /** + * VodConfig state. + * @member {google.cloud.video.stitcher.v1.VodConfig.State} state + * @memberof google.cloud.video.stitcher.v1.VodConfig + * @instance + */ + VodConfig.prototype.state = 0; + + /** + * VodConfig sourceFetchOptions. + * @member {google.cloud.video.stitcher.v1.IFetchOptions|null|undefined} sourceFetchOptions + * @memberof google.cloud.video.stitcher.v1.VodConfig + * @instance + */ + VodConfig.prototype.sourceFetchOptions = null; + + /** + * Creates a new VodConfig instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.VodConfig * @static - * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.DeleteLiveConfigRequest} DeleteLiveConfigRequest instance + * @param {google.cloud.video.stitcher.v1.IVodConfig=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.VodConfig} VodConfig instance */ - DeleteLiveConfigRequest.create = function create(properties) { - return new DeleteLiveConfigRequest(properties); + VodConfig.create = function create(properties) { + return new VodConfig(properties); }; /** - * Encodes the specified DeleteLiveConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteLiveConfigRequest.verify|verify} messages. + * Encodes the specified VodConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.VodConfig * @static - * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest} message DeleteLiveConfigRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IVodConfig} message VodConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteLiveConfigRequest.encode = function encode(message, writer) { + VodConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.sourceUri != null && Object.hasOwnProperty.call(message, "sourceUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceUri); + if (message.adTagUri != null && Object.hasOwnProperty.call(message, "adTagUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.adTagUri); + if (message.gamVodConfig != null && Object.hasOwnProperty.call(message, "gamVodConfig")) + $root.google.cloud.video.stitcher.v1.GamVodConfig.encode(message.gamVodConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); + if (message.sourceFetchOptions != null && Object.hasOwnProperty.call(message, "sourceFetchOptions")) + $root.google.cloud.video.stitcher.v1.FetchOptions.encode(message.sourceFetchOptions, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteLiveConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteLiveConfigRequest.verify|verify} messages. + * Encodes the specified VodConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.VodConfig * @static - * @param {google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest} message DeleteLiveConfigRequest message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IVodConfig} message VodConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteLiveConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + VodConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteLiveConfigRequest message from the specified reader or buffer. + * Decodes a VodConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.VodConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.DeleteLiveConfigRequest} DeleteLiveConfigRequest + * @returns {google.cloud.video.stitcher.v1.VodConfig} VodConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteLiveConfigRequest.decode = function decode(reader, length) { + VodConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.VodConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17487,6 +20594,26 @@ message.name = reader.string(); break; } + case 2: { + message.sourceUri = reader.string(); + break; + } + case 3: { + message.adTagUri = reader.string(); + break; + } + case 4: { + message.gamVodConfig = $root.google.cloud.video.stitcher.v1.GamVodConfig.decode(reader, reader.uint32()); + break; + } + case 5: { + message.state = reader.int32(); + break; + } + case 8: { + message.sourceFetchOptions = $root.google.cloud.video.stitcher.v1.FetchOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -17496,125 +20623,220 @@ }; /** - * Decodes a DeleteLiveConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a VodConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.VodConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.DeleteLiveConfigRequest} DeleteLiveConfigRequest + * @returns {google.cloud.video.stitcher.v1.VodConfig} VodConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteLiveConfigRequest.decodeDelimited = function decodeDelimited(reader) { + VodConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteLiveConfigRequest message. + * Verifies a VodConfig message. * @function verify - * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.VodConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteLiveConfigRequest.verify = function verify(message) { + VodConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.sourceUri != null && message.hasOwnProperty("sourceUri")) + if (!$util.isString(message.sourceUri)) + return "sourceUri: string expected"; + if (message.adTagUri != null && message.hasOwnProperty("adTagUri")) + if (!$util.isString(message.adTagUri)) + return "adTagUri: string expected"; + if (message.gamVodConfig != null && message.hasOwnProperty("gamVodConfig")) { + var error = $root.google.cloud.video.stitcher.v1.GamVodConfig.verify(message.gamVodConfig); + if (error) + return "gamVodConfig." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.sourceFetchOptions != null && message.hasOwnProperty("sourceFetchOptions")) { + var error = $root.google.cloud.video.stitcher.v1.FetchOptions.verify(message.sourceFetchOptions); + if (error) + return "sourceFetchOptions." + error; + } return null; }; /** - * Creates a DeleteLiveConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VodConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.VodConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.DeleteLiveConfigRequest} DeleteLiveConfigRequest + * @returns {google.cloud.video.stitcher.v1.VodConfig} VodConfig */ - DeleteLiveConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest) + VodConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.VodConfig) return object; - var message = new $root.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest(); + var message = new $root.google.cloud.video.stitcher.v1.VodConfig(); if (object.name != null) message.name = String(object.name); + if (object.sourceUri != null) + message.sourceUri = String(object.sourceUri); + if (object.adTagUri != null) + message.adTagUri = String(object.adTagUri); + if (object.gamVodConfig != null) { + if (typeof object.gamVodConfig !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodConfig.gamVodConfig: object expected"); + message.gamVodConfig = $root.google.cloud.video.stitcher.v1.GamVodConfig.fromObject(object.gamVodConfig); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "CREATING": + case 1: + message.state = 1; + break; + case "READY": + case 2: + message.state = 2; + break; + case "DELETING": + case 3: + message.state = 3; + break; + } + if (object.sourceFetchOptions != null) { + if (typeof object.sourceFetchOptions !== "object") + throw TypeError(".google.cloud.video.stitcher.v1.VodConfig.sourceFetchOptions: object expected"); + message.sourceFetchOptions = $root.google.cloud.video.stitcher.v1.FetchOptions.fromObject(object.sourceFetchOptions); + } return message; }; /** - * Creates a plain object from a DeleteLiveConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a VodConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.VodConfig * @static - * @param {google.cloud.video.stitcher.v1.DeleteLiveConfigRequest} message DeleteLiveConfigRequest + * @param {google.cloud.video.stitcher.v1.VodConfig} message VodConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteLiveConfigRequest.toObject = function toObject(message, options) { + VodConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.sourceUri = ""; + object.adTagUri = ""; + object.gamVodConfig = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.sourceFetchOptions = null; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.sourceUri != null && message.hasOwnProperty("sourceUri")) + object.sourceUri = message.sourceUri; + if (message.adTagUri != null && message.hasOwnProperty("adTagUri")) + object.adTagUri = message.adTagUri; + if (message.gamVodConfig != null && message.hasOwnProperty("gamVodConfig")) + object.gamVodConfig = $root.google.cloud.video.stitcher.v1.GamVodConfig.toObject(message.gamVodConfig, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.video.stitcher.v1.VodConfig.State[message.state] === undefined ? message.state : $root.google.cloud.video.stitcher.v1.VodConfig.State[message.state] : message.state; + if (message.sourceFetchOptions != null && message.hasOwnProperty("sourceFetchOptions")) + object.sourceFetchOptions = $root.google.cloud.video.stitcher.v1.FetchOptions.toObject(message.sourceFetchOptions, options); return object; }; /** - * Converts this DeleteLiveConfigRequest to JSON. + * Converts this VodConfig to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.VodConfig * @instance * @returns {Object.} JSON object */ - DeleteLiveConfigRequest.prototype.toJSON = function toJSON() { + VodConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteLiveConfigRequest + * Gets the default type url for VodConfig * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.DeleteLiveConfigRequest + * @memberof google.cloud.video.stitcher.v1.VodConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteLiveConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VodConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.DeleteLiveConfigRequest"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodConfig"; }; - return DeleteLiveConfigRequest; + /** + * State enum. + * @name google.cloud.video.stitcher.v1.VodConfig.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} CREATING=1 CREATING value + * @property {number} READY=2 READY value + * @property {number} DELETING=3 DELETING value + */ + VodConfig.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATING"] = 1; + values[valuesById[2] = "READY"] = 2; + values[valuesById[3] = "DELETING"] = 3; + return values; + })(); + + return VodConfig; })(); - v1.OperationMetadata = (function() { + v1.GamVodConfig = (function() { /** - * Properties of an OperationMetadata. + * Properties of a GamVodConfig. * @memberof google.cloud.video.stitcher.v1 - * @interface IOperationMetadata - * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime - * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime - * @property {string|null} [target] OperationMetadata target - * @property {string|null} [verb] OperationMetadata verb + * @interface IGamVodConfig + * @property {string|null} [networkCode] GamVodConfig networkCode */ /** - * Constructs a new OperationMetadata. + * Constructs a new GamVodConfig. * @memberof google.cloud.video.stitcher.v1 - * @classdesc Represents an OperationMetadata. - * @implements IOperationMetadata + * @classdesc Represents a GamVodConfig. + * @implements IGamVodConfig * @constructor - * @param {google.cloud.video.stitcher.v1.IOperationMetadata=} [properties] Properties to set + * @param {google.cloud.video.stitcher.v1.IGamVodConfig=} [properties] Properties to set */ - function OperationMetadata(properties) { + function GamVodConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17622,117 +20844,75 @@ } /** - * OperationMetadata createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.video.stitcher.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.createTime = null; - - /** - * OperationMetadata endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.video.stitcher.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.endTime = null; - - /** - * OperationMetadata target. - * @member {string} target - * @memberof google.cloud.video.stitcher.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.target = ""; - - /** - * OperationMetadata verb. - * @member {string} verb - * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * GamVodConfig networkCode. + * @member {string} networkCode + * @memberof google.cloud.video.stitcher.v1.GamVodConfig * @instance */ - OperationMetadata.prototype.verb = ""; + GamVodConfig.prototype.networkCode = ""; /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new GamVodConfig instance using the specified properties. * @function create - * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @memberof google.cloud.video.stitcher.v1.GamVodConfig * @static - * @param {google.cloud.video.stitcher.v1.IOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.video.stitcher.v1.OperationMetadata} OperationMetadata instance + * @param {google.cloud.video.stitcher.v1.IGamVodConfig=} [properties] Properties to set + * @returns {google.cloud.video.stitcher.v1.GamVodConfig} GamVodConfig instance */ - OperationMetadata.create = function create(properties) { - return new OperationMetadata(properties); + GamVodConfig.create = function create(properties) { + return new GamVodConfig(properties); }; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.video.stitcher.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified GamVodConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.GamVodConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @memberof google.cloud.video.stitcher.v1.GamVodConfig * @static - * @param {google.cloud.video.stitcher.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGamVodConfig} message GamVodConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encode = function encode(message, writer) { + GamVodConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); - if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); + if (message.networkCode != null && Object.hasOwnProperty.call(message, "networkCode")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.networkCode); return writer; }; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified GamVodConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GamVodConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @memberof google.cloud.video.stitcher.v1.GamVodConfig * @static - * @param {google.cloud.video.stitcher.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.video.stitcher.v1.IGamVodConfig} message GamVodConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + GamVodConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes a GamVodConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @memberof google.cloud.video.stitcher.v1.GamVodConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.video.stitcher.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.video.stitcher.v1.GamVodConfig} GamVodConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decode = function decode(reader, length) { + GamVodConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.OperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.video.stitcher.v1.GamVodConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 3: { - message.target = reader.string(); - break; - } - case 4: { - message.verb = reader.string(); + message.networkCode = reader.string(); break; } default: @@ -17744,137 +20924,102 @@ }; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GamVodConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @memberof google.cloud.video.stitcher.v1.GamVodConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.video.stitcher.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.video.stitcher.v1.GamVodConfig} GamVodConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decodeDelimited = function decodeDelimited(reader) { + GamVodConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OperationMetadata message. + * Verifies a GamVodConfig message. * @function verify - * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @memberof google.cloud.video.stitcher.v1.GamVodConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OperationMetadata.verify = function verify(message) { + GamVodConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.target != null && message.hasOwnProperty("target")) - if (!$util.isString(message.target)) - return "target: string expected"; - if (message.verb != null && message.hasOwnProperty("verb")) - if (!$util.isString(message.verb)) - return "verb: string expected"; + if (message.networkCode != null && message.hasOwnProperty("networkCode")) + if (!$util.isString(message.networkCode)) + return "networkCode: string expected"; return null; }; /** - * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GamVodConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @memberof google.cloud.video.stitcher.v1.GamVodConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.video.stitcher.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.video.stitcher.v1.GamVodConfig} GamVodConfig */ - OperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.video.stitcher.v1.OperationMetadata) + GamVodConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.video.stitcher.v1.GamVodConfig) return object; - var message = new $root.google.cloud.video.stitcher.v1.OperationMetadata(); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.OperationMetadata.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.video.stitcher.v1.OperationMetadata.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.target != null) - message.target = String(object.target); - if (object.verb != null) - message.verb = String(object.verb); + var message = new $root.google.cloud.video.stitcher.v1.GamVodConfig(); + if (object.networkCode != null) + message.networkCode = String(object.networkCode); return message; }; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a GamVodConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @memberof google.cloud.video.stitcher.v1.GamVodConfig * @static - * @param {google.cloud.video.stitcher.v1.OperationMetadata} message OperationMetadata + * @param {google.cloud.video.stitcher.v1.GamVodConfig} message GamVodConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OperationMetadata.toObject = function toObject(message, options) { + GamVodConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.createTime = null; - object.endTime = null; - object.target = ""; - object.verb = ""; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = message.target; - if (message.verb != null && message.hasOwnProperty("verb")) - object.verb = message.verb; + if (options.defaults) + object.networkCode = ""; + if (message.networkCode != null && message.hasOwnProperty("networkCode")) + object.networkCode = message.networkCode; return object; }; /** - * Converts this OperationMetadata to JSON. + * Converts this GamVodConfig to JSON. * @function toJSON - * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @memberof google.cloud.video.stitcher.v1.GamVodConfig * @instance * @returns {Object.} JSON object */ - OperationMetadata.prototype.toJSON = function toJSON() { + GamVodConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for GamVodConfig * @function getTypeUrl - * @memberof google.cloud.video.stitcher.v1.OperationMetadata + * @memberof google.cloud.video.stitcher.v1.GamVodConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GamVodConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.video.stitcher.v1.OperationMetadata"; + return typeUrlPrefix + "/google.cloud.video.stitcher.v1.GamVodConfig"; }; - return OperationMetadata; + return GamVodConfig; })(); return v1; diff --git a/packages/google-cloud-video-stitcher/protos/protos.json b/packages/google-cloud-video-stitcher/protos/protos.json index 3b4919b3a57..6607f8be661 100644 --- a/packages/google-cloud-video-stitcher/protos/protos.json +++ b/packages/google-cloud-video-stitcher/protos/protos.json @@ -12,7 +12,7 @@ "options": { "go_package": "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb", "java_multiple_files": true, - "java_outer_classname": "VideoStitcherServiceProto", + "java_outer_classname": "VodConfigsProto", "java_package": "com.google.cloud.video.stitcher.v1" }, "nested": { @@ -177,6 +177,26 @@ "keyName": { "type": "string", "id": 2 + }, + "tokenConfig": { + "type": "TokenConfig", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "TokenConfig": { + "fields": { + "queryParameter": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } } } }, @@ -357,6 +377,15 @@ } } }, + "FetchOptions": { + "fields": { + "headers": { + "keyType": "string", + "type": "string", + "id": 1 + } + } + }, "AdTracking": { "values": { "AD_TRACKING_UNSPECIFIED": 0, @@ -420,6 +449,10 @@ "prefetchConfig": { "type": "PrefetchConfig", "id": 10 + }, + "sourceFetchOptions": { + "type": "FetchOptions", + "id": 16 } }, "nested": { @@ -509,17 +542,11 @@ }, "sourceUri": { "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 5 }, "adTagUri": { "type": "string", - "id": 6, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 6 }, "adTagMacroMap": { "keyType": "string", @@ -547,6 +574,13 @@ "gamSettings": { "type": "GamSettings", "id": 13 + }, + "vodConfig": { + "type": "string", + "id": 14, + "options": { + "(google.api.resource_reference).type": "videostitcher.googleapis.com/VodConfig" + } } }, "nested": { @@ -670,6 +704,10 @@ "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "videostitcher.googleapis.com/LiveConfig" } + }, + "adTracking": { + "type": "AdTracking", + "id": 17 } }, "nested": { @@ -681,6 +719,11 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "targetingParameters": { + "keyType": "string", + "type": "string", + "id": 4 } } } @@ -1335,6 +1378,152 @@ } } ] + }, + "UpdateLiveConfig": { + "requestType": "UpdateLiveConfigRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1/{live_config.name=projects/*/locations/*/liveConfigs/*}", + "(google.api.http).body": "live_config", + "(google.api.method_signature)": "live_config,update_mask", + "(google.longrunning.operation_info).response_type": "google.cloud.video.stitcher.v1.LiveConfig", + "(google.longrunning.operation_info).metadata_type": "google.cloud.video.stitcher.v1.OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{live_config.name=projects/*/locations/*/liveConfigs/*}", + "body": "live_config" + } + }, + { + "(google.api.method_signature)": "live_config,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.cloud.video.stitcher.v1.LiveConfig", + "metadata_type": "google.cloud.video.stitcher.v1.OperationMetadata" + } + } + ] + }, + "CreateVodConfig": { + "requestType": "CreateVodConfigRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/vodConfigs", + "(google.api.http).body": "vod_config", + "(google.api.method_signature)": "parent,vod_config,vod_config_id", + "(google.longrunning.operation_info).response_type": "google.cloud.video.stitcher.v1.VodConfig", + "(google.longrunning.operation_info).metadata_type": "google.cloud.video.stitcher.v1.OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/vodConfigs", + "body": "vod_config" + } + }, + { + "(google.api.method_signature)": "parent,vod_config,vod_config_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.cloud.video.stitcher.v1.VodConfig", + "metadata_type": "google.cloud.video.stitcher.v1.OperationMetadata" + } + } + ] + }, + "ListVodConfigs": { + "requestType": "ListVodConfigsRequest", + "responseType": "ListVodConfigsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/vodConfigs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/vodConfigs" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetVodConfig": { + "requestType": "GetVodConfigRequest", + "responseType": "VodConfig", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/vodConfigs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/vodConfigs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "DeleteVodConfig": { + "requestType": "DeleteVodConfigRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/vodConfigs/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "google.cloud.video.stitcher.v1.OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/vodConfigs/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "google.cloud.video.stitcher.v1.OperationMetadata" + } + } + ] + }, + "UpdateVodConfig": { + "requestType": "UpdateVodConfigRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1/{vod_config.name=projects/*/locations/*/vodConfigs/*}", + "(google.api.http).body": "vod_config", + "(google.api.method_signature)": "vod_config,update_mask", + "(google.longrunning.operation_info).response_type": "google.cloud.video.stitcher.v1.VodConfig", + "(google.longrunning.operation_info).metadata_type": "google.cloud.video.stitcher.v1.OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{vod_config.name=projects/*/locations/*/vodConfigs/*}", + "body": "vod_config" + } + }, + { + "(google.api.method_signature)": "vod_config,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.cloud.video.stitcher.v1.VodConfig", + "metadata_type": "google.cloud.video.stitcher.v1.OperationMetadata" + } + } + ] } } }, @@ -1873,6 +2062,157 @@ } } }, + "UpdateLiveConfigRequest": { + "fields": { + "liveConfig": { + "type": "LiveConfig", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CreateVodConfigRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "videostitcher.googleapis.com/VodConfig" + } + }, + "vodConfigId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "vodConfig": { + "type": "VodConfig", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListVodConfigsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "videostitcher.googleapis.com/VodConfig" + } + }, + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "filter": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "orderBy": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListVodConfigsResponse": { + "fields": { + "vodConfigs": { + "rule": "repeated", + "type": "VodConfig", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "GetVodConfigRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "videostitcher.googleapis.com/VodConfig" + } + } + } + }, + "DeleteVodConfigRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "videostitcher.googleapis.com/VodConfig" + } + } + } + }, + "UpdateVodConfigRequest": { + "fields": { + "vodConfig": { + "type": "VodConfig", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "OperationMetadata": { "fields": { "createTime": { @@ -1892,6 +2232,74 @@ "id": 4 } } + }, + "VodConfig": { + "options": { + "(google.api.resource).type": "videostitcher.googleapis.com/VodConfig", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/vodConfigs/{vod_config}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "sourceUri": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "adTagUri": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "gamVodConfig": { + "type": "GamVodConfig", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "state": { + "type": "State", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "sourceFetchOptions": { + "type": "FetchOptions", + "id": 8 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "CREATING": 1, + "READY": 2, + "DELETING": 3 + } + } + } + }, + "GamVodConfig": { + "fields": { + "networkCode": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } } } } diff --git a/packages/google-cloud-video-stitcher/samples/README.md b/packages/google-cloud-video-stitcher/samples/README.md index 4fcfc45c983..123308cd6f6 100644 --- a/packages/google-cloud-video-stitcher/samples/README.md +++ b/packages/google-cloud-video-stitcher/samples/README.md @@ -16,16 +16,19 @@ * [Video_stitcher_service.create_live_config](#video_stitcher_service.create_live_config) * [Video_stitcher_service.create_live_session](#video_stitcher_service.create_live_session) * [Video_stitcher_service.create_slate](#video_stitcher_service.create_slate) + * [Video_stitcher_service.create_vod_config](#video_stitcher_service.create_vod_config) * [Video_stitcher_service.create_vod_session](#video_stitcher_service.create_vod_session) * [Video_stitcher_service.delete_cdn_key](#video_stitcher_service.delete_cdn_key) * [Video_stitcher_service.delete_live_config](#video_stitcher_service.delete_live_config) * [Video_stitcher_service.delete_slate](#video_stitcher_service.delete_slate) + * [Video_stitcher_service.delete_vod_config](#video_stitcher_service.delete_vod_config) * [Video_stitcher_service.get_cdn_key](#video_stitcher_service.get_cdn_key) * [Video_stitcher_service.get_live_ad_tag_detail](#video_stitcher_service.get_live_ad_tag_detail) * [Video_stitcher_service.get_live_config](#video_stitcher_service.get_live_config) * [Video_stitcher_service.get_live_session](#video_stitcher_service.get_live_session) * [Video_stitcher_service.get_slate](#video_stitcher_service.get_slate) * [Video_stitcher_service.get_vod_ad_tag_detail](#video_stitcher_service.get_vod_ad_tag_detail) + * [Video_stitcher_service.get_vod_config](#video_stitcher_service.get_vod_config) * [Video_stitcher_service.get_vod_session](#video_stitcher_service.get_vod_session) * [Video_stitcher_service.get_vod_stitch_detail](#video_stitcher_service.get_vod_stitch_detail) * [Video_stitcher_service.list_cdn_keys](#video_stitcher_service.list_cdn_keys) @@ -33,9 +36,12 @@ * [Video_stitcher_service.list_live_configs](#video_stitcher_service.list_live_configs) * [Video_stitcher_service.list_slates](#video_stitcher_service.list_slates) * [Video_stitcher_service.list_vod_ad_tag_details](#video_stitcher_service.list_vod_ad_tag_details) + * [Video_stitcher_service.list_vod_configs](#video_stitcher_service.list_vod_configs) * [Video_stitcher_service.list_vod_stitch_details](#video_stitcher_service.list_vod_stitch_details) * [Video_stitcher_service.update_cdn_key](#video_stitcher_service.update_cdn_key) + * [Video_stitcher_service.update_live_config](#video_stitcher_service.update_live_config) * [Video_stitcher_service.update_slate](#video_stitcher_service.update_slate) + * [Video_stitcher_service.update_vod_config](#video_stitcher_service.update_vod_config) * [Quickstart](#quickstart) ## Before you begin @@ -121,6 +127,23 @@ __Usage:__ +### Video_stitcher_service.create_vod_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_vod_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_vod_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_vod_config.js` + + +----- + + + + ### Video_stitcher_service.create_vod_session View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_vod_session.js). @@ -189,6 +212,23 @@ __Usage:__ +### Video_stitcher_service.delete_vod_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_vod_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_vod_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_vod_config.js` + + +----- + + + + ### Video_stitcher_service.get_cdn_key View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_cdn_key.js). @@ -291,6 +331,23 @@ __Usage:__ +### Video_stitcher_service.get_vod_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_config.js` + + +----- + + + + ### Video_stitcher_service.get_vod_session View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_session.js). @@ -410,6 +467,23 @@ __Usage:__ +### Video_stitcher_service.list_vod_configs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_configs.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_configs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_configs.js` + + +----- + + + + ### Video_stitcher_service.list_vod_stitch_details View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_stitch_details.js). @@ -444,6 +518,23 @@ __Usage:__ +### Video_stitcher_service.update_live_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_live_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_live_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_live_config.js` + + +----- + + + + ### Video_stitcher_service.update_slate View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_slate.js). @@ -461,6 +552,23 @@ __Usage:__ +### Video_stitcher_service.update_vod_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_vod_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_vod_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_vod_config.js` + + +----- + + + + ### Quickstart View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/quickstart.js). diff --git a/packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata.google.cloud.video.stitcher.v1.json b/packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata.google.cloud.video.stitcher.v1.json index 17359dcdba5..0bba9570879 100644 --- a/packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata.google.cloud.video.stitcher.v1.json +++ b/packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata.google.cloud.video.stitcher.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-stitcher", - "version": "2.2.0", + "version": "2.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata_google.cloud.video.stitcher.v1.json b/packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata_google.cloud.video.stitcher.v1.json index 17359dcdba5..43c83b82507 100644 --- a/packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata_google.cloud.video.stitcher.v1.json +++ b/packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata_google.cloud.video.stitcher.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-stitcher", - "version": "2.2.0", + "version": "2.3.0", "language": "TYPESCRIPT", "apis": [ { @@ -1090,6 +1090,282 @@ } } } + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_async", + "title": "VideoStitcherService updateLiveConfig Sample", + "origin": "API_DEFINITION", + "description": " Updates the specified LiveConfig. Only update fields specified in the call method body.", + "canonical": true, + "file": "video_stitcher_service.update_live_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateLiveConfig", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateLiveConfig", + "async": true, + "parameters": [ + { + "name": "live_config", + "type": ".google.cloud.video.stitcher.v1.LiveConfig" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VideoStitcherServiceClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" + }, + "method": { + "shortName": "UpdateLiveConfig", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateLiveConfig", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + } + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_async", + "title": "VideoStitcherService createVodConfig Sample", + "origin": "API_DEFINITION", + "description": " Registers the VOD config with the provided unique ID in the specified region.", + "canonical": true, + "file": "video_stitcher_service.create_vod_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 79, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateVodConfig", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateVodConfig", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "vod_config_id", + "type": "TYPE_STRING" + }, + { + "name": "vod_config", + "type": ".google.cloud.video.stitcher.v1.VodConfig" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VideoStitcherServiceClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" + }, + "method": { + "shortName": "CreateVodConfig", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateVodConfig", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + } + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_async", + "title": "VideoStitcherService listVodConfigs Sample", + "origin": "API_DEFINITION", + "description": " Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.", + "canonical": true, + "file": "video_stitcher_service.list_vod_configs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 76, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListVodConfigs", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListVodConfigs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.video.stitcher.v1.ListVodConfigsResponse", + "client": { + "shortName": "VideoStitcherServiceClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" + }, + "method": { + "shortName": "ListVodConfigs", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListVodConfigs", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + } + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetVodConfig_async", + "title": "VideoStitcherService getVodConfig Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified VOD config managed by the Video Stitcher API service.", + "canonical": true, + "file": "video_stitcher_service.get_vod_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetVodConfig", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.video.stitcher.v1.VodConfig", + "client": { + "shortName": "VideoStitcherServiceClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" + }, + "method": { + "shortName": "GetVodConfig", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodConfig", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + } + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_async", + "title": "VideoStitcherService deleteVodConfig Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified VOD config.", + "canonical": true, + "file": "video_stitcher_service.delete_vod_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteVodConfig", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteVodConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VideoStitcherServiceClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" + }, + "method": { + "shortName": "DeleteVodConfig", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteVodConfig", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + } + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_async", + "title": "VideoStitcherService updateVodConfig Sample", + "origin": "API_DEFINITION", + "description": " Updates the specified VOD config. Only update fields specified in the call method body.", + "canonical": true, + "file": "video_stitcher_service.update_vod_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateVodConfig", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateVodConfig", + "async": true, + "parameters": [ + { + "name": "vod_config", + "type": ".google.cloud.video.stitcher.v1.VodConfig" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VideoStitcherServiceClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" + }, + "method": { + "shortName": "UpdateVodConfig", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateVodConfig", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + } } ] } \ No newline at end of file diff --git a/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_vod_config.js b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_vod_config.js new file mode 100644 index 00000000000..ad68914ea59 --- /dev/null +++ b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_vod_config.js @@ -0,0 +1,87 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, vodConfigId, vodConfig) { + // [START videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The project in which the VOD config should be created, in + * the form of `projects/{project_number}/locations/{location}`. + */ + // const parent = 'abc123' + /** + * Required. The unique identifier ID to use for the VOD config. + */ + // const vodConfigId = 'abc123' + /** + * Required. The VOD config resource to create. + */ + // const vodConfig = {} + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes since the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported `(00000000-0000-0000-0000-000000000000)`. + */ + // const requestId = 'abc123' + + // Imports the Stitcher library + const {VideoStitcherServiceClient} = require('@google-cloud/video-stitcher').v1; + + // Instantiates a client + const stitcherClient = new VideoStitcherServiceClient(); + + async function callCreateVodConfig() { + // Construct request + const request = { + parent, + vodConfigId, + vodConfig, + }; + + // Run request + const [operation] = await stitcherClient.createVodConfig(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateVodConfig(); + // [END videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_vod_config.js b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_vod_config.js new file mode 100644 index 00000000000..58274dae689 --- /dev/null +++ b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.delete_vod_config.js @@ -0,0 +1,63 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the VOD config to be deleted, in the form of + * `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + */ + // const name = 'abc123' + + // Imports the Stitcher library + const {VideoStitcherServiceClient} = require('@google-cloud/video-stitcher').v1; + + // Instantiates a client + const stitcherClient = new VideoStitcherServiceClient(); + + async function callDeleteVodConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await stitcherClient.deleteVodConfig(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteVodConfig(); + // [END videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_config.js b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_config.js new file mode 100644 index 00000000000..9ae797eeba2 --- /dev/null +++ b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.get_vod_config.js @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START videostitcher_v1_generated_VideoStitcherService_GetVodConfig_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the VOD config to be retrieved, in the form + * of `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + */ + // const name = 'abc123' + + // Imports the Stitcher library + const {VideoStitcherServiceClient} = require('@google-cloud/video-stitcher').v1; + + // Instantiates a client + const stitcherClient = new VideoStitcherServiceClient(); + + async function callGetVodConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await stitcherClient.getVodConfig(request); + console.log(response); + } + + callGetVodConfig(); + // [END videostitcher_v1_generated_VideoStitcherService_GetVodConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_configs.js b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_configs.js new file mode 100644 index 00000000000..f62a14031d3 --- /dev/null +++ b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.list_vod_configs.js @@ -0,0 +1,84 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The project that contains the list of VOD configs, in the + * form of `projects/{project_number}/locations/{location}`. + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of items to return. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + /** + * Optional. The filter to apply to list results (see + * Filtering (https://google.aip.dev/160)). + */ + // const filter = 'abc123' + /** + * Optional. Specifies the ordering of results following + * Cloud API + * syntax (https://cloud.google.com/apis/design/design_patterns#sorting_order). + */ + // const orderBy = 'abc123' + + // Imports the Stitcher library + const {VideoStitcherServiceClient} = require('@google-cloud/video-stitcher').v1; + + // Instantiates a client + const stitcherClient = new VideoStitcherServiceClient(); + + async function callListVodConfigs() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = stitcherClient.listVodConfigsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListVodConfigs(); + // [END videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_live_config.js b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_live_config.js new file mode 100644 index 00000000000..518aa258646 --- /dev/null +++ b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_live_config.js @@ -0,0 +1,70 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(liveConfig, updateMask) { + // [START videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The LiveConfig resource which replaces the resource on the + * server. + */ + // const liveConfig = {} + /** + * Required. The update mask applies to the resource. + * For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + */ + // const updateMask = {} + + // Imports the Stitcher library + const {VideoStitcherServiceClient} = require('@google-cloud/video-stitcher').v1; + + // Instantiates a client + const stitcherClient = new VideoStitcherServiceClient(); + + async function callUpdateLiveConfig() { + // Construct request + const request = { + liveConfig, + updateMask, + }; + + // Run request + const [operation] = await stitcherClient.updateLiveConfig(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateLiveConfig(); + // [END videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_vod_config.js b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_vod_config.js new file mode 100644 index 00000000000..d4f7add1aac --- /dev/null +++ b/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.update_vod_config.js @@ -0,0 +1,70 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(vodConfig, updateMask) { + // [START videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The VOD config resource which replaces the resource on the + * server. + */ + // const vodConfig = {} + /** + * Required. The update mask applies to the resource. + * For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + */ + // const updateMask = {} + + // Imports the Stitcher library + const {VideoStitcherServiceClient} = require('@google-cloud/video-stitcher').v1; + + // Instantiates a client + const stitcherClient = new VideoStitcherServiceClient(); + + async function callUpdateVodConfig() { + // Construct request + const request = { + vodConfig, + updateMask, + }; + + // Run request + const [operation] = await stitcherClient.updateVodConfig(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateVodConfig(); + // [END videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-video-stitcher/src/v1/gapic_metadata.json b/packages/google-cloud-video-stitcher/src/v1/gapic_metadata.json index 4326d81a918..ca627f306b2 100644 --- a/packages/google-cloud-video-stitcher/src/v1/gapic_metadata.json +++ b/packages/google-cloud-video-stitcher/src/v1/gapic_metadata.json @@ -60,6 +60,11 @@ "getLiveConfig" ] }, + "GetVodConfig": { + "methods": [ + "getVodConfig" + ] + }, "CreateCdnKey": { "methods": [ "createCdnKey" @@ -100,6 +105,26 @@ "deleteLiveConfig" ] }, + "UpdateLiveConfig": { + "methods": [ + "updateLiveConfig" + ] + }, + "CreateVodConfig": { + "methods": [ + "createVodConfig" + ] + }, + "DeleteVodConfig": { + "methods": [ + "deleteVodConfig" + ] + }, + "UpdateVodConfig": { + "methods": [ + "updateVodConfig" + ] + }, "ListCdnKeys": { "methods": [ "listCdnKeys", @@ -141,6 +166,13 @@ "listLiveConfigsStream", "listLiveConfigsAsync" ] + }, + "ListVodConfigs": { + "methods": [ + "listVodConfigs", + "listVodConfigsStream", + "listVodConfigsAsync" + ] } } }, @@ -197,6 +229,11 @@ "getLiveConfig" ] }, + "GetVodConfig": { + "methods": [ + "getVodConfig" + ] + }, "CreateCdnKey": { "methods": [ "createCdnKey" @@ -237,6 +274,26 @@ "deleteLiveConfig" ] }, + "UpdateLiveConfig": { + "methods": [ + "updateLiveConfig" + ] + }, + "CreateVodConfig": { + "methods": [ + "createVodConfig" + ] + }, + "DeleteVodConfig": { + "methods": [ + "deleteVodConfig" + ] + }, + "UpdateVodConfig": { + "methods": [ + "updateVodConfig" + ] + }, "ListCdnKeys": { "methods": [ "listCdnKeys", @@ -278,6 +335,13 @@ "listLiveConfigsStream", "listLiveConfigsAsync" ] + }, + "ListVodConfigs": { + "methods": [ + "listVodConfigs", + "listVodConfigsStream", + "listVodConfigsAsync" + ] } } } diff --git a/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_client.ts b/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_client.ts index 14ef611b3f7..0f88a24ed67 100644 --- a/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_client.ts +++ b/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_client.ts @@ -230,6 +230,9 @@ export class VideoStitcherServiceClient { vodAdTagDetailPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/vodSessions/{vod_session}/vodAdTagDetails/{vod_ad_tag_detail}' ), + vodConfigPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/vodConfigs/{vod_config}' + ), vodSessionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/vodSessions/{vod_session}' ), @@ -272,6 +275,11 @@ export class VideoStitcherServiceClient { 'nextPageToken', 'liveConfigs' ), + listVodConfigs: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'vodConfigs' + ), }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); @@ -355,6 +363,30 @@ export class VideoStitcherServiceClient { const deleteLiveConfigMetadata = protoFilesRoot.lookup( '.google.cloud.video.stitcher.v1.OperationMetadata' ) as gax.protobuf.Type; + const updateLiveConfigResponse = protoFilesRoot.lookup( + '.google.cloud.video.stitcher.v1.LiveConfig' + ) as gax.protobuf.Type; + const updateLiveConfigMetadata = protoFilesRoot.lookup( + '.google.cloud.video.stitcher.v1.OperationMetadata' + ) as gax.protobuf.Type; + const createVodConfigResponse = protoFilesRoot.lookup( + '.google.cloud.video.stitcher.v1.VodConfig' + ) as gax.protobuf.Type; + const createVodConfigMetadata = protoFilesRoot.lookup( + '.google.cloud.video.stitcher.v1.OperationMetadata' + ) as gax.protobuf.Type; + const deleteVodConfigResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteVodConfigMetadata = protoFilesRoot.lookup( + '.google.cloud.video.stitcher.v1.OperationMetadata' + ) as gax.protobuf.Type; + const updateVodConfigResponse = protoFilesRoot.lookup( + '.google.cloud.video.stitcher.v1.VodConfig' + ) as gax.protobuf.Type; + const updateVodConfigMetadata = protoFilesRoot.lookup( + '.google.cloud.video.stitcher.v1.OperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { createCdnKey: new this._gaxModule.LongrunningDescriptor( @@ -397,6 +429,26 @@ export class VideoStitcherServiceClient { deleteLiveConfigResponse.decode.bind(deleteLiveConfigResponse), deleteLiveConfigMetadata.decode.bind(deleteLiveConfigMetadata) ), + updateLiveConfig: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateLiveConfigResponse.decode.bind(updateLiveConfigResponse), + updateLiveConfigMetadata.decode.bind(updateLiveConfigMetadata) + ), + createVodConfig: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createVodConfigResponse.decode.bind(createVodConfigResponse), + createVodConfigMetadata.decode.bind(createVodConfigMetadata) + ), + deleteVodConfig: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteVodConfigResponse.decode.bind(deleteVodConfigResponse), + deleteVodConfigMetadata.decode.bind(deleteVodConfigMetadata) + ), + updateVodConfig: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateVodConfigResponse.decode.bind(updateVodConfigResponse), + updateVodConfigMetadata.decode.bind(updateVodConfigMetadata) + ), }; // Put together the default options sent with requests. @@ -474,6 +526,12 @@ export class VideoStitcherServiceClient { 'listLiveConfigs', 'getLiveConfig', 'deleteLiveConfig', + 'updateLiveConfig', + 'createVodConfig', + 'listVodConfigs', + 'getVodConfig', + 'deleteVodConfig', + 'updateVodConfig', ]; for (const methodName of videoStitcherServiceStubMethods) { const callPromise = this.videoStitcherServiceStub.then( @@ -1535,6 +1593,98 @@ export class VideoStitcherServiceClient { this.initialize(); return this.innerApiCalls.getLiveConfig(request, options, callback); } + /** + * Returns the specified VOD config managed by the Video + * Stitcher API service. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the VOD config to be retrieved, in the form + * of `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.video.stitcher.v1.VodConfig|VodConfig}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1/video_stitcher_service.get_vod_config.js + * region_tag:videostitcher_v1_generated_VideoStitcherService_GetVodConfig_async + */ + getVodConfig( + request?: protos.google.cloud.video.stitcher.v1.IGetVodConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IGetVodConfigRequest | undefined, + {} | undefined, + ] + >; + getVodConfig( + request: protos.google.cloud.video.stitcher.v1.IGetVodConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.video.stitcher.v1.IVodConfig, + | protos.google.cloud.video.stitcher.v1.IGetVodConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getVodConfig( + request: protos.google.cloud.video.stitcher.v1.IGetVodConfigRequest, + callback: Callback< + protos.google.cloud.video.stitcher.v1.IVodConfig, + | protos.google.cloud.video.stitcher.v1.IGetVodConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getVodConfig( + request?: protos.google.cloud.video.stitcher.v1.IGetVodConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.video.stitcher.v1.IVodConfig, + | protos.google.cloud.video.stitcher.v1.IGetVodConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.video.stitcher.v1.IVodConfig, + | protos.google.cloud.video.stitcher.v1.IGetVodConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IGetVodConfigRequest | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getVodConfig(request, options, callback); + } /** * Creates a new CDN key. @@ -2687,88 +2837,93 @@ export class VideoStitcherServiceClient { >; } /** - * Lists all CDN keys in the specified project and location. + * Updates the specified LiveConfig. Only update fields specified + * in the call method body. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The project that contains the list of CDN keys, in the form of - * `projects/{project_number}/locations/{location}`. - * @param {number} request.pageSize - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @param {string} request.pageToken - * A token identifying a page of results the server should return. - * @param {string} request.filter - * Filtering results - * @param {string} request.orderBy - * Hint for how to order the results + * @param {google.cloud.video.stitcher.v1.LiveConfig} request.liveConfig + * Required. The LiveConfig resource which replaces the resource on the + * server. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The update mask applies to the resource. + * For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.video.stitcher.v1.CdnKey|CdnKey}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listCdnKeysAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. + * @example include:samples/generated/v1/video_stitcher_service.update_live_config.js + * region_tag:videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_async */ - listCdnKeys( - request?: protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, + updateLiveConfig( + request?: protos.google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.video.stitcher.v1.ICdnKey[], - protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest | null, - protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse, + LROperation< + protos.google.cloud.video.stitcher.v1.ILiveConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, ] >; - listCdnKeys( - request: protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, + updateLiveConfig( + request: protos.google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest, options: CallOptions, - callback: PaginationCallback< - protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, - | protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse - | null - | undefined, - protos.google.cloud.video.stitcher.v1.ICdnKey + callback: Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.ILiveConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined > ): void; - listCdnKeys( - request: protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, - callback: PaginationCallback< - protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, - | protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse - | null - | undefined, - protos.google.cloud.video.stitcher.v1.ICdnKey + updateLiveConfig( + request: protos.google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest, + callback: Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.ILiveConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined > ): void; - listCdnKeys( - request?: protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, + updateLiveConfig( + request?: protos.google.cloud.video.stitcher.v1.IUpdateLiveConfigRequest, optionsOrCallback?: | CallOptions - | PaginationCallback< - protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, - | protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse - | null - | undefined, - protos.google.cloud.video.stitcher.v1.ICdnKey + | Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.ILiveConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined >, - callback?: PaginationCallback< - protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, - | protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse - | null - | undefined, - protos.google.cloud.video.stitcher.v1.ICdnKey + callback?: Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.ILiveConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined > ): Promise< [ - protos.google.cloud.video.stitcher.v1.ICdnKey[], - protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest | null, - protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse, + LROperation< + protos.google.cloud.video.stitcher.v1.ILiveConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, ] > | void { request = request || {}; @@ -2784,40 +2939,612 @@ export class VideoStitcherServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + 'live_config.name': request.liveConfig!.name ?? '', }); this.initialize(); - return this.innerApiCalls.listCdnKeys(request, options, callback); + return this.innerApiCalls.updateLiveConfig(request, options, callback); } - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * Check the status of the long running operation returned by `updateLiveConfig()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/video_stitcher_service.update_live_config.js + * region_tag:videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_async + */ + async checkUpdateLiveConfigProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.video.stitcher.v1.LiveConfig, + protos.google.cloud.video.stitcher.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateLiveConfig, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.video.stitcher.v1.LiveConfig, + protos.google.cloud.video.stitcher.v1.OperationMetadata + >; + } + /** + * Registers the VOD config with the provided unique ID in + * the specified region. + * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The project that contains the list of CDN keys, in the form of - * `projects/{project_number}/locations/{location}`. - * @param {number} request.pageSize - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @param {string} request.pageToken - * A token identifying a page of results the server should return. - * @param {string} request.filter - * Filtering results - * @param {string} request.orderBy - * Hint for how to order the results - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.video.stitcher.v1.CdnKey|CdnKey} on 'data' event. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed. Note that it can affect your quota. - * We recommend using `listCdnKeysAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } - * for more details and examples. - */ - listCdnKeysStream( + * Required. The project in which the VOD config should be created, in + * the form of `projects/{project_number}/locations/{location}`. + * @param {string} request.vodConfigId + * Required. The unique identifier ID to use for the VOD config. + * @param {google.cloud.video.stitcher.v1.VodConfig} request.vodConfig + * Required. The VOD config resource to create. + * @param {string} [request.requestId] + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes since the first request. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported `(00000000-0000-0000-0000-000000000000)`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/video_stitcher_service.create_vod_config.js + * region_tag:videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_async + */ + createVodConfig( + request?: protos.google.cloud.video.stitcher.v1.ICreateVodConfigRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createVodConfig( + request: protos.google.cloud.video.stitcher.v1.ICreateVodConfigRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createVodConfig( + request: protos.google.cloud.video.stitcher.v1.ICreateVodConfigRequest, + callback: Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createVodConfig( + request?: protos.google.cloud.video.stitcher.v1.ICreateVodConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createVodConfig(request, options, callback); + } + /** + * Check the status of the long running operation returned by `createVodConfig()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/video_stitcher_service.create_vod_config.js + * region_tag:videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_async + */ + async checkCreateVodConfigProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.video.stitcher.v1.VodConfig, + protos.google.cloud.video.stitcher.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.createVodConfig, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.video.stitcher.v1.VodConfig, + protos.google.cloud.video.stitcher.v1.OperationMetadata + >; + } + /** + * Deletes the specified VOD config. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the VOD config to be deleted, in the form of + * `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/video_stitcher_service.delete_vod_config.js + * region_tag:videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_async + */ + deleteVodConfig( + request?: protos.google.cloud.video.stitcher.v1.IDeleteVodConfigRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteVodConfig( + request: protos.google.cloud.video.stitcher.v1.IDeleteVodConfigRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteVodConfig( + request: protos.google.cloud.video.stitcher.v1.IDeleteVodConfigRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteVodConfig( + request?: protos.google.cloud.video.stitcher.v1.IDeleteVodConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteVodConfig(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteVodConfig()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/video_stitcher_service.delete_vod_config.js + * region_tag:videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_async + */ + async checkDeleteVodConfigProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.video.stitcher.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteVodConfig, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.video.stitcher.v1.OperationMetadata + >; + } + /** + * Updates the specified VOD config. Only update fields specified + * in the call method body. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.video.stitcher.v1.VodConfig} request.vodConfig + * Required. The VOD config resource which replaces the resource on the + * server. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The update mask applies to the resource. + * For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/video_stitcher_service.update_vod_config.js + * region_tag:videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_async + */ + updateVodConfig( + request?: protos.google.cloud.video.stitcher.v1.IUpdateVodConfigRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateVodConfig( + request: protos.google.cloud.video.stitcher.v1.IUpdateVodConfigRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateVodConfig( + request: protos.google.cloud.video.stitcher.v1.IUpdateVodConfigRequest, + callback: Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateVodConfig( + request?: protos.google.cloud.video.stitcher.v1.IUpdateVodConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'vod_config.name': request.vodConfig!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateVodConfig(request, options, callback); + } + /** + * Check the status of the long running operation returned by `updateVodConfig()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/video_stitcher_service.update_vod_config.js + * region_tag:videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_async + */ + async checkUpdateVodConfigProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.video.stitcher.v1.VodConfig, + protos.google.cloud.video.stitcher.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateVodConfig, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.video.stitcher.v1.VodConfig, + protos.google.cloud.video.stitcher.v1.OperationMetadata + >; + } + /** + * Lists all CDN keys in the specified project and location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project that contains the list of CDN keys, in the form of + * `projects/{project_number}/locations/{location}`. + * @param {number} request.pageSize + * Requested page size. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * @param {string} request.pageToken + * A token identifying a page of results the server should return. + * @param {string} request.filter + * Filtering results + * @param {string} request.orderBy + * Hint for how to order the results + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.video.stitcher.v1.CdnKey|CdnKey}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listCdnKeysAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listCdnKeys( + request?: protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.video.stitcher.v1.ICdnKey[], + protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest | null, + protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse, + ] + >; + listCdnKeys( + request: protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, + | protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse + | null + | undefined, + protos.google.cloud.video.stitcher.v1.ICdnKey + > + ): void; + listCdnKeys( + request: protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, + callback: PaginationCallback< + protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, + | protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse + | null + | undefined, + protos.google.cloud.video.stitcher.v1.ICdnKey + > + ): void; + listCdnKeys( + request?: protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, + | protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse + | null + | undefined, + protos.google.cloud.video.stitcher.v1.ICdnKey + >, + callback?: PaginationCallback< + protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, + | protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse + | null + | undefined, + protos.google.cloud.video.stitcher.v1.ICdnKey + > + ): Promise< + [ + protos.google.cloud.video.stitcher.v1.ICdnKey[], + protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest | null, + protos.google.cloud.video.stitcher.v1.IListCdnKeysResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listCdnKeys(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project that contains the list of CDN keys, in the form of + * `projects/{project_number}/locations/{location}`. + * @param {number} request.pageSize + * Requested page size. Server may return fewer items than requested. + * If unspecified, server will pick an appropriate default. + * @param {string} request.pageToken + * A token identifying a page of results the server should return. + * @param {string} request.filter + * Filtering results + * @param {string} request.orderBy + * Hint for how to order the results + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.video.stitcher.v1.CdnKey|CdnKey} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listCdnKeysAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listCdnKeysStream( request?: protos.google.cloud.video.stitcher.v1.IListCdnKeysRequest, options?: CallOptions ): Transform { @@ -3873,6 +4600,220 @@ export class VideoStitcherServiceClient { callSettings ) as AsyncIterable; } + /** + * Lists all VOD configs managed by the Video Stitcher API that + * belong to the specified project and region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project that contains the list of VOD configs, in the + * form of `projects/{project_number}/locations/{location}`. + * @param {number} [request.pageSize] + * Optional. The maximum number of items to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {string} [request.filter] + * Optional. The filter to apply to list results (see + * [Filtering](https://google.aip.dev/160)). + * @param {string} [request.orderBy] + * Optional. Specifies the ordering of results following + * [Cloud API + * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.video.stitcher.v1.VodConfig|VodConfig}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listVodConfigsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listVodConfigs( + request?: protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.video.stitcher.v1.IVodConfig[], + protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest | null, + protos.google.cloud.video.stitcher.v1.IListVodConfigsResponse, + ] + >; + listVodConfigs( + request: protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest, + | protos.google.cloud.video.stitcher.v1.IListVodConfigsResponse + | null + | undefined, + protos.google.cloud.video.stitcher.v1.IVodConfig + > + ): void; + listVodConfigs( + request: protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest, + callback: PaginationCallback< + protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest, + | protos.google.cloud.video.stitcher.v1.IListVodConfigsResponse + | null + | undefined, + protos.google.cloud.video.stitcher.v1.IVodConfig + > + ): void; + listVodConfigs( + request?: protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest, + | protos.google.cloud.video.stitcher.v1.IListVodConfigsResponse + | null + | undefined, + protos.google.cloud.video.stitcher.v1.IVodConfig + >, + callback?: PaginationCallback< + protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest, + | protos.google.cloud.video.stitcher.v1.IListVodConfigsResponse + | null + | undefined, + protos.google.cloud.video.stitcher.v1.IVodConfig + > + ): Promise< + [ + protos.google.cloud.video.stitcher.v1.IVodConfig[], + protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest | null, + protos.google.cloud.video.stitcher.v1.IListVodConfigsResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listVodConfigs(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project that contains the list of VOD configs, in the + * form of `projects/{project_number}/locations/{location}`. + * @param {number} [request.pageSize] + * Optional. The maximum number of items to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {string} [request.filter] + * Optional. The filter to apply to list results (see + * [Filtering](https://google.aip.dev/160)). + * @param {string} [request.orderBy] + * Optional. Specifies the ordering of results following + * [Cloud API + * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.video.stitcher.v1.VodConfig|VodConfig} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listVodConfigsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listVodConfigsStream( + request?: protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listVodConfigs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listVodConfigs.createStream( + this.innerApiCalls.listVodConfigs as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listVodConfigs`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project that contains the list of VOD configs, in the + * form of `projects/{project_number}/locations/{location}`. + * @param {number} [request.pageSize] + * Optional. The maximum number of items to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {string} [request.filter] + * Optional. The filter to apply to list results (see + * [Filtering](https://google.aip.dev/160)). + * @param {string} [request.orderBy] + * Optional. Specifies the ordering of results following + * [Cloud API + * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.video.stitcher.v1.VodConfig|VodConfig}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/video_stitcher_service.list_vod_configs.js + * region_tag:videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_async + */ + listVodConfigsAsync( + request?: protos.google.cloud.video.stitcher.v1.IListVodConfigsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listVodConfigs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listVodConfigs.asyncIterate( + this.innerApiCalls['listVodConfigs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } /** * Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API @@ -4463,6 +5404,58 @@ export class VideoStitcherServiceClient { ).vod_ad_tag_detail; } + /** + * Return a fully-qualified vodConfig resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} vod_config + * @returns {string} Resource name string. + */ + vodConfigPath(project: string, location: string, vodConfig: string) { + return this.pathTemplates.vodConfigPathTemplate.render({ + project: project, + location: location, + vod_config: vodConfig, + }); + } + + /** + * Parse the project from VodConfig resource. + * + * @param {string} vodConfigName + * A fully-qualified path representing VodConfig resource. + * @returns {string} A string representing the project. + */ + matchProjectFromVodConfigName(vodConfigName: string) { + return this.pathTemplates.vodConfigPathTemplate.match(vodConfigName) + .project; + } + + /** + * Parse the location from VodConfig resource. + * + * @param {string} vodConfigName + * A fully-qualified path representing VodConfig resource. + * @returns {string} A string representing the location. + */ + matchLocationFromVodConfigName(vodConfigName: string) { + return this.pathTemplates.vodConfigPathTemplate.match(vodConfigName) + .location; + } + + /** + * Parse the vod_config from VodConfig resource. + * + * @param {string} vodConfigName + * A fully-qualified path representing VodConfig resource. + * @returns {string} A string representing the vod_config. + */ + matchVodConfigFromVodConfigName(vodConfigName: string) { + return this.pathTemplates.vodConfigPathTemplate.match(vodConfigName) + .vod_config; + } + /** * Return a fully-qualified vodSession resource name string. * diff --git a/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_client_config.json b/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_client_config.json index 90080ba7e4f..9edfb742eb0 100644 --- a/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_client_config.json +++ b/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_client_config.json @@ -6,6 +6,9 @@ "idempotent": [ "DEADLINE_EXCEEDED", "UNAVAILABLE" + ], + "unavailable": [ + "UNAVAILABLE" ] }, "retry_params": { @@ -17,6 +20,15 @@ "rpc_timeout_multiplier": 1, "max_rpc_timeout_millis": 60000, "total_timeout_millis": 600000 + }, + "ce5b960a6ed052e690863808e4f0deff3dc7d49f": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 } }, "methods": { @@ -139,6 +151,36 @@ "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "UpdateLiveConfig": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "CreateVodConfig": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "ListVodConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "GetVodConfig": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "DeleteVodConfig": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "UpdateVodConfig": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" } } } diff --git a/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_proto_list.json b/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_proto_list.json index 0c5c1421b3b..06ec5d321cf 100644 --- a/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_proto_list.json +++ b/packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_proto_list.json @@ -3,9 +3,11 @@ "../../protos/google/cloud/video/stitcher/v1/cdn_keys.proto", "../../protos/google/cloud/video/stitcher/v1/companions.proto", "../../protos/google/cloud/video/stitcher/v1/events.proto", + "../../protos/google/cloud/video/stitcher/v1/fetch_options.proto", "../../protos/google/cloud/video/stitcher/v1/live_configs.proto", "../../protos/google/cloud/video/stitcher/v1/sessions.proto", "../../protos/google/cloud/video/stitcher/v1/slates.proto", "../../protos/google/cloud/video/stitcher/v1/stitch_details.proto", - "../../protos/google/cloud/video/stitcher/v1/video_stitcher_service.proto" + "../../protos/google/cloud/video/stitcher/v1/video_stitcher_service.proto", + "../../protos/google/cloud/video/stitcher/v1/vod_configs.proto" ] diff --git a/packages/google-cloud-video-stitcher/test/gapic_video_stitcher_service_v1.ts b/packages/google-cloud-video-stitcher/test/gapic_video_stitcher_service_v1.ts index cf85edd10f1..03f29c3693c 100644 --- a/packages/google-cloud-video-stitcher/test/gapic_video_stitcher_service_v1.ts +++ b/packages/google-cloud-video-stitcher/test/gapic_video_stitcher_service_v1.ts @@ -1690,6 +1690,140 @@ describe('v1.VideoStitcherServiceClient', () => { }); }); + describe('getVodConfig', () => { + it('invokes getVodConfig without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.GetVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.GetVodConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.VodConfig() + ); + client.innerApiCalls.getVodConfig = stubSimpleCall(expectedResponse); + const [response] = await client.getVodConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVodConfig without error using callback', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.GetVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.GetVodConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.VodConfig() + ); + client.innerApiCalls.getVodConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getVodConfig( + request, + ( + err?: Error | null, + result?: protos.google.cloud.video.stitcher.v1.IVodConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVodConfig with error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.GetVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.GetVodConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getVodConfig = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getVodConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVodConfig with closed client', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.GetVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.GetVodConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getVodConfig(request), expectedError); + }); + }); + describe('createCdnKey', () => { it('invokes createCdnKey without error', async () => { const client = @@ -3274,8 +3408,8 @@ describe('v1.VideoStitcherServiceClient', () => { }); }); - describe('listCdnKeys', () => { - it('invokes listCdnKeys without error', async () => { + describe('updateLiveConfig', () => { + it('invokes updateLiveConfig without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3283,39 +3417,34 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + new protos.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest() ); + request.liveConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', - ['parent'] + '.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest', + ['liveConfig', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() - ), - generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() - ), - generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() - ), - ]; - client.innerApiCalls.listCdnKeys = stubSimpleCall(expectedResponse); - const [response] = await client.listCdnKeys(request); + request.liveConfig.name = defaultValue1; + const expectedHeaderRequestParams = `live_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateLiveConfig = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateLiveConfig(request); + const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCdnKeys as SinonStub + client.innerApiCalls.updateLiveConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCdnKeys as SinonStub + client.innerApiCalls.updateLiveConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCdnKeys without error using callback', async () => { + it('invokes updateLiveConfig without error using callback', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3323,33 +3452,29 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + new protos.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest() ); + request.liveConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', - ['parent'] + '.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest', + ['liveConfig', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() - ), - generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() - ), - generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() - ), - ]; - client.innerApiCalls.listCdnKeys = - stubSimpleCallWithCallback(expectedResponse); + request.liveConfig.name = defaultValue1; + const expectedHeaderRequestParams = `live_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateLiveConfig = + stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCdnKeys( + client.updateLiveConfig( request, ( err?: Error | null, - result?: protos.google.cloud.video.stitcher.v1.ICdnKey[] | null + result?: LROperation< + protos.google.cloud.video.stitcher.v1.ILiveConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + > | null ) => { if (err) { reject(err); @@ -3359,19 +3484,23 @@ describe('v1.VideoStitcherServiceClient', () => { } ); }); - const response = await promise; + const operation = (await promise) as LROperation< + protos.google.cloud.video.stitcher.v1.ILiveConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >; + const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCdnKeys as SinonStub + client.innerApiCalls.updateLiveConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCdnKeys as SinonStub + client.innerApiCalls.updateLiveConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCdnKeys with error', async () => { + it('invokes updateLiveConfig with call error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3379,31 +3508,32 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + new protos.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest() ); + request.liveConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', - ['parent'] + '.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest', + ['liveConfig', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.liveConfig.name = defaultValue1; + const expectedHeaderRequestParams = `live_config.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listCdnKeys = stubSimpleCall( + client.innerApiCalls.updateLiveConfig = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.listCdnKeys(request), expectedError); + await assert.rejects(client.updateLiveConfig(request), expectedError); const actualRequest = ( - client.innerApiCalls.listCdnKeys as SinonStub + client.innerApiCalls.updateLiveConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCdnKeys as SinonStub + client.innerApiCalls.updateLiveConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCdnKeysStream without error', async () => { + it('invokes updateLiveConfig with LRO error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3411,86 +3541,1237 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + new protos.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest() ); + request.liveConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() - ), - generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() - ), - generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() - ), - ]; - client.descriptors.page.listCdnKeys.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listCdnKeysStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.CdnKey[] = []; - stream.on( - 'data', - (response: protos.google.cloud.video.stitcher.v1.CdnKey) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); - assert( - (client.descriptors.page.listCdnKeys.createStream as SinonStub) - .getCall(0) - .calledWith(client.innerApiCalls.listCdnKeys, request) + '.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest', + ['liveConfig', 'name'] ); - assert( - (client.descriptors.page.listCdnKeys.createStream as SinonStub) - .getCall(0) - .args[2].otherArgs.headers[ - 'x-goog-request-params' - ].includes(expectedHeaderRequestParams) + request.liveConfig.name = defaultValue1; + const expectedHeaderRequestParams = `live_config.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateLiveConfig = stubLongRunningCall( + undefined, + undefined, + expectedError ); + const [operation] = await client.updateLiveConfig(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateLiveConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateLiveConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCdnKeysStream with error', async () => { + it('invokes checkUpdateLiveConfigProgress without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', - ['parent'] + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkUpdateLiveConfigProgress( + expectedResponse.name ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.descriptors.page.listCdnKeys.createStream = stubPageStreamingCall( + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateLiveConfigProgress with error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateLiveConfigProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createVodConfig', () => { + it('invokes createVodConfig without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CreateVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.CreateVodConfigRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createVodConfig = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createVodConfig(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createVodConfig without error using callback', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CreateVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.CreateVodConfigRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createVodConfig = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createVodConfig( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createVodConfig with call error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CreateVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.CreateVodConfigRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createVodConfig = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.createVodConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createVodConfig with LRO error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CreateVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.CreateVodConfigRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createVodConfig = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createVodConfig(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateVodConfigProgress without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkCreateVodConfigProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateVodConfigProgress with error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkCreateVodConfigProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteVodConfig', () => { + it('invokes deleteVodConfig without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.DeleteVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.DeleteVodConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteVodConfig = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteVodConfig(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteVodConfig without error using callback', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.DeleteVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.DeleteVodConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteVodConfig = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteVodConfig( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteVodConfig with call error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.DeleteVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.DeleteVodConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteVodConfig = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteVodConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteVodConfig with LRO error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.DeleteVodConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.DeleteVodConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteVodConfig = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteVodConfig(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteVodConfigProgress without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteVodConfigProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteVodConfigProgress with error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteVodConfigProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateVodConfig', () => { + it('invokes updateVodConfig without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.UpdateVodConfigRequest() + ); + request.vodConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.UpdateVodConfigRequest', + ['vodConfig', 'name'] + ); + request.vodConfig.name = defaultValue1; + const expectedHeaderRequestParams = `vod_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateVodConfig = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateVodConfig(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateVodConfig without error using callback', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.UpdateVodConfigRequest() + ); + request.vodConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.UpdateVodConfigRequest', + ['vodConfig', 'name'] + ); + request.vodConfig.name = defaultValue1; + const expectedHeaderRequestParams = `vod_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateVodConfig = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateVodConfig( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.video.stitcher.v1.IVodConfig, + protos.google.cloud.video.stitcher.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateVodConfig with call error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.UpdateVodConfigRequest() + ); + request.vodConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.UpdateVodConfigRequest', + ['vodConfig', 'name'] + ); + request.vodConfig.name = defaultValue1; + const expectedHeaderRequestParams = `vod_config.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateVodConfig = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.updateVodConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateVodConfig with LRO error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.UpdateVodConfigRequest() + ); + request.vodConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.UpdateVodConfigRequest', + ['vodConfig', 'name'] + ); + request.vodConfig.name = defaultValue1; + const expectedHeaderRequestParams = `vod_config.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateVodConfig = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateVodConfig(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateVodConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateVodConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateVodConfigProgress without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkUpdateVodConfigProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateVodConfigProgress with error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateVodConfigProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listCdnKeys', () => { + it('invokes listCdnKeys without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + ]; + client.innerApiCalls.listCdnKeys = stubSimpleCall(expectedResponse); + const [response] = await client.listCdnKeys(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listCdnKeys as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCdnKeys as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCdnKeys without error using callback', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + ]; + client.innerApiCalls.listCdnKeys = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listCdnKeys( + request, + ( + err?: Error | null, + result?: protos.google.cloud.video.stitcher.v1.ICdnKey[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listCdnKeys as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCdnKeys as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCdnKeys with error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listCdnKeys = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listCdnKeys(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listCdnKeys as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCdnKeys as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCdnKeysStream without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + ]; + client.descriptors.page.listCdnKeys.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listCdnKeysStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.video.stitcher.v1.CdnKey[] = []; + stream.on( + 'data', + (response: protos.google.cloud.video.stitcher.v1.CdnKey) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listCdnKeys.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCdnKeys, request) + ); + assert( + (client.descriptors.page.listCdnKeys.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + + it('invokes listCdnKeysStream with error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listCdnKeys.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listCdnKeysStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.video.stitcher.v1.CdnKey[] = []; + stream.on( + 'data', + (response: protos.google.cloud.video.stitcher.v1.CdnKey) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listCdnKeys.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCdnKeys, request) + ); + assert( + (client.descriptors.page.listCdnKeys.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + + it('uses async iteration with listCdnKeys without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.CdnKey() + ), + ]; + client.descriptors.page.listCdnKeys.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.video.stitcher.v1.ICdnKey[] = []; + const iterable = client.listCdnKeysAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listCdnKeys.asyncIterate as SinonStub).getCall( + 0 + ).args[1], + request + ); + assert( + (client.descriptors.page.listCdnKeys.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + + it('uses async iteration with listCdnKeys with error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listCdnKeys.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listCdnKeysAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.video.stitcher.v1.ICdnKey[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listCdnKeys.asyncIterate as SinonStub).getCall( + 0 + ).args[1], + request + ); + assert( + (client.descriptors.page.listCdnKeys.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + }); + + describe('listVodStitchDetails', () => { + it('invokes listVodStitchDetails without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + ), + ]; + client.innerApiCalls.listVodStitchDetails = + stubSimpleCall(expectedResponse); + const [response] = await client.listVodStitchDetails(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listVodStitchDetails as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listVodStitchDetails as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listVodStitchDetails without error using callback', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + ), + ]; + client.innerApiCalls.listVodStitchDetails = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listVodStitchDetails( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.video.stitcher.v1.IVodStitchDetail[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listVodStitchDetails as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listVodStitchDetails as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listVodStitchDetails with error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listVodStitchDetails = stubSimpleCall( undefined, expectedError ); - const stream = client.listCdnKeysStream(request); + await assert.rejects(client.listVodStitchDetails(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listVodStitchDetails as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listVodStitchDetails as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listVodStitchDetailsStream without error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + ), + generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + ), + ]; + client.descriptors.page.listVodStitchDetails.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listVodStitchDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.CdnKey[] = []; + const responses: protos.google.cloud.video.stitcher.v1.VodStitchDetail[] = + []; stream.on( 'data', - (response: protos.google.cloud.video.stitcher.v1.CdnKey) => { + (response: protos.google.cloud.video.stitcher.v1.VodStitchDetail) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listVodStitchDetails.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listVodStitchDetails, request) + ); + assert( + (client.descriptors.page.listVodStitchDetails.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + + it('invokes listVodStitchDetailsStream with error', async () => { + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listVodStitchDetails.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listVodStitchDetailsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.video.stitcher.v1.VodStitchDetail[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.video.stitcher.v1.VodStitchDetail) => { responses.push(response); } ); @@ -3503,12 +4784,12 @@ describe('v1.VideoStitcherServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCdnKeys.createStream as SinonStub) + (client.descriptors.page.listVodStitchDetails.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCdnKeys, request) + .calledWith(client.innerApiCalls.listVodStitchDetails, request) ); assert( - (client.descriptors.page.listCdnKeys.createStream as SinonStub) + (client.descriptors.page.listVodStitchDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -3516,7 +4797,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listCdnKeys without error', async () => { + it('uses async iteration with listVodStitchDetails without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3524,41 +4805,42 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', + '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.CdnKey() + new protos.google.cloud.video.stitcher.v1.VodStitchDetail() ), ]; - client.descriptors.page.listCdnKeys.asyncIterate = + client.descriptors.page.listVodStitchDetails.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.video.stitcher.v1.ICdnKey[] = []; - const iterable = client.listCdnKeysAsync(request); + const responses: protos.google.cloud.video.stitcher.v1.IVodStitchDetail[] = + []; + const iterable = client.listVodStitchDetailsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listCdnKeys.asyncIterate as SinonStub).getCall( - 0 - ).args[1], + ( + client.descriptors.page.listVodStitchDetails.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCdnKeys.asyncIterate as SinonStub) + (client.descriptors.page.listVodStitchDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -3566,7 +4848,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listCdnKeys with error', async () => { + it('uses async iteration with listVodStitchDetails with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3574,34 +4856,33 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListCdnKeysRequest() + new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListCdnKeysRequest', + '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCdnKeys.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); - const iterable = client.listCdnKeysAsync(request); + client.descriptors.page.listVodStitchDetails.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listVodStitchDetailsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.video.stitcher.v1.ICdnKey[] = []; + const responses: protos.google.cloud.video.stitcher.v1.IVodStitchDetail[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.listCdnKeys.asyncIterate as SinonStub).getCall( - 0 - ).args[1], + ( + client.descriptors.page.listVodStitchDetails.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCdnKeys.asyncIterate as SinonStub) + (client.descriptors.page.listVodStitchDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -3610,8 +4891,8 @@ describe('v1.VideoStitcherServiceClient', () => { }); }); - describe('listVodStitchDetails', () => { - it('invokes listVodStitchDetails without error', async () => { + describe('listVodAdTagDetails', () => { + it('invokes listVodAdTagDetails without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3619,40 +4900,40 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), ]; - client.innerApiCalls.listVodStitchDetails = + client.innerApiCalls.listVodAdTagDetails = stubSimpleCall(expectedResponse); - const [response] = await client.listVodStitchDetails(request); + const [response] = await client.listVodAdTagDetails(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listVodStitchDetails as SinonStub + client.innerApiCalls.listVodAdTagDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listVodStitchDetails as SinonStub + client.innerApiCalls.listVodAdTagDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listVodStitchDetails without error using callback', async () => { + it('invokes listVodAdTagDetails without error using callback', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3660,34 +4941,34 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), ]; - client.innerApiCalls.listVodStitchDetails = + client.innerApiCalls.listVodAdTagDetails = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listVodStitchDetails( + client.listVodAdTagDetails( request, ( err?: Error | null, result?: - | protos.google.cloud.video.stitcher.v1.IVodStitchDetail[] + | protos.google.cloud.video.stitcher.v1.IVodAdTagDetail[] | null ) => { if (err) { @@ -3701,16 +4982,16 @@ describe('v1.VideoStitcherServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listVodStitchDetails as SinonStub + client.innerApiCalls.listVodAdTagDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listVodStitchDetails as SinonStub + client.innerApiCalls.listVodAdTagDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listVodStitchDetails with error', async () => { + it('invokes listVodAdTagDetails with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3718,31 +4999,31 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listVodStitchDetails = stubSimpleCall( + client.innerApiCalls.listVodAdTagDetails = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listVodStitchDetails(request), expectedError); + await assert.rejects(client.listVodAdTagDetails(request), expectedError); const actualRequest = ( - client.innerApiCalls.listVodStitchDetails as SinonStub + client.innerApiCalls.listVodAdTagDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listVodStitchDetails as SinonStub + client.innerApiCalls.listVodAdTagDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listVodStitchDetailsStream without error', async () => { + it('invokes listVodAdTagDetailsStream without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3750,34 +5031,34 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), ]; - client.descriptors.page.listVodStitchDetails.createStream = + client.descriptors.page.listVodAdTagDetails.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listVodStitchDetailsStream(request); + const stream = client.listVodAdTagDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.VodStitchDetail[] = + const responses: protos.google.cloud.video.stitcher.v1.VodAdTagDetail[] = []; stream.on( 'data', - (response: protos.google.cloud.video.stitcher.v1.VodStitchDetail) => { + (response: protos.google.cloud.video.stitcher.v1.VodAdTagDetail) => { responses.push(response); } ); @@ -3791,12 +5072,12 @@ describe('v1.VideoStitcherServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listVodStitchDetails.createStream as SinonStub) + (client.descriptors.page.listVodAdTagDetails.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listVodStitchDetails, request) + .calledWith(client.innerApiCalls.listVodAdTagDetails, request) ); assert( - (client.descriptors.page.listVodStitchDetails.createStream as SinonStub) + (client.descriptors.page.listVodAdTagDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -3804,7 +5085,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('invokes listVodStitchDetailsStream with error', async () => { + it('invokes listVodAdTagDetailsStream with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3812,24 +5093,24 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listVodStitchDetails.createStream = + client.descriptors.page.listVodAdTagDetails.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listVodStitchDetailsStream(request); + const stream = client.listVodAdTagDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.VodStitchDetail[] = + const responses: protos.google.cloud.video.stitcher.v1.VodAdTagDetail[] = []; stream.on( 'data', - (response: protos.google.cloud.video.stitcher.v1.VodStitchDetail) => { + (response: protos.google.cloud.video.stitcher.v1.VodAdTagDetail) => { responses.push(response); } ); @@ -3842,12 +5123,12 @@ describe('v1.VideoStitcherServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listVodStitchDetails.createStream as SinonStub) + (client.descriptors.page.listVodAdTagDetails.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listVodStitchDetails, request) + .calledWith(client.innerApiCalls.listVodAdTagDetails, request) ); assert( - (client.descriptors.page.listVodStitchDetails.createStream as SinonStub) + (client.descriptors.page.listVodAdTagDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -3855,7 +5136,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listVodStitchDetails without error', async () => { + it('uses async iteration with listVodAdTagDetails without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3863,42 +5144,42 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodStitchDetail() + new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() ), ]; - client.descriptors.page.listVodStitchDetails.asyncIterate = + client.descriptors.page.listVodAdTagDetails.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.video.stitcher.v1.IVodStitchDetail[] = + const responses: protos.google.cloud.video.stitcher.v1.IVodAdTagDetail[] = []; - const iterable = client.listVodStitchDetailsAsync(request); + const iterable = client.listVodAdTagDetailsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listVodStitchDetails.asyncIterate as SinonStub + client.descriptors.page.listVodAdTagDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listVodStitchDetails.asyncIterate as SinonStub) + (client.descriptors.page.listVodAdTagDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -3906,7 +5187,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listVodStitchDetails with error', async () => { + it('uses async iteration with listVodAdTagDetails with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3914,20 +5195,20 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest', + '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listVodStitchDetails.asyncIterate = + client.descriptors.page.listVodAdTagDetails.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listVodStitchDetailsAsync(request); + const iterable = client.listVodAdTagDetailsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.video.stitcher.v1.IVodStitchDetail[] = + const responses: protos.google.cloud.video.stitcher.v1.IVodAdTagDetail[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -3935,12 +5216,12 @@ describe('v1.VideoStitcherServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listVodStitchDetails.asyncIterate as SinonStub + client.descriptors.page.listVodAdTagDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listVodStitchDetails.asyncIterate as SinonStub) + (client.descriptors.page.listVodAdTagDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -3949,8 +5230,8 @@ describe('v1.VideoStitcherServiceClient', () => { }); }); - describe('listVodAdTagDetails', () => { - it('invokes listVodAdTagDetails without error', async () => { + describe('listLiveAdTagDetails', () => { + it('invokes listLiveAdTagDetails without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3958,40 +5239,40 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), ]; - client.innerApiCalls.listVodAdTagDetails = + client.innerApiCalls.listLiveAdTagDetails = stubSimpleCall(expectedResponse); - const [response] = await client.listVodAdTagDetails(request); + const [response] = await client.listLiveAdTagDetails(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listVodAdTagDetails as SinonStub + client.innerApiCalls.listLiveAdTagDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listVodAdTagDetails as SinonStub + client.innerApiCalls.listLiveAdTagDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listVodAdTagDetails without error using callback', async () => { + it('invokes listLiveAdTagDetails without error using callback', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3999,34 +5280,34 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), ]; - client.innerApiCalls.listVodAdTagDetails = + client.innerApiCalls.listLiveAdTagDetails = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listVodAdTagDetails( + client.listLiveAdTagDetails( request, ( err?: Error | null, result?: - | protos.google.cloud.video.stitcher.v1.IVodAdTagDetail[] + | protos.google.cloud.video.stitcher.v1.ILiveAdTagDetail[] | null ) => { if (err) { @@ -4040,16 +5321,16 @@ describe('v1.VideoStitcherServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listVodAdTagDetails as SinonStub + client.innerApiCalls.listLiveAdTagDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listVodAdTagDetails as SinonStub + client.innerApiCalls.listLiveAdTagDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listVodAdTagDetails with error', async () => { + it('invokes listLiveAdTagDetails with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4057,31 +5338,31 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listVodAdTagDetails = stubSimpleCall( + client.innerApiCalls.listLiveAdTagDetails = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listVodAdTagDetails(request), expectedError); + await assert.rejects(client.listLiveAdTagDetails(request), expectedError); const actualRequest = ( - client.innerApiCalls.listVodAdTagDetails as SinonStub + client.innerApiCalls.listLiveAdTagDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listVodAdTagDetails as SinonStub + client.innerApiCalls.listLiveAdTagDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listVodAdTagDetailsStream without error', async () => { + it('invokes listLiveAdTagDetailsStream without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4089,34 +5370,34 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), ]; - client.descriptors.page.listVodAdTagDetails.createStream = + client.descriptors.page.listLiveAdTagDetails.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listVodAdTagDetailsStream(request); + const stream = client.listLiveAdTagDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.VodAdTagDetail[] = + const responses: protos.google.cloud.video.stitcher.v1.LiveAdTagDetail[] = []; stream.on( 'data', - (response: protos.google.cloud.video.stitcher.v1.VodAdTagDetail) => { + (response: protos.google.cloud.video.stitcher.v1.LiveAdTagDetail) => { responses.push(response); } ); @@ -4130,12 +5411,12 @@ describe('v1.VideoStitcherServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listVodAdTagDetails.createStream as SinonStub) + (client.descriptors.page.listLiveAdTagDetails.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listVodAdTagDetails, request) + .calledWith(client.innerApiCalls.listLiveAdTagDetails, request) ); assert( - (client.descriptors.page.listVodAdTagDetails.createStream as SinonStub) + (client.descriptors.page.listLiveAdTagDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4143,7 +5424,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('invokes listVodAdTagDetailsStream with error', async () => { + it('invokes listLiveAdTagDetailsStream with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4151,24 +5432,24 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listVodAdTagDetails.createStream = + client.descriptors.page.listLiveAdTagDetails.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listVodAdTagDetailsStream(request); + const stream = client.listLiveAdTagDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.VodAdTagDetail[] = + const responses: protos.google.cloud.video.stitcher.v1.LiveAdTagDetail[] = []; stream.on( 'data', - (response: protos.google.cloud.video.stitcher.v1.VodAdTagDetail) => { + (response: protos.google.cloud.video.stitcher.v1.LiveAdTagDetail) => { responses.push(response); } ); @@ -4181,12 +5462,12 @@ describe('v1.VideoStitcherServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listVodAdTagDetails.createStream as SinonStub) + (client.descriptors.page.listLiveAdTagDetails.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listVodAdTagDetails, request) + .calledWith(client.innerApiCalls.listLiveAdTagDetails, request) ); assert( - (client.descriptors.page.listVodAdTagDetails.createStream as SinonStub) + (client.descriptors.page.listLiveAdTagDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4194,7 +5475,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listVodAdTagDetails without error', async () => { + it('uses async iteration with listLiveAdTagDetails without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4202,42 +5483,42 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.VodAdTagDetail() + new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() ), ]; - client.descriptors.page.listVodAdTagDetails.asyncIterate = + client.descriptors.page.listLiveAdTagDetails.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.video.stitcher.v1.IVodAdTagDetail[] = + const responses: protos.google.cloud.video.stitcher.v1.ILiveAdTagDetail[] = []; - const iterable = client.listVodAdTagDetailsAsync(request); + const iterable = client.listLiveAdTagDetailsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listVodAdTagDetails.asyncIterate as SinonStub + client.descriptors.page.listLiveAdTagDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listVodAdTagDetails.asyncIterate as SinonStub) + (client.descriptors.page.listLiveAdTagDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4245,7 +5526,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listVodAdTagDetails with error', async () => { + it('uses async iteration with listLiveAdTagDetails with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4253,20 +5534,20 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listVodAdTagDetails.asyncIterate = + client.descriptors.page.listLiveAdTagDetails.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listVodAdTagDetailsAsync(request); + const iterable = client.listLiveAdTagDetailsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.video.stitcher.v1.IVodAdTagDetail[] = + const responses: protos.google.cloud.video.stitcher.v1.ILiveAdTagDetail[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -4274,12 +5555,12 @@ describe('v1.VideoStitcherServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listVodAdTagDetails.asyncIterate as SinonStub + client.descriptors.page.listLiveAdTagDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listVodAdTagDetails.asyncIterate as SinonStub) + (client.descriptors.page.listLiveAdTagDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4288,8 +5569,8 @@ describe('v1.VideoStitcherServiceClient', () => { }); }); - describe('listLiveAdTagDetails', () => { - it('invokes listLiveAdTagDetails without error', async () => { + describe('listSlates', () => { + it('invokes listSlates without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4297,40 +5578,39 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListSlatesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), ]; - client.innerApiCalls.listLiveAdTagDetails = - stubSimpleCall(expectedResponse); - const [response] = await client.listLiveAdTagDetails(request); + client.innerApiCalls.listSlates = stubSimpleCall(expectedResponse); + const [response] = await client.listSlates(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listLiveAdTagDetails as SinonStub + client.innerApiCalls.listSlates as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listLiveAdTagDetails as SinonStub + client.innerApiCalls.listSlates as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listLiveAdTagDetails without error using callback', async () => { + it('invokes listSlates without error using callback', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4338,35 +5618,33 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListSlatesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), ]; - client.innerApiCalls.listLiveAdTagDetails = + client.innerApiCalls.listSlates = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listLiveAdTagDetails( + client.listSlates( request, ( err?: Error | null, - result?: - | protos.google.cloud.video.stitcher.v1.ILiveAdTagDetail[] - | null + result?: protos.google.cloud.video.stitcher.v1.ISlate[] | null ) => { if (err) { reject(err); @@ -4379,16 +5657,16 @@ describe('v1.VideoStitcherServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listLiveAdTagDetails as SinonStub + client.innerApiCalls.listSlates as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listLiveAdTagDetails as SinonStub + client.innerApiCalls.listSlates as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listLiveAdTagDetails with error', async () => { + it('invokes listSlates with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4396,31 +5674,31 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListSlatesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listLiveAdTagDetails = stubSimpleCall( + client.innerApiCalls.listSlates = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listLiveAdTagDetails(request), expectedError); + await assert.rejects(client.listSlates(request), expectedError); const actualRequest = ( - client.innerApiCalls.listLiveAdTagDetails as SinonStub + client.innerApiCalls.listSlates as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listLiveAdTagDetails as SinonStub + client.innerApiCalls.listSlates as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listLiveAdTagDetailsStream without error', async () => { + it('invokes listSlatesStream without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4428,34 +5706,33 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListSlatesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), ]; - client.descriptors.page.listLiveAdTagDetails.createStream = + client.descriptors.page.listSlates.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listLiveAdTagDetailsStream(request); + const stream = client.listSlatesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.LiveAdTagDetail[] = - []; + const responses: protos.google.cloud.video.stitcher.v1.Slate[] = []; stream.on( 'data', - (response: protos.google.cloud.video.stitcher.v1.LiveAdTagDetail) => { + (response: protos.google.cloud.video.stitcher.v1.Slate) => { responses.push(response); } ); @@ -4469,12 +5746,12 @@ describe('v1.VideoStitcherServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listLiveAdTagDetails.createStream as SinonStub) + (client.descriptors.page.listSlates.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listLiveAdTagDetails, request) + .calledWith(client.innerApiCalls.listSlates, request) ); assert( - (client.descriptors.page.listLiveAdTagDetails.createStream as SinonStub) + (client.descriptors.page.listSlates.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4482,7 +5759,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('invokes listLiveAdTagDetailsStream with error', async () => { + it('invokes listSlatesStream with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4490,24 +5767,25 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListSlatesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listLiveAdTagDetails.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listLiveAdTagDetailsStream(request); + client.descriptors.page.listSlates.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listSlatesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.LiveAdTagDetail[] = - []; + const responses: protos.google.cloud.video.stitcher.v1.Slate[] = []; stream.on( 'data', - (response: protos.google.cloud.video.stitcher.v1.LiveAdTagDetail) => { + (response: protos.google.cloud.video.stitcher.v1.Slate) => { responses.push(response); } ); @@ -4520,12 +5798,12 @@ describe('v1.VideoStitcherServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listLiveAdTagDetails.createStream as SinonStub) + (client.descriptors.page.listSlates.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listLiveAdTagDetails, request) + .calledWith(client.innerApiCalls.listSlates, request) ); assert( - (client.descriptors.page.listLiveAdTagDetails.createStream as SinonStub) + (client.descriptors.page.listSlates.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4533,7 +5811,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listLiveAdTagDetails without error', async () => { + it('uses async iteration with listSlates without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4541,42 +5819,41 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListSlatesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveAdTagDetail() + new protos.google.cloud.video.stitcher.v1.Slate() ), ]; - client.descriptors.page.listLiveAdTagDetails.asyncIterate = + client.descriptors.page.listSlates.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.video.stitcher.v1.ILiveAdTagDetail[] = - []; - const iterable = client.listLiveAdTagDetailsAsync(request); + const responses: protos.google.cloud.video.stitcher.v1.ISlate[] = []; + const iterable = client.listSlatesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - ( - client.descriptors.page.listLiveAdTagDetails.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listSlates.asyncIterate as SinonStub).getCall( + 0 + ).args[1], request ); assert( - (client.descriptors.page.listLiveAdTagDetails.asyncIterate as SinonStub) + (client.descriptors.page.listSlates.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4584,7 +5861,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listLiveAdTagDetails with error', async () => { + it('uses async iteration with listSlates with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4592,33 +5869,34 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest() + new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest', + '.google.cloud.video.stitcher.v1.ListSlatesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listLiveAdTagDetails.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listLiveAdTagDetailsAsync(request); + client.descriptors.page.listSlates.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listSlatesAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.video.stitcher.v1.ILiveAdTagDetail[] = - []; + const responses: protos.google.cloud.video.stitcher.v1.ISlate[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - ( - client.descriptors.page.listLiveAdTagDetails.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listSlates.asyncIterate as SinonStub).getCall( + 0 + ).args[1], request ); assert( - (client.descriptors.page.listLiveAdTagDetails.asyncIterate as SinonStub) + (client.descriptors.page.listSlates.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4627,8 +5905,8 @@ describe('v1.VideoStitcherServiceClient', () => { }); }); - describe('listSlates', () => { - it('invokes listSlates without error', async () => { + describe('listLiveConfigs', () => { + it('invokes listLiveConfigs without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4636,39 +5914,39 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListSlatesRequest', + '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), ]; - client.innerApiCalls.listSlates = stubSimpleCall(expectedResponse); - const [response] = await client.listSlates(request); + client.innerApiCalls.listLiveConfigs = stubSimpleCall(expectedResponse); + const [response] = await client.listLiveConfigs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listSlates as SinonStub + client.innerApiCalls.listLiveConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSlates as SinonStub + client.innerApiCalls.listLiveConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSlates without error using callback', async () => { + it('invokes listLiveConfigs without error using callback', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4676,33 +5954,33 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListSlatesRequest', + '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), ]; - client.innerApiCalls.listSlates = + client.innerApiCalls.listLiveConfigs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listSlates( + client.listLiveConfigs( request, ( err?: Error | null, - result?: protos.google.cloud.video.stitcher.v1.ISlate[] | null + result?: protos.google.cloud.video.stitcher.v1.ILiveConfig[] | null ) => { if (err) { reject(err); @@ -4715,16 +5993,16 @@ describe('v1.VideoStitcherServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listSlates as SinonStub + client.innerApiCalls.listLiveConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSlates as SinonStub + client.innerApiCalls.listLiveConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSlates with error', async () => { + it('invokes listLiveConfigs with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4732,31 +6010,31 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListSlatesRequest', + '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listSlates = stubSimpleCall( + client.innerApiCalls.listLiveConfigs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listSlates(request), expectedError); + await assert.rejects(client.listLiveConfigs(request), expectedError); const actualRequest = ( - client.innerApiCalls.listSlates as SinonStub + client.innerApiCalls.listLiveConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSlates as SinonStub + client.innerApiCalls.listLiveConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSlatesStream without error', async () => { + it('invokes listLiveConfigsStream without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4764,33 +6042,34 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListSlatesRequest', + '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), ]; - client.descriptors.page.listSlates.createStream = + client.descriptors.page.listLiveConfigs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listSlatesStream(request); + const stream = client.listLiveConfigsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.Slate[] = []; + const responses: protos.google.cloud.video.stitcher.v1.LiveConfig[] = + []; stream.on( 'data', - (response: protos.google.cloud.video.stitcher.v1.Slate) => { + (response: protos.google.cloud.video.stitcher.v1.LiveConfig) => { responses.push(response); } ); @@ -4804,12 +6083,12 @@ describe('v1.VideoStitcherServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listSlates.createStream as SinonStub) + (client.descriptors.page.listLiveConfigs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listSlates, request) + .calledWith(client.innerApiCalls.listLiveConfigs, request) ); assert( - (client.descriptors.page.listSlates.createStream as SinonStub) + (client.descriptors.page.listLiveConfigs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4817,7 +6096,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('invokes listSlatesStream with error', async () => { + it('invokes listLiveConfigsStream with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4825,25 +6104,24 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListSlatesRequest', + '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listSlates.createStream = stubPageStreamingCall( - undefined, - expectedError - ); - const stream = client.listSlatesStream(request); + client.descriptors.page.listLiveConfigs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listLiveConfigsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.Slate[] = []; + const responses: protos.google.cloud.video.stitcher.v1.LiveConfig[] = + []; stream.on( 'data', - (response: protos.google.cloud.video.stitcher.v1.Slate) => { + (response: protos.google.cloud.video.stitcher.v1.LiveConfig) => { responses.push(response); } ); @@ -4856,12 +6134,12 @@ describe('v1.VideoStitcherServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listSlates.createStream as SinonStub) + (client.descriptors.page.listLiveConfigs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listSlates, request) + .calledWith(client.innerApiCalls.listLiveConfigs, request) ); assert( - (client.descriptors.page.listSlates.createStream as SinonStub) + (client.descriptors.page.listLiveConfigs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4869,7 +6147,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listSlates without error', async () => { + it('uses async iteration with listLiveConfigs without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4877,41 +6155,41 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListSlatesRequest', + '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.Slate() + new protos.google.cloud.video.stitcher.v1.LiveConfig() ), ]; - client.descriptors.page.listSlates.asyncIterate = + client.descriptors.page.listLiveConfigs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.video.stitcher.v1.ISlate[] = []; - const iterable = client.listSlatesAsync(request); + const responses: protos.google.cloud.video.stitcher.v1.ILiveConfig[] = []; + const iterable = client.listLiveConfigsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listSlates.asyncIterate as SinonStub).getCall( - 0 - ).args[1], + ( + client.descriptors.page.listLiveConfigs.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listSlates.asyncIterate as SinonStub) + (client.descriptors.page.listLiveConfigs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4919,7 +6197,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listSlates with error', async () => { + it('uses async iteration with listLiveConfigs with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4927,34 +6205,33 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListSlatesRequest() + new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListSlatesRequest', + '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listSlates.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); - const iterable = client.listSlatesAsync(request); + client.descriptors.page.listLiveConfigs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLiveConfigsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.video.stitcher.v1.ISlate[] = []; + const responses: protos.google.cloud.video.stitcher.v1.ILiveConfig[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.listSlates.asyncIterate as SinonStub).getCall( - 0 - ).args[1], + ( + client.descriptors.page.listLiveConfigs.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listSlates.asyncIterate as SinonStub) + (client.descriptors.page.listLiveConfigs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4963,8 +6240,8 @@ describe('v1.VideoStitcherServiceClient', () => { }); }); - describe('listLiveConfigs', () => { - it('invokes listLiveConfigs without error', async () => { + describe('listVodConfigs', () => { + it('invokes listVodConfigs without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4972,39 +6249,39 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', + '.google.cloud.video.stitcher.v1.ListVodConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), ]; - client.innerApiCalls.listLiveConfigs = stubSimpleCall(expectedResponse); - const [response] = await client.listLiveConfigs(request); + client.innerApiCalls.listVodConfigs = stubSimpleCall(expectedResponse); + const [response] = await client.listVodConfigs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listLiveConfigs as SinonStub + client.innerApiCalls.listVodConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listLiveConfigs as SinonStub + client.innerApiCalls.listVodConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listLiveConfigs without error using callback', async () => { + it('invokes listVodConfigs without error using callback', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5012,33 +6289,33 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', + '.google.cloud.video.stitcher.v1.ListVodConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), ]; - client.innerApiCalls.listLiveConfigs = + client.innerApiCalls.listVodConfigs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listLiveConfigs( + client.listVodConfigs( request, ( err?: Error | null, - result?: protos.google.cloud.video.stitcher.v1.ILiveConfig[] | null + result?: protos.google.cloud.video.stitcher.v1.IVodConfig[] | null ) => { if (err) { reject(err); @@ -5051,16 +6328,16 @@ describe('v1.VideoStitcherServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listLiveConfigs as SinonStub + client.innerApiCalls.listVodConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listLiveConfigs as SinonStub + client.innerApiCalls.listVodConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listLiveConfigs with error', async () => { + it('invokes listVodConfigs with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5068,31 +6345,31 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', + '.google.cloud.video.stitcher.v1.ListVodConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listLiveConfigs = stubSimpleCall( + client.innerApiCalls.listVodConfigs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listLiveConfigs(request), expectedError); + await assert.rejects(client.listVodConfigs(request), expectedError); const actualRequest = ( - client.innerApiCalls.listLiveConfigs as SinonStub + client.innerApiCalls.listVodConfigs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listLiveConfigs as SinonStub + client.innerApiCalls.listVodConfigs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listLiveConfigsStream without error', async () => { + it('invokes listVodConfigsStream without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5100,34 +6377,33 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', + '.google.cloud.video.stitcher.v1.ListVodConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), ]; - client.descriptors.page.listLiveConfigs.createStream = + client.descriptors.page.listVodConfigs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listLiveConfigsStream(request); + const stream = client.listVodConfigsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.LiveConfig[] = - []; + const responses: protos.google.cloud.video.stitcher.v1.VodConfig[] = []; stream.on( 'data', - (response: protos.google.cloud.video.stitcher.v1.LiveConfig) => { + (response: protos.google.cloud.video.stitcher.v1.VodConfig) => { responses.push(response); } ); @@ -5141,12 +6417,12 @@ describe('v1.VideoStitcherServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listLiveConfigs.createStream as SinonStub) + (client.descriptors.page.listVodConfigs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listLiveConfigs, request) + .calledWith(client.innerApiCalls.listVodConfigs, request) ); assert( - (client.descriptors.page.listLiveConfigs.createStream as SinonStub) + (client.descriptors.page.listVodConfigs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -5154,7 +6430,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('invokes listLiveConfigsStream with error', async () => { + it('invokes listVodConfigsStream with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5162,24 +6438,23 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', + '.google.cloud.video.stitcher.v1.ListVodConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listLiveConfigs.createStream = + client.descriptors.page.listVodConfigs.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listLiveConfigsStream(request); + const stream = client.listVodConfigsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.video.stitcher.v1.LiveConfig[] = - []; + const responses: protos.google.cloud.video.stitcher.v1.VodConfig[] = []; stream.on( 'data', - (response: protos.google.cloud.video.stitcher.v1.LiveConfig) => { + (response: protos.google.cloud.video.stitcher.v1.VodConfig) => { responses.push(response); } ); @@ -5192,12 +6467,12 @@ describe('v1.VideoStitcherServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listLiveConfigs.createStream as SinonStub) + (client.descriptors.page.listVodConfigs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listLiveConfigs, request) + .calledWith(client.innerApiCalls.listVodConfigs, request) ); assert( - (client.descriptors.page.listLiveConfigs.createStream as SinonStub) + (client.descriptors.page.listVodConfigs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -5205,7 +6480,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listLiveConfigs without error', async () => { + it('uses async iteration with listVodConfigs without error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5213,41 +6488,41 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', + '.google.cloud.video.stitcher.v1.ListVodConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.LiveConfig() + new protos.google.cloud.video.stitcher.v1.VodConfig() ), ]; - client.descriptors.page.listLiveConfigs.asyncIterate = + client.descriptors.page.listVodConfigs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.video.stitcher.v1.ILiveConfig[] = []; - const iterable = client.listLiveConfigsAsync(request); + const responses: protos.google.cloud.video.stitcher.v1.IVodConfig[] = []; + const iterable = client.listVodConfigsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listLiveConfigs.asyncIterate as SinonStub + client.descriptors.page.listVodConfigs.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listLiveConfigs.asyncIterate as SinonStub) + (client.descriptors.page.listVodConfigs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -5255,7 +6530,7 @@ describe('v1.VideoStitcherServiceClient', () => { ); }); - it('uses async iteration with listLiveConfigs with error', async () => { + it('uses async iteration with listVodConfigs with error', async () => { const client = new videostitcherserviceModule.v1.VideoStitcherServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5263,20 +6538,20 @@ describe('v1.VideoStitcherServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.video.stitcher.v1.ListLiveConfigsRequest() + new protos.google.cloud.video.stitcher.v1.ListVodConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.video.stitcher.v1.ListLiveConfigsRequest', + '.google.cloud.video.stitcher.v1.ListVodConfigsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listLiveConfigs.asyncIterate = + client.descriptors.page.listVodConfigs.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listLiveConfigsAsync(request); + const iterable = client.listVodConfigsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.video.stitcher.v1.ILiveConfig[] = + const responses: protos.google.cloud.video.stitcher.v1.IVodConfig[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -5284,12 +6559,12 @@ describe('v1.VideoStitcherServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listLiveConfigs.asyncIterate as SinonStub + client.descriptors.page.listVodConfigs.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listLiveConfigs.asyncIterate as SinonStub) + (client.descriptors.page.listVodConfigs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -6120,6 +7395,71 @@ describe('v1.VideoStitcherServiceClient', () => { }); }); + describe('vodConfig', () => { + const fakePath = '/rendered/path/vodConfig'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + vod_config: 'vodConfigValue', + }; + const client = + new videostitcherserviceModule.v1.VideoStitcherServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.vodConfigPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.vodConfigPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('vodConfigPath', () => { + const result = client.vodConfigPath( + 'projectValue', + 'locationValue', + 'vodConfigValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.vodConfigPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromVodConfigName', () => { + const result = client.matchProjectFromVodConfigName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.vodConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromVodConfigName', () => { + const result = client.matchLocationFromVodConfigName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.vodConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchVodConfigFromVodConfigName', () => { + const result = client.matchVodConfigFromVodConfigName(fakePath); + assert.strictEqual(result, 'vodConfigValue'); + assert( + (client.pathTemplates.vodConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('vodSession', () => { const fakePath = '/rendered/path/vodSession'; const expectedParameters = {