diff --git a/packages/google-cloud-video-stitcher/README.md b/packages/google-cloud-video-stitcher/README.md
index 9dab194ba27..e1b703b8b2a 100644
--- a/packages/google-cloud-video-stitcher/README.md
+++ b/packages/google-cloud-video-stitcher/README.md
@@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
-# [Video Stitcher API: Node.js Client](https://github.com/googleapis/google-cloud-node)
+# [Video Stitcher API: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-video-stitcher)
[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/video-stitcher.svg)](https://www.npmjs.org/package/@google-cloud/video-stitcher)
@@ -58,32 +58,35 @@ npm install @google-cloud/video-stitcher
## Samples
-Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-video-stitcher/samples) directory. Each sample's `README.md` has instructions for running its sample.
| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
-| Video_stitcher_service.create_cdn_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_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.create_cdn_key.js,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,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,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,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,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,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,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,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,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,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,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,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,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,samples/README.md) |
-| Video_stitcher_service.list_live_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_live_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_live_ad_tag_details.js,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,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,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,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,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,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,samples/README.md) |
-| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/test/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/test/quickstart.js,samples/README.md) |
+| Video_stitcher_service.create_cdn_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-video-stitcher/samples/generated/v1/video_stitcher_service.create_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.create_cdn_key.js,packages/google-cloud-video-stitcher/samples/README.md) |
+| 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_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.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_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) |
+| Video_stitcher_service.list_live_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_live_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_live_ad_tag_details.js,packages/google-cloud-video-stitcher/samples/README.md) |
+| 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_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_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) |
+| 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/common/operation_metadata.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/common/operation_metadata.proto
new file mode 100644
index 00000000000..24300e36f8a
--- /dev/null
+++ b/packages/google-cloud-video-stitcher/protos/google/cloud/common/operation_metadata.proto
@@ -0,0 +1,53 @@
+// Copyright 2021 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.common;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/common;common";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.common";
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // Output only. The time the operation was created.
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server-defined resource path for the target of the operation.
+ string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the verb executed by the operation.
+ string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human-readable status of the operation, if any.
+ string status_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the user has requested cancellation
+ // of the operation. Operations that have successfully been cancelled
+ // have [Operation.error][] value with a [google.rpc.Status.code][] of 1,
+ // corresponding to `Code.CANCELLED`.
+ bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. API version used to start the operation.
+ string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
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 1961fa9b810..9efe99e2de1 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
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
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 fd7a40200da..1513c3da003 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
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/companions.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/companions.proto
index ef87e1994de..a089ed150ee 100644
--- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/companions.proto
+++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/companions.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/events.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/events.proto
index 24e4c459c80..6a538ebc6cc 100644
--- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/events.proto
+++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/events.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
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
new file mode 100644
index 00000000000..1b0192ab33c
--- /dev/null
+++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/live_configs.proto
@@ -0,0 +1,140 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// 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/protobuf/duration.proto";
+
+option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb";
+option java_multiple_files = true;
+option java_outer_classname = "LiveConfigsProto";
+option java_package = "com.google.cloud.video.stitcher.v1";
+
+// Determines the ad tracking policy.
+enum AdTracking {
+ // The ad tracking policy is not specified.
+ AD_TRACKING_UNSPECIFIED = 0;
+
+ // Client-side ad tracking is specified. The client player is expected to
+ // trigger playback and activity events itself.
+ CLIENT = 1;
+
+ // The Video Stitcher API will trigger playback events on behalf of
+ // the client player.
+ SERVER = 2;
+}
+
+// Metadata for used to register live configs.
+message LiveConfig {
+ option (google.api.resource) = {
+ type: "videostitcher.googleapis.com/LiveConfig"
+ pattern: "projects/{project}/locations/{location}/liveConfigs/{live_config}"
+ };
+
+ // State of the live config.
+ enum State {
+ // State is not specified.
+ STATE_UNSPECIFIED = 0;
+
+ // Live config is being created.
+ CREATING = 1;
+
+ // Live config is ready for use.
+ READY = 2;
+
+ // Live config is queued up for deletion.
+ DELETING = 3;
+ }
+
+ // Defines the ad stitching behavior in case the ad duration does not align
+ // exactly with the ad break boundaries. If not specified, the default is
+ // `CUT_CURRENT`.
+ enum StitchingPolicy {
+ // Stitching policy is not specified.
+ STITCHING_POLICY_UNSPECIFIED = 0;
+
+ // Cuts an ad short and returns to content in the middle of the ad.
+ CUT_CURRENT = 1;
+
+ // Finishes stitching the current ad before returning to content.
+ COMPLETE_AD = 2;
+ }
+
+ // Output only. The resource name of the live config, in the form of
+ // `projects/{project}/locations/{location}/liveConfigs/{id}`.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Source URI for the live stream manifest.
+ string source_uri = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The default ad tag associated with this live stream config.
+ string ad_tag_uri = 3;
+
+ // Additional metadata used to register a live stream with Google Ad Manager
+ // (GAM)
+ GamLiveConfig gam_live_config = 4;
+
+ // 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.
+ AdTracking ad_tracking = 6 [(google.api.field_behavior) = REQUIRED];
+
+ // This must refer to a slate in the same
+ // project. If Google Ad Manager (GAM) is used for ads, this string sets the
+ // value of `slateCreativeId` in
+ // https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId
+ string default_slate = 7 [(google.api.resource_reference) = {
+ type: "videostitcher.googleapis.com/Slate"
+ }];
+
+ // Defines the stitcher behavior in case an ad does not align exactly with
+ // the ad break boundaries. If not specified, the default is `CUT_CURRENT`.
+ StitchingPolicy stitching_policy = 8;
+
+ // The configuration for prefetching ads.
+ PrefetchConfig prefetch_config = 10;
+}
+
+// The configuration for prefetch ads.
+message PrefetchConfig {
+ // Required. Indicates whether the option to prefetch ad requests is enabled.
+ bool enabled = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The duration in seconds of the part of the break to be prefetched.
+ // This field is only relevant if prefetch is enabled.
+ // You should set this duration to as long as possible to increase the
+ // benefits of prefetching, but not longer than the shortest ad break
+ // expected. For example, for a live event with 30s and 60s ad breaks, the
+ // initial duration should be set to 30s.
+ google.protobuf.Duration initial_ad_request_duration = 2;
+}
+
+// Metadata used to register a live stream with Google Ad Manager (GAM)
+message GamLiveConfig {
+ // Required. Ad Manager network code to associate with the live config.
+ string network_code = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. The asset key identifier generated for the live config.
+ string asset_key = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The custom asset key identifier generated for the live config.
+ string custom_asset_key = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
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 035e274f202..70c30bdfd78 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
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/video/stitcher/v1/companions.proto";
import "google/cloud/video/stitcher/v1/events.proto";
+import "google/cloud/video/stitcher/v1/live_configs.proto";
import "google/protobuf/duration.proto";
option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb";
@@ -27,13 +28,23 @@ option java_multiple_files = true;
option java_outer_classname = "SessionsProto";
option java_package = "com.google.cloud.video.stitcher.v1";
-// Metadata for a VOD session.
+// Metadata for a VOD session. The session expires 4 hours after its creation.
message VodSession {
option (google.api.resource) = {
type: "videostitcher.googleapis.com/VodSession"
pattern: "projects/{project}/locations/{location}/vodSessions/{vod_session}"
};
+ // Defines fields related to Google Ad Manager (GAM). This should be set if
+ // GAM is being used for ads.
+ message GamSettings {
+ // Required. Ad Manager network code.
+ string network_code = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The stream ID generated by Ad Manager.
+ string stream_id = 2 [(google.api.field_behavior) = REQUIRED];
+ }
+
// Output only. The name of the VOD session, in the form of
// `projects/{project_number}/locations/{location}/vodSessions/{id}`.
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -64,19 +75,20 @@ message VodSession {
// `"`https://doubleclick.google.com/ad/1?geo_id=123"`
map ad_tag_macro_map = 7;
- // Indicates whether client side ad tracking is enabled. If client
- // side ad tracking is enabled, then the client player is expected
- // to trigger playback and activity events itself.
- // If this is set to false, server side ad tracking is enabled,
- // causing the Video Stitcher service will trigger playback events
- // on behalf of the client player.
- bool client_ad_tracking = 8;
-
// Additional options that affect the output of the manifest.
ManifestOptions manifest_options = 9;
// Output only. The generated ID of the VodSession's source media.
string asset_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Determines how the ad should be tracked. If
+ // [gam_vod_config][google.cloud.video.stitcher.v1.VodSession.gam_vod_config]
+ // is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
+ AdTracking ad_tracking = 11 [(google.api.field_behavior) = REQUIRED];
+
+ // This field should be set with appropriate values if GAM is being used for
+ // ads.
+ GamSettings gam_settings = 13;
}
// Describes what was stitched into a VOD session's manifest.
@@ -126,24 +138,20 @@ message VodSessionAdBreak {
google.protobuf.Duration start_time_offset = 4;
}
-// Metadata for a live session.
+// Metadata for a live session. The session expires 5 minutes after the client
+// stops fetching the session's playlists.
message LiveSession {
option (google.api.resource) = {
type: "videostitcher.googleapis.com/LiveSession"
pattern: "projects/{project}/locations/{location}/liveSessions/{live_session}"
};
- // Defines the stitcher behavior in case an ad does not align exactly with
- // the ad break boundaries. If not specified, the default is COMPLETE_AD.
- enum StitchingPolicy {
- // Stitching policy is not specified.
- STITCHING_POLICY_UNSPECIFIED = 0;
-
- // Finishes stitching the current ad before returning to content.
- COMPLETE_AD = 1;
-
- // Cuts an ad short and returns to content in the middle of the ad.
- CUT_CURRENT = 3;
+ // Defines fields related to Google Ad Manager (GAM). This should be set if
+ // GAM
+ // is being used for ads.
+ message GamSettings {
+ // Required. The stream ID generated by Ad Manager.
+ string stream_id = 1 [(google.api.field_behavior) = REQUIRED];
}
// Output only. The name of the live session, in the form of
@@ -153,20 +161,6 @@ 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];
- // The URI of the live session's source stream.
- string source_uri = 3;
-
- // The default ad tag to use when no ad tag ids are specified in an ad break's
- // SCTE-35 message.
- //
- // default_ad_tag_id is necessary when `adTagMap` has more than one key. Its
- // value must be present in the `adTagMap`.
- string default_ad_tag_id = 4;
-
- // Key value pairs for ad tags. Ads parsed from ad tags must be MP4 videos
- // each with at least one audio track.
- map ad_tag_map = 5;
-
// 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.
@@ -182,33 +176,21 @@ message LiveSession {
// `"https://doubleclick.google.com/ad/1?geo_id=123"`
map ad_tag_macros = 6;
- // Whether client side ad tracking is enabled. If enabled, the client player
- // is expected to trigger playback and activity events itself. Otherwise,
- // server side ad tracking is enabled and the Video Stitcher API will trigger
- // playback events on behalf of the client player.
- bool client_ad_tracking = 7;
-
- // The default slate to use when no slates are specified in an ad break's
- // SCTE-35 message. When specified, this value must match the ID for a slate
- // that has already been created via the
- // [CreateSlate](projects.locations.slates/create) method.
- string default_slate_id = 8;
-
- // Defines the stitcher behavior in case an ad does not align exactly with
- // the ad break boundaries. If not specified, the default is `COMPLETE_AD`.
- StitchingPolicy stitching_policy = 9;
-
// Additional options that affect the output of the manifest.
ManifestOptions manifest_options = 10;
- // Output only. The generated ID of the LiveSession's source stream.
- string stream_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
-}
-
-// Metadata of an ad tag.
-message AdTag {
- // Ad tag URI template.
- string uri = 1;
+ // This field should be set with appropriate values if GAM is being used for
+ // ads.
+ GamSettings gam_settings = 15;
+
+ // Required. The resource name of the live config for this session, in the
+ // form of `projects/{project}/locations/{location}/liveConfigs/{id}`.
+ string live_config = 16 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "videostitcher.googleapis.com/LiveConfig"
+ }
+ ];
}
// Options for manifest generation.
diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/slates.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/slates.proto
index eaa516713f9..902a444ef26 100644
--- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/slates.proto
+++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/slates.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -31,6 +31,16 @@ message Slate {
pattern: "projects/{project}/locations/{location}/slates/{slate}"
};
+ // GamSlate object has Google Ad Manager (GAM) related properties for the
+ // slate.
+ message GamSlate {
+ // Required. Ad Manager network code to associate with the live config.
+ string network_code = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. The identifier generated for the slate by GAM.
+ int64 gam_slate_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
// Output only. The name of the slate, in the form of
// `projects/{project_number}/locations/{location}/slates/{id}`.
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -38,4 +48,7 @@ message Slate {
// The URI to fetch the source content for the slate. This URI must return an
// MP4 video with at least one audio track.
string uri = 2;
+
+ // gam_slate has all the GAM-related attributes of slates.
+ GamSlate gam_slate = 3;
}
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 293f9b14b63..e51c72d642e 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
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -50,11 +50,13 @@ message AdStitchDetail {
string ad_id = 2 [(google.api.field_behavior) = REQUIRED];
// Required. The time offset of the processed ad.
- google.protobuf.Duration ad_time_offset = 3 [(google.api.field_behavior) = REQUIRED];
+ google.protobuf.Duration ad_time_offset = 3
+ [(google.api.field_behavior) = REQUIRED];
// Optional. Indicates the reason why the ad has been skipped.
string skip_reason = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. The metadata of the chosen media file for the ad.
- map media = 5 [(google.api.field_behavior) = OPTIONAL];
+ map media = 5
+ [(google.api.field_behavior) = OPTIONAL];
}
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 8e86835a406..3cd6a27f0d8 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
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -22,11 +22,14 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/video/stitcher/v1/ad_tag_details.proto";
import "google/cloud/video/stitcher/v1/cdn_keys.proto";
+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/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb";
option java_multiple_files = true;
@@ -40,15 +43,20 @@ option java_package = "com.google.cloud.video.stitcher.v1";
// content with any standard VMAP compliant ad server.
service VideoStitcherService {
option (google.api.default_host) = "videostitcher.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
// Creates a new CDN key.
- rpc CreateCdnKey(CreateCdnKeyRequest) returns (CdnKey) {
+ rpc CreateCdnKey(CreateCdnKeyRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*}/cdnKeys"
body: "cdn_key"
};
option (google.api.method_signature) = "parent,cdn_key,cdn_key_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.video.stitcher.v1.CdnKey"
+ metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata"
+ };
}
// Lists all CDN keys in the specified project and location.
@@ -68,21 +76,29 @@ service VideoStitcherService {
}
// Deletes the specified CDN key.
- rpc DeleteCdnKey(DeleteCdnKeyRequest) returns (google.protobuf.Empty) {
+ rpc DeleteCdnKey(DeleteCdnKeyRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/cdnKeys/*}"
};
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 CDN key. Only update fields specified
// in the call method body.
- rpc UpdateCdnKey(UpdateCdnKeyRequest) returns (CdnKey) {
+ rpc UpdateCdnKey(UpdateCdnKeyRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1/{cdn_key.name=projects/*/locations/*/cdnKeys/*}"
body: "cdn_key"
};
option (google.api.method_signature) = "cdn_key,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.video.stitcher.v1.CdnKey"
+ metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata"
+ };
}
// Creates a client side playback VOD session and returns the full
@@ -106,7 +122,8 @@ service VideoStitcherService {
// Returns a list of detailed stitching information of the specified VOD
// session.
- rpc ListVodStitchDetails(ListVodStitchDetailsRequest) returns (ListVodStitchDetailsResponse) {
+ rpc ListVodStitchDetails(ListVodStitchDetailsRequest)
+ returns (ListVodStitchDetailsResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*/vodSessions/*}/vodStitchDetails"
};
@@ -122,7 +139,8 @@ service VideoStitcherService {
}
// Return the list of ad tag details for the specified VOD session.
- rpc ListVodAdTagDetails(ListVodAdTagDetailsRequest) returns (ListVodAdTagDetailsResponse) {
+ rpc ListVodAdTagDetails(ListVodAdTagDetailsRequest)
+ returns (ListVodAdTagDetailsResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*/vodSessions/*}/vodAdTagDetails"
};
@@ -138,7 +156,8 @@ service VideoStitcherService {
}
// Return the list of ad tag details for the specified live session.
- rpc ListLiveAdTagDetails(ListLiveAdTagDetailsRequest) returns (ListLiveAdTagDetailsResponse) {
+ rpc ListLiveAdTagDetails(ListLiveAdTagDetailsRequest)
+ returns (ListLiveAdTagDetailsResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*/liveSessions/*}/liveAdTagDetails"
};
@@ -154,12 +173,16 @@ service VideoStitcherService {
}
// Creates a slate.
- rpc CreateSlate(CreateSlateRequest) returns (Slate) {
+ rpc CreateSlate(CreateSlateRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*}/slates"
body: "slate"
};
option (google.api.method_signature) = "parent,slate,slate_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.video.stitcher.v1.Slate"
+ metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata"
+ };
}
// Lists all slates in the specified project and location.
@@ -179,20 +202,28 @@ service VideoStitcherService {
}
// Updates the specified slate.
- rpc UpdateSlate(UpdateSlateRequest) returns (Slate) {
+ rpc UpdateSlate(UpdateSlateRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1/{slate.name=projects/*/locations/*/slates/*}"
body: "slate"
};
option (google.api.method_signature) = "slate,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.video.stitcher.v1.Slate"
+ metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata"
+ };
}
// Deletes the specified slate.
- rpc DeleteSlate(DeleteSlateRequest) returns (google.protobuf.Empty) {
+ rpc DeleteSlate(DeleteSlateRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/slates/*}"
};
option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata"
+ };
}
// Creates a new live session.
@@ -211,12 +242,59 @@ service VideoStitcherService {
};
option (google.api.method_signature) = "name";
}
+
+ // Registers the live config with the provided unique ID in
+ // the specified region.
+ rpc CreateLiveConfig(CreateLiveConfigRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/liveConfigs"
+ body: "live_config"
+ };
+ option (google.api.method_signature) = "parent,live_config,live_config_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.video.stitcher.v1.LiveConfig"
+ metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata"
+ };
+ }
+
+ // Lists all live configs managed by the Video Stitcher that
+ // belong to the specified project and region.
+ rpc ListLiveConfigs(ListLiveConfigsRequest)
+ returns (ListLiveConfigsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/liveConfigs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns the specified live config managed by the Video
+ // Stitcher service.
+ rpc GetLiveConfig(GetLiveConfigRequest) returns (LiveConfig) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/liveConfigs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Deletes the specified live config.
+ rpc DeleteLiveConfig(DeleteLiveConfigRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/liveConfigs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata"
+ };
+ }
}
// Request message for VideoStitcherService.createCdnKey.
message CreateCdnKeyRequest {
- // Required. The project in which the CDN key should be created, in the form of
- // `projects/{project_number}/locations/{location}`.
+ // Required. The project in which the CDN key should be created, in the form
+ // of `projects/{project_number}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -227,8 +305,8 @@ message CreateCdnKeyRequest {
// Required. The CDN key resource to create.
CdnKey cdn_key = 2 [(google.api.field_behavior) = REQUIRED];
- // Required. The ID to use for the CDN key, which will become the final component of
- // the CDN key's resource name.
+ // Required. The ID to use for the CDN key, which will become the final
+ // component of the CDN key's resource name.
//
// This value should conform to RFC-1034, which restricts to
// lower-case letters, numbers, and hyphen, with the first character a
@@ -305,13 +383,14 @@ message UpdateCdnKeyRequest {
// 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];
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
}
// Request message for VideoStitcherService.createVodSession
message CreateVodSessionRequest {
- // Required. The project and location in which the VOD session should be created, in the
- // form of `projects/{project_number}/locations/{location}`.
+ // Required. The project and location in which the VOD session should be
+ // created, in the form of `projects/{project_number}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -337,8 +416,8 @@ message GetVodSessionRequest {
// Request message for VideoStitcherService.listVodStitchDetails.
message ListVodStitchDetailsRequest {
- // Required. The VOD session where the stitch details belong to, in the form of
- // `projects/{project}/locations/{location}/vodSessions/{id}`.
+ // Required. The VOD session where the stitch details belong to, in the form
+ // of `projects/{project}/locations/{location}/vodSessions/{id}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -364,7 +443,8 @@ message ListVodStitchDetailsResponse {
// Request message for VideoStitcherService.getVodStitchDetail.
message GetVodStitchDetailRequest {
- // Required. The name of the stitch detail in the specified VOD session, in the form of
+ // Required. The name of the stitch detail in the specified VOD session, in
+ // the form of
// `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodStitchDetails/{id}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
@@ -376,8 +456,8 @@ message GetVodStitchDetailRequest {
// Request message for VideoStitcherService.listVodAdTagDetails.
message ListVodAdTagDetailsRequest {
- // Required. The VOD session which the ad tag details belong to, in the form of
- // `projects/{project}/locations/{location}/vodSessions/{vod_session_id}`.
+ // Required. The VOD session which the ad tag details belong to, in the form
+ // of `projects/{project}/locations/{location}/vodSessions/{vod_session_id}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -403,7 +483,8 @@ message ListVodAdTagDetailsResponse {
// Request message for VideoStitcherService.getVodAdTagDetail
message GetVodAdTagDetailRequest {
- // Required. The name of the ad tag detail for the specified VOD session, in the form of
+ // Required. The name of the ad tag detail for the specified VOD session, in
+ // the form of
// `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodAdTagDetails/{vod_ad_tag_detail}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
@@ -455,7 +536,7 @@ message GetLiveAdTagDetailRequest {
// Request message for VideoStitcherService.createSlate.
message CreateSlateRequest {
// Required. The project in which the slate should be created, in the form of
- // `projects/{project_number}`.
+ // `projects/{project_number}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -471,12 +552,27 @@ message CreateSlateRequest {
// Required. The slate to create.
Slate slate = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // 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;
}
// Request message for VideoStitcherService.getSlate.
message GetSlateRequest {
- // Required. The name of the slate to be retrieved, of the slate, in the form of
- // `projects/{project_number}/locations/{location}/slates/{id}`.
+ // Required. The name of the slate to be retrieved, of the slate, in the form
+ // of `projects/{project_number}/locations/{location}/slates/{id}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -487,7 +583,8 @@ message GetSlateRequest {
// Request message for VideoStitcherService.listSlates.
message ListSlatesRequest {
- // Required. The project to list slates, in the form of `projects/{project_number}`.
+ // Required. The project to list slates, in the form of
+ // `projects/{project_number}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -527,7 +624,8 @@ message UpdateSlateRequest {
Slate slate = 1 [(google.api.field_behavior) = REQUIRED];
// Required. The update mask which specifies fields which should be updated.
- google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
}
// Request message for VideoStitcherService.deleteSlate.
@@ -544,8 +642,8 @@ message DeleteSlateRequest {
// Request message for VideoStitcherService.createLiveSession.
message CreateLiveSessionRequest {
- // Required. The project and location in which the live session should be created,
- // in the form of `projects/{project_number}/locations/{location}`.
+ // Required. The project and location in which the live session should be
+ // created, in the form of `projects/{project_number}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -568,3 +666,115 @@ message GetLiveSessionRequest {
}
];
}
+
+// Request message for VideoStitcherService.createLiveConfig
+message CreateLiveConfigRequest {
+ // Required. The project in which the live 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/LiveConfig"
+ }
+ ];
+
+ // Required. The unique identifier ID to use for the live config.
+ string live_config_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The live config resource to create.
+ LiveConfig live_config = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // 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;
+}
+
+// Request message for VideoStitcherService.listLiveConfig.
+message ListLiveConfigsRequest {
+ // Required. The project that contains the list of live 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/LiveConfig"
+ }
+ ];
+
+ // The maximum number of items to return.
+ int32 page_size = 2;
+
+ // The next_page_token value returned from a previous List request, if any.
+ string page_token = 3;
+
+ // 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.ListLiveConfig.
+message ListLiveConfigsResponse {
+ // List of live configs.
+ repeated LiveConfig live_configs = 1;
+
+ // The pagination token.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request message for VideoStitcherService.getLiveConfig.
+message GetLiveConfigRequest {
+ // Required. The name of the live config to be retrieved, in the form
+ // of
+ // `projects/{project_number}/locations/{location}/liveConfigs/{id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "videostitcher.googleapis.com/LiveConfig"
+ }
+ ];
+}
+
+// Request message for VideoStitcherService.deleteLiveConfig.
+message DeleteLiveConfigRequest {
+ // Required. The name of the live config to be deleted, in the form of
+ // `projects/{project_number}/locations/{location}/liveConfigs/{id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "videostitcher.googleapis.com/LiveConfig"
+ }
+ ];
+}
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // The time the operation was created.
+ google.protobuf.Timestamp create_time = 1;
+
+ // The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2;
+
+ // Server-defined resource path for the target of the operation.
+ string target = 3;
+
+ // Name of the verb executed by the operation.
+ string verb = 4;
+}
diff --git a/packages/google-cloud-video-stitcher/protos/protos.d.ts b/packages/google-cloud-video-stitcher/protos/protos.d.ts
index 4cd8bfcdf9d..7cad6c54b8f 100644
--- a/packages/google-cloud-video-stitcher/protos/protos.d.ts
+++ b/packages/google-cloud-video-stitcher/protos/protos.d.ts
@@ -1822,6 +1822,388 @@ export namespace google {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+ /** AdTracking enum. */
+ enum AdTracking {
+ AD_TRACKING_UNSPECIFIED = 0,
+ CLIENT = 1,
+ SERVER = 2
+ }
+
+ /** Properties of a LiveConfig. */
+ interface ILiveConfig {
+
+ /** LiveConfig name */
+ name?: (string|null);
+
+ /** LiveConfig sourceUri */
+ sourceUri?: (string|null);
+
+ /** LiveConfig adTagUri */
+ adTagUri?: (string|null);
+
+ /** LiveConfig gamLiveConfig */
+ gamLiveConfig?: (google.cloud.video.stitcher.v1.IGamLiveConfig|null);
+
+ /** LiveConfig state */
+ state?: (google.cloud.video.stitcher.v1.LiveConfig.State|keyof typeof google.cloud.video.stitcher.v1.LiveConfig.State|null);
+
+ /** LiveConfig adTracking */
+ adTracking?: (google.cloud.video.stitcher.v1.AdTracking|keyof typeof google.cloud.video.stitcher.v1.AdTracking|null);
+
+ /** LiveConfig defaultSlate */
+ defaultSlate?: (string|null);
+
+ /** LiveConfig stitchingPolicy */
+ stitchingPolicy?: (google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy|keyof typeof google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy|null);
+
+ /** LiveConfig prefetchConfig */
+ prefetchConfig?: (google.cloud.video.stitcher.v1.IPrefetchConfig|null);
+ }
+
+ /** Represents a LiveConfig. */
+ class LiveConfig implements ILiveConfig {
+
+ /**
+ * Constructs a new LiveConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.video.stitcher.v1.ILiveConfig);
+
+ /** LiveConfig name. */
+ public name: string;
+
+ /** LiveConfig sourceUri. */
+ public sourceUri: string;
+
+ /** LiveConfig adTagUri. */
+ public adTagUri: string;
+
+ /** LiveConfig gamLiveConfig. */
+ public gamLiveConfig?: (google.cloud.video.stitcher.v1.IGamLiveConfig|null);
+
+ /** LiveConfig state. */
+ public state: (google.cloud.video.stitcher.v1.LiveConfig.State|keyof typeof google.cloud.video.stitcher.v1.LiveConfig.State);
+
+ /** LiveConfig adTracking. */
+ public adTracking: (google.cloud.video.stitcher.v1.AdTracking|keyof typeof google.cloud.video.stitcher.v1.AdTracking);
+
+ /** LiveConfig defaultSlate. */
+ public defaultSlate: string;
+
+ /** LiveConfig stitchingPolicy. */
+ public stitchingPolicy: (google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy|keyof typeof google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy);
+
+ /** LiveConfig prefetchConfig. */
+ public prefetchConfig?: (google.cloud.video.stitcher.v1.IPrefetchConfig|null);
+
+ /**
+ * Creates a new LiveConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LiveConfig instance
+ */
+ public static create(properties?: google.cloud.video.stitcher.v1.ILiveConfig): google.cloud.video.stitcher.v1.LiveConfig;
+
+ /**
+ * Encodes the specified LiveConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveConfig.verify|verify} messages.
+ * @param message LiveConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.video.stitcher.v1.ILiveConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LiveConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveConfig.verify|verify} messages.
+ * @param message LiveConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.video.stitcher.v1.ILiveConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LiveConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LiveConfig
+ * @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.LiveConfig;
+
+ /**
+ * Decodes a LiveConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LiveConfig
+ * @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.LiveConfig;
+
+ /**
+ * Verifies a LiveConfig 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 LiveConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LiveConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.LiveConfig;
+
+ /**
+ * Creates a plain object from a LiveConfig message. Also converts values to other types if specified.
+ * @param message LiveConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.LiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LiveConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LiveConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace LiveConfig {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ READY = 2,
+ DELETING = 3
+ }
+
+ /** StitchingPolicy enum. */
+ enum StitchingPolicy {
+ STITCHING_POLICY_UNSPECIFIED = 0,
+ CUT_CURRENT = 1,
+ COMPLETE_AD = 2
+ }
+ }
+
+ /** Properties of a PrefetchConfig. */
+ interface IPrefetchConfig {
+
+ /** PrefetchConfig enabled */
+ enabled?: (boolean|null);
+
+ /** PrefetchConfig initialAdRequestDuration */
+ initialAdRequestDuration?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a PrefetchConfig. */
+ class PrefetchConfig implements IPrefetchConfig {
+
+ /**
+ * Constructs a new PrefetchConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.video.stitcher.v1.IPrefetchConfig);
+
+ /** PrefetchConfig enabled. */
+ public enabled: boolean;
+
+ /** PrefetchConfig initialAdRequestDuration. */
+ public initialAdRequestDuration?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new PrefetchConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PrefetchConfig instance
+ */
+ public static create(properties?: google.cloud.video.stitcher.v1.IPrefetchConfig): google.cloud.video.stitcher.v1.PrefetchConfig;
+
+ /**
+ * Encodes the specified PrefetchConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.PrefetchConfig.verify|verify} messages.
+ * @param message PrefetchConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.video.stitcher.v1.IPrefetchConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PrefetchConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.PrefetchConfig.verify|verify} messages.
+ * @param message PrefetchConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IPrefetchConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PrefetchConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PrefetchConfig
+ * @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.PrefetchConfig;
+
+ /**
+ * Decodes a PrefetchConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PrefetchConfig
+ * @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.PrefetchConfig;
+
+ /**
+ * Verifies a PrefetchConfig 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 PrefetchConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PrefetchConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.PrefetchConfig;
+
+ /**
+ * Creates a plain object from a PrefetchConfig message. Also converts values to other types if specified.
+ * @param message PrefetchConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.PrefetchConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PrefetchConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PrefetchConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GamLiveConfig. */
+ interface IGamLiveConfig {
+
+ /** GamLiveConfig networkCode */
+ networkCode?: (string|null);
+
+ /** GamLiveConfig assetKey */
+ assetKey?: (string|null);
+
+ /** GamLiveConfig customAssetKey */
+ customAssetKey?: (string|null);
+ }
+
+ /** Represents a GamLiveConfig. */
+ class GamLiveConfig implements IGamLiveConfig {
+
+ /**
+ * Constructs a new GamLiveConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.video.stitcher.v1.IGamLiveConfig);
+
+ /** GamLiveConfig networkCode. */
+ public networkCode: string;
+
+ /** GamLiveConfig assetKey. */
+ public assetKey: string;
+
+ /** GamLiveConfig customAssetKey. */
+ public customAssetKey: string;
+
+ /**
+ * Creates a new GamLiveConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GamLiveConfig instance
+ */
+ public static create(properties?: google.cloud.video.stitcher.v1.IGamLiveConfig): google.cloud.video.stitcher.v1.GamLiveConfig;
+
+ /**
+ * Encodes the specified GamLiveConfig message. Does not implicitly {@link google.cloud.video.stitcher.v1.GamLiveConfig.verify|verify} messages.
+ * @param message GamLiveConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.video.stitcher.v1.IGamLiveConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GamLiveConfig message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GamLiveConfig.verify|verify} messages.
+ * @param message GamLiveConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IGamLiveConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GamLiveConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GamLiveConfig
+ * @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.GamLiveConfig;
+
+ /**
+ * Decodes a GamLiveConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GamLiveConfig
+ * @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.GamLiveConfig;
+
+ /**
+ * Verifies a GamLiveConfig 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 GamLiveConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GamLiveConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.GamLiveConfig;
+
+ /**
+ * Creates a plain object from a GamLiveConfig message. Also converts values to other types if specified.
+ * @param message GamLiveConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.GamLiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GamLiveConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GamLiveConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
/** Properties of a VodSession. */
interface IVodSession {
@@ -1843,14 +2225,17 @@ export namespace google {
/** VodSession adTagMacroMap */
adTagMacroMap?: ({ [k: string]: string }|null);
- /** VodSession clientAdTracking */
- clientAdTracking?: (boolean|null);
-
/** VodSession manifestOptions */
manifestOptions?: (google.cloud.video.stitcher.v1.IManifestOptions|null);
/** VodSession assetId */
assetId?: (string|null);
+
+ /** VodSession adTracking */
+ adTracking?: (google.cloud.video.stitcher.v1.AdTracking|keyof typeof google.cloud.video.stitcher.v1.AdTracking|null);
+
+ /** VodSession gamSettings */
+ gamSettings?: (google.cloud.video.stitcher.v1.VodSession.IGamSettings|null);
}
/** Represents a VodSession. */
@@ -1880,15 +2265,18 @@ export namespace google {
/** VodSession adTagMacroMap. */
public adTagMacroMap: { [k: string]: string };
- /** VodSession clientAdTracking. */
- public clientAdTracking: boolean;
-
/** VodSession manifestOptions. */
public manifestOptions?: (google.cloud.video.stitcher.v1.IManifestOptions|null);
/** VodSession assetId. */
public assetId: string;
+ /** VodSession adTracking. */
+ public adTracking: (google.cloud.video.stitcher.v1.AdTracking|keyof typeof google.cloud.video.stitcher.v1.AdTracking);
+
+ /** VodSession gamSettings. */
+ public gamSettings?: (google.cloud.video.stitcher.v1.VodSession.IGamSettings|null);
+
/**
* Creates a new VodSession instance using the specified properties.
* @param [properties] Properties to set
@@ -1967,6 +2355,112 @@ export namespace google {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+ namespace VodSession {
+
+ /** Properties of a GamSettings. */
+ interface IGamSettings {
+
+ /** GamSettings networkCode */
+ networkCode?: (string|null);
+
+ /** GamSettings streamId */
+ streamId?: (string|null);
+ }
+
+ /** Represents a GamSettings. */
+ class GamSettings implements IGamSettings {
+
+ /**
+ * Constructs a new GamSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.video.stitcher.v1.VodSession.IGamSettings);
+
+ /** GamSettings networkCode. */
+ public networkCode: string;
+
+ /** GamSettings streamId. */
+ public streamId: string;
+
+ /**
+ * Creates a new GamSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GamSettings instance
+ */
+ public static create(properties?: google.cloud.video.stitcher.v1.VodSession.IGamSettings): google.cloud.video.stitcher.v1.VodSession.GamSettings;
+
+ /**
+ * Encodes the specified GamSettings message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSession.GamSettings.verify|verify} messages.
+ * @param message GamSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.video.stitcher.v1.VodSession.IGamSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GamSettings message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSession.GamSettings.verify|verify} messages.
+ * @param message GamSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.video.stitcher.v1.VodSession.IGamSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GamSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GamSettings
+ * @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.VodSession.GamSettings;
+
+ /**
+ * Decodes a GamSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GamSettings
+ * @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.VodSession.GamSettings;
+
+ /**
+ * Verifies a GamSettings 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 GamSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GamSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.VodSession.GamSettings;
+
+ /**
+ * Creates a plain object from a GamSettings message. Also converts values to other types if specified.
+ * @param message GamSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.VodSession.GamSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GamSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GamSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
/** Properties of an Interstitials. */
interface IInterstitials {
@@ -2400,32 +2894,17 @@ export namespace google {
/** LiveSession playUri */
playUri?: (string|null);
- /** LiveSession sourceUri */
- sourceUri?: (string|null);
-
- /** LiveSession defaultAdTagId */
- defaultAdTagId?: (string|null);
-
- /** LiveSession adTagMap */
- adTagMap?: ({ [k: string]: google.cloud.video.stitcher.v1.IAdTag }|null);
-
/** LiveSession adTagMacros */
adTagMacros?: ({ [k: string]: string }|null);
- /** LiveSession clientAdTracking */
- clientAdTracking?: (boolean|null);
-
- /** LiveSession defaultSlateId */
- defaultSlateId?: (string|null);
-
- /** LiveSession stitchingPolicy */
- stitchingPolicy?: (google.cloud.video.stitcher.v1.LiveSession.StitchingPolicy|keyof typeof google.cloud.video.stitcher.v1.LiveSession.StitchingPolicy|null);
-
/** LiveSession manifestOptions */
manifestOptions?: (google.cloud.video.stitcher.v1.IManifestOptions|null);
- /** LiveSession streamId */
- streamId?: (string|null);
+ /** LiveSession gamSettings */
+ gamSettings?: (google.cloud.video.stitcher.v1.LiveSession.IGamSettings|null);
+
+ /** LiveSession liveConfig */
+ liveConfig?: (string|null);
}
/** Represents a LiveSession. */
@@ -2443,32 +2922,17 @@ export namespace google {
/** LiveSession playUri. */
public playUri: string;
- /** LiveSession sourceUri. */
- public sourceUri: string;
-
- /** LiveSession defaultAdTagId. */
- public defaultAdTagId: string;
-
- /** LiveSession adTagMap. */
- public adTagMap: { [k: string]: google.cloud.video.stitcher.v1.IAdTag };
-
/** LiveSession adTagMacros. */
public adTagMacros: { [k: string]: string };
- /** LiveSession clientAdTracking. */
- public clientAdTracking: boolean;
+ /** LiveSession manifestOptions. */
+ public manifestOptions?: (google.cloud.video.stitcher.v1.IManifestOptions|null);
- /** LiveSession defaultSlateId. */
- public defaultSlateId: string;
+ /** LiveSession gamSettings. */
+ public gamSettings?: (google.cloud.video.stitcher.v1.LiveSession.IGamSettings|null);
- /** LiveSession stitchingPolicy. */
- public stitchingPolicy: (google.cloud.video.stitcher.v1.LiveSession.StitchingPolicy|keyof typeof google.cloud.video.stitcher.v1.LiveSession.StitchingPolicy);
-
- /** LiveSession manifestOptions. */
- public manifestOptions?: (google.cloud.video.stitcher.v1.IManifestOptions|null);
-
- /** LiveSession streamId. */
- public streamId: string;
+ /** LiveSession liveConfig. */
+ public liveConfig: string;
/**
* Creates a new LiveSession instance using the specified properties.
@@ -2550,109 +3014,102 @@ export namespace google {
namespace LiveSession {
- /** StitchingPolicy enum. */
- enum StitchingPolicy {
- STITCHING_POLICY_UNSPECIFIED = 0,
- COMPLETE_AD = 1,
- CUT_CURRENT = 3
- }
- }
-
- /** Properties of an AdTag. */
- interface IAdTag {
-
- /** AdTag uri */
- uri?: (string|null);
- }
-
- /** Represents an AdTag. */
- class AdTag implements IAdTag {
-
- /**
- * Constructs a new AdTag.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.cloud.video.stitcher.v1.IAdTag);
-
- /** AdTag uri. */
- public uri: string;
-
- /**
- * Creates a new AdTag instance using the specified properties.
- * @param [properties] Properties to set
- * @returns AdTag instance
- */
- public static create(properties?: google.cloud.video.stitcher.v1.IAdTag): google.cloud.video.stitcher.v1.AdTag;
-
- /**
- * Encodes the specified AdTag message. Does not implicitly {@link google.cloud.video.stitcher.v1.AdTag.verify|verify} messages.
- * @param message AdTag message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.cloud.video.stitcher.v1.IAdTag, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Encodes the specified AdTag message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.AdTag.verify|verify} messages.
- * @param message AdTag message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.cloud.video.stitcher.v1.IAdTag, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Decodes an AdTag message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns AdTag
- * @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.AdTag;
-
- /**
- * Decodes an AdTag message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns AdTag
- * @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.AdTag;
-
- /**
- * Verifies an AdTag 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 AdTag message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns AdTag
- */
- public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.AdTag;
-
- /**
- * Creates a plain object from an AdTag message. Also converts values to other types if specified.
- * @param message AdTag
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.cloud.video.stitcher.v1.AdTag, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ /** Properties of a GamSettings. */
+ interface IGamSettings {
- /**
- * Converts this AdTag to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** GamSettings streamId */
+ streamId?: (string|null);
+ }
- /**
- * Gets the default type url for AdTag
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
+ /** Represents a GamSettings. */
+ class GamSettings implements IGamSettings {
+
+ /**
+ * Constructs a new GamSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.video.stitcher.v1.LiveSession.IGamSettings);
+
+ /** GamSettings streamId. */
+ public streamId: string;
+
+ /**
+ * Creates a new GamSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GamSettings instance
+ */
+ public static create(properties?: google.cloud.video.stitcher.v1.LiveSession.IGamSettings): google.cloud.video.stitcher.v1.LiveSession.GamSettings;
+
+ /**
+ * Encodes the specified GamSettings message. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.GamSettings.verify|verify} messages.
+ * @param message GamSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.video.stitcher.v1.LiveSession.IGamSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GamSettings message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.GamSettings.verify|verify} messages.
+ * @param message GamSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.video.stitcher.v1.LiveSession.IGamSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GamSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GamSettings
+ * @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.LiveSession.GamSettings;
+
+ /**
+ * Decodes a GamSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GamSettings
+ * @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.LiveSession.GamSettings;
+
+ /**
+ * Verifies a GamSettings 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 GamSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GamSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.LiveSession.GamSettings;
+
+ /**
+ * Creates a plain object from a GamSettings message. Also converts values to other types if specified.
+ * @param message GamSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.LiveSession.GamSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GamSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GamSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
}
/** Properties of a ManifestOptions. */
@@ -2879,6 +3336,9 @@ export namespace google {
/** Slate uri */
uri?: (string|null);
+
+ /** Slate gamSlate */
+ gamSlate?: (google.cloud.video.stitcher.v1.Slate.IGamSlate|null);
}
/** Represents a Slate. */
@@ -2896,6 +3356,9 @@ export namespace google {
/** Slate uri. */
public uri: string;
+ /** Slate gamSlate. */
+ public gamSlate?: (google.cloud.video.stitcher.v1.Slate.IGamSlate|null);
+
/**
* Creates a new Slate instance using the specified properties.
* @param [properties] Properties to set
@@ -2974,6 +3437,112 @@ export namespace google {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+ namespace Slate {
+
+ /** Properties of a GamSlate. */
+ interface IGamSlate {
+
+ /** GamSlate networkCode */
+ networkCode?: (string|null);
+
+ /** GamSlate gamSlateId */
+ gamSlateId?: (number|Long|string|null);
+ }
+
+ /** Represents a GamSlate. */
+ class GamSlate implements IGamSlate {
+
+ /**
+ * Constructs a new GamSlate.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.video.stitcher.v1.Slate.IGamSlate);
+
+ /** GamSlate networkCode. */
+ public networkCode: string;
+
+ /** GamSlate gamSlateId. */
+ public gamSlateId: (number|Long|string);
+
+ /**
+ * Creates a new GamSlate instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GamSlate instance
+ */
+ public static create(properties?: google.cloud.video.stitcher.v1.Slate.IGamSlate): google.cloud.video.stitcher.v1.Slate.GamSlate;
+
+ /**
+ * Encodes the specified GamSlate message. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.GamSlate.verify|verify} messages.
+ * @param message GamSlate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.video.stitcher.v1.Slate.IGamSlate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GamSlate message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.GamSlate.verify|verify} messages.
+ * @param message GamSlate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.video.stitcher.v1.Slate.IGamSlate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GamSlate message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GamSlate
+ * @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.Slate.GamSlate;
+
+ /**
+ * Decodes a GamSlate message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GamSlate
+ * @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.Slate.GamSlate;
+
+ /**
+ * Verifies a GamSlate 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 GamSlate message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GamSlate
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.Slate.GamSlate;
+
+ /**
+ * Creates a plain object from a GamSlate message. Also converts values to other types if specified.
+ * @param message GamSlate
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.Slate.GamSlate, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GamSlate to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GamSlate
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
/** Properties of a VodStitchDetail. */
interface IVodStitchDetail {
@@ -3221,7 +3790,7 @@ export namespace google {
/**
* Calls CreateCdnKey.
* @param request CreateCdnKeyRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and CdnKey
+ * @param callback Node-style callback called with the error, if any, and Operation
*/
public createCdnKey(request: google.cloud.video.stitcher.v1.ICreateCdnKeyRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.CreateCdnKeyCallback): void;
@@ -3230,7 +3799,7 @@ export namespace google {
* @param request CreateCdnKeyRequest message or plain object
* @returns Promise
*/
- public createCdnKey(request: google.cloud.video.stitcher.v1.ICreateCdnKeyRequest): Promise;
+ public createCdnKey(request: google.cloud.video.stitcher.v1.ICreateCdnKeyRequest): Promise;
/**
* Calls ListCdnKeys.
@@ -3263,7 +3832,7 @@ export namespace google {
/**
* Calls DeleteCdnKey.
* @param request DeleteCdnKeyRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and Empty
+ * @param callback Node-style callback called with the error, if any, and Operation
*/
public deleteCdnKey(request: google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.DeleteCdnKeyCallback): void;
@@ -3272,12 +3841,12 @@ export namespace google {
* @param request DeleteCdnKeyRequest message or plain object
* @returns Promise
*/
- public deleteCdnKey(request: google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest): Promise;
+ public deleteCdnKey(request: google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest): Promise;
/**
* Calls UpdateCdnKey.
* @param request UpdateCdnKeyRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and CdnKey
+ * @param callback Node-style callback called with the error, if any, and Operation
*/
public updateCdnKey(request: google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.UpdateCdnKeyCallback): void;
@@ -3286,7 +3855,7 @@ export namespace google {
* @param request UpdateCdnKeyRequest message or plain object
* @returns Promise
*/
- public updateCdnKey(request: google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest): Promise;
+ public updateCdnKey(request: google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest): Promise;
/**
* Calls CreateVodSession.
@@ -3403,7 +3972,7 @@ export namespace google {
/**
* Calls CreateSlate.
* @param request CreateSlateRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and Slate
+ * @param callback Node-style callback called with the error, if any, and Operation
*/
public createSlate(request: google.cloud.video.stitcher.v1.ICreateSlateRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.CreateSlateCallback): void;
@@ -3412,7 +3981,7 @@ export namespace google {
* @param request CreateSlateRequest message or plain object
* @returns Promise
*/
- public createSlate(request: google.cloud.video.stitcher.v1.ICreateSlateRequest): Promise;
+ public createSlate(request: google.cloud.video.stitcher.v1.ICreateSlateRequest): Promise;
/**
* Calls ListSlates.
@@ -3445,7 +4014,7 @@ export namespace google {
/**
* Calls UpdateSlate.
* @param request UpdateSlateRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and Slate
+ * @param callback Node-style callback called with the error, if any, and Operation
*/
public updateSlate(request: google.cloud.video.stitcher.v1.IUpdateSlateRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.UpdateSlateCallback): void;
@@ -3454,12 +4023,12 @@ export namespace google {
* @param request UpdateSlateRequest message or plain object
* @returns Promise
*/
- public updateSlate(request: google.cloud.video.stitcher.v1.IUpdateSlateRequest): Promise;
+ public updateSlate(request: google.cloud.video.stitcher.v1.IUpdateSlateRequest): Promise;
/**
* Calls DeleteSlate.
* @param request DeleteSlateRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and Empty
+ * @param callback Node-style callback called with the error, if any, and Operation
*/
public deleteSlate(request: google.cloud.video.stitcher.v1.IDeleteSlateRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.DeleteSlateCallback): void;
@@ -3468,7 +4037,7 @@ export namespace google {
* @param request DeleteSlateRequest message or plain object
* @returns Promise
*/
- public deleteSlate(request: google.cloud.video.stitcher.v1.IDeleteSlateRequest): Promise;
+ public deleteSlate(request: google.cloud.video.stitcher.v1.IDeleteSlateRequest): Promise;
/**
* Calls CreateLiveSession.
@@ -3497,6 +4066,62 @@ export namespace google {
* @returns Promise
*/
public getLiveSession(request: google.cloud.video.stitcher.v1.IGetLiveSessionRequest): Promise;
+
+ /**
+ * Calls CreateLiveConfig.
+ * @param request CreateLiveConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createLiveConfig(request: google.cloud.video.stitcher.v1.ICreateLiveConfigRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.CreateLiveConfigCallback): void;
+
+ /**
+ * Calls CreateLiveConfig.
+ * @param request CreateLiveConfigRequest message or plain object
+ * @returns Promise
+ */
+ public createLiveConfig(request: google.cloud.video.stitcher.v1.ICreateLiveConfigRequest): Promise;
+
+ /**
+ * Calls ListLiveConfigs.
+ * @param request ListLiveConfigsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListLiveConfigsResponse
+ */
+ public listLiveConfigs(request: google.cloud.video.stitcher.v1.IListLiveConfigsRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.ListLiveConfigsCallback): void;
+
+ /**
+ * Calls ListLiveConfigs.
+ * @param request ListLiveConfigsRequest message or plain object
+ * @returns Promise
+ */
+ public listLiveConfigs(request: google.cloud.video.stitcher.v1.IListLiveConfigsRequest): Promise;
+
+ /**
+ * Calls GetLiveConfig.
+ * @param request GetLiveConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and LiveConfig
+ */
+ public getLiveConfig(request: google.cloud.video.stitcher.v1.IGetLiveConfigRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveConfigCallback): void;
+
+ /**
+ * Calls GetLiveConfig.
+ * @param request GetLiveConfigRequest message or plain object
+ * @returns Promise
+ */
+ public getLiveConfig(request: google.cloud.video.stitcher.v1.IGetLiveConfigRequest): Promise;
+
+ /**
+ * Calls DeleteLiveConfig.
+ * @param request DeleteLiveConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteLiveConfig(request: google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest, callback: google.cloud.video.stitcher.v1.VideoStitcherService.DeleteLiveConfigCallback): void;
+
+ /**
+ * Calls DeleteLiveConfig.
+ * @param request DeleteLiveConfigRequest message or plain object
+ * @returns Promise
+ */
+ public deleteLiveConfig(request: google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest): Promise;
}
namespace VideoStitcherService {
@@ -3504,9 +4129,9 @@ export namespace google {
/**
* Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createCdnKey}.
* @param error Error, if any
- * @param [response] CdnKey
+ * @param [response] Operation
*/
- type CreateCdnKeyCallback = (error: (Error|null), response?: google.cloud.video.stitcher.v1.CdnKey) => void;
+ type CreateCdnKeyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listCdnKeys}.
@@ -3525,16 +4150,16 @@ export namespace google {
/**
* Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteCdnKey}.
* @param error Error, if any
- * @param [response] Empty
+ * @param [response] Operation
*/
- type DeleteCdnKeyCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+ type DeleteCdnKeyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|updateCdnKey}.
* @param error Error, if any
- * @param [response] CdnKey
+ * @param [response] Operation
*/
- type UpdateCdnKeyCallback = (error: (Error|null), response?: google.cloud.video.stitcher.v1.CdnKey) => void;
+ type UpdateCdnKeyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createVodSession}.
@@ -3595,9 +4220,9 @@ export namespace google {
/**
* Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createSlate}.
* @param error Error, if any
- * @param [response] Slate
+ * @param [response] Operation
*/
- type CreateSlateCallback = (error: (Error|null), response?: google.cloud.video.stitcher.v1.Slate) => void;
+ type CreateSlateCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listSlates}.
@@ -3616,16 +4241,16 @@ export namespace google {
/**
* Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|updateSlate}.
* @param error Error, if any
- * @param [response] Slate
+ * @param [response] Operation
*/
- type UpdateSlateCallback = (error: (Error|null), response?: google.cloud.video.stitcher.v1.Slate) => void;
+ type UpdateSlateCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteSlate}.
* @param error Error, if any
- * @param [response] Empty
+ * @param [response] Operation
*/
- type DeleteSlateCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+ type DeleteSlateCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createLiveSession}.
@@ -3640,6 +4265,34 @@ export namespace google {
* @param [response] LiveSession
*/
type GetLiveSessionCallback = (error: (Error|null), response?: google.cloud.video.stitcher.v1.LiveSession) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createLiveConfig}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateLiveConfigCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listLiveConfigs}.
+ * @param error Error, if any
+ * @param [response] ListLiveConfigsResponse
+ */
+ type ListLiveConfigsCallback = (error: (Error|null), response?: google.cloud.video.stitcher.v1.ListLiveConfigsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getLiveConfig}.
+ * @param error Error, if any
+ * @param [response] LiveConfig
+ */
+ type GetLiveConfigCallback = (error: (Error|null), response?: google.cloud.video.stitcher.v1.LiveConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteLiveConfig}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteLiveConfigCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
}
/** Properties of a CreateCdnKeyRequest. */
@@ -5416,6 +6069,9 @@ export namespace google {
/** CreateSlateRequest slate */
slate?: (google.cloud.video.stitcher.v1.ISlate|null);
+
+ /** CreateSlateRequest requestId */
+ requestId?: (string|null);
}
/** Represents a CreateSlateRequest. */
@@ -5436,6 +6092,9 @@ export namespace google {
/** CreateSlateRequest slate. */
public slate?: (google.cloud.video.stitcher.v1.ISlate|null);
+ /** CreateSlateRequest requestId. */
+ public requestId: string;
+
/**
* Creates a new CreateSlateRequest instance using the specified properties.
* @param [properties] Properties to set
@@ -6240,4599 +6899,6547 @@ export namespace google {
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- }
- }
- }
- }
- /** Namespace api. */
- namespace api {
+ /** Properties of a CreateLiveConfigRequest. */
+ interface ICreateLiveConfigRequest {
- /** Properties of a ResourceDescriptor. */
- interface IResourceDescriptor {
+ /** CreateLiveConfigRequest parent */
+ parent?: (string|null);
- /** ResourceDescriptor type */
- type?: (string|null);
+ /** CreateLiveConfigRequest liveConfigId */
+ liveConfigId?: (string|null);
- /** ResourceDescriptor pattern */
- pattern?: (string[]|null);
+ /** CreateLiveConfigRequest liveConfig */
+ liveConfig?: (google.cloud.video.stitcher.v1.ILiveConfig|null);
- /** ResourceDescriptor nameField */
- nameField?: (string|null);
+ /** CreateLiveConfigRequest requestId */
+ requestId?: (string|null);
+ }
- /** ResourceDescriptor history */
- history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+ /** Represents a CreateLiveConfigRequest. */
+ class CreateLiveConfigRequest implements ICreateLiveConfigRequest {
- /** ResourceDescriptor plural */
- plural?: (string|null);
+ /**
+ * Constructs a new CreateLiveConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.video.stitcher.v1.ICreateLiveConfigRequest);
- /** ResourceDescriptor singular */
- singular?: (string|null);
+ /** CreateLiveConfigRequest parent. */
+ public parent: string;
- /** ResourceDescriptor style */
- style?: (google.api.ResourceDescriptor.Style[]|null);
- }
+ /** CreateLiveConfigRequest liveConfigId. */
+ public liveConfigId: string;
- /** Represents a ResourceDescriptor. */
- class ResourceDescriptor implements IResourceDescriptor {
+ /** CreateLiveConfigRequest liveConfig. */
+ public liveConfig?: (google.cloud.video.stitcher.v1.ILiveConfig|null);
- /**
- * Constructs a new ResourceDescriptor.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.api.IResourceDescriptor);
+ /** CreateLiveConfigRequest requestId. */
+ public requestId: string;
- /** ResourceDescriptor type. */
- public type: string;
+ /**
+ * Creates a new CreateLiveConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateLiveConfigRequest instance
+ */
+ public static create(properties?: google.cloud.video.stitcher.v1.ICreateLiveConfigRequest): google.cloud.video.stitcher.v1.CreateLiveConfigRequest;
- /** ResourceDescriptor pattern. */
- public pattern: string[];
+ /**
+ * Encodes the specified CreateLiveConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateLiveConfigRequest.verify|verify} messages.
+ * @param message CreateLiveConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.video.stitcher.v1.ICreateLiveConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
- /** ResourceDescriptor nameField. */
- public nameField: string;
+ /**
+ * Encodes the specified CreateLiveConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateLiveConfigRequest.verify|verify} messages.
+ * @param message CreateLiveConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.video.stitcher.v1.ICreateLiveConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
- /** ResourceDescriptor history. */
- public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+ /**
+ * Decodes a CreateLiveConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateLiveConfigRequest
+ * @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.CreateLiveConfigRequest;
- /** ResourceDescriptor plural. */
- public plural: string;
+ /**
+ * Decodes a CreateLiveConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateLiveConfigRequest
+ * @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.CreateLiveConfigRequest;
- /** ResourceDescriptor singular. */
- public singular: string;
+ /**
+ * Verifies a CreateLiveConfigRequest 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);
- /** ResourceDescriptor style. */
- public style: google.api.ResourceDescriptor.Style[];
+ /**
+ * Creates a CreateLiveConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateLiveConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.CreateLiveConfigRequest;
- /**
- * Creates a new ResourceDescriptor instance using the specified properties.
- * @param [properties] Properties to set
- * @returns ResourceDescriptor instance
- */
- public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+ /**
+ * Creates a plain object from a CreateLiveConfigRequest message. Also converts values to other types if specified.
+ * @param message CreateLiveConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.CreateLiveConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
- /**
- * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
- * @param message ResourceDescriptor message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+ /**
+ * Converts this CreateLiveConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
- * @param message ResourceDescriptor message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+ /**
+ * Gets the default type url for CreateLiveConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
- /**
- * Decodes a ResourceDescriptor message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns ResourceDescriptor
+ /** Properties of a ListLiveConfigsRequest. */
+ interface IListLiveConfigsRequest {
+
+ /** ListLiveConfigsRequest parent */
+ parent?: (string|null);
+
+ /** ListLiveConfigsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListLiveConfigsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListLiveConfigsRequest filter */
+ filter?: (string|null);
+
+ /** ListLiveConfigsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListLiveConfigsRequest. */
+ class ListLiveConfigsRequest implements IListLiveConfigsRequest {
+
+ /**
+ * Constructs a new ListLiveConfigsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.video.stitcher.v1.IListLiveConfigsRequest);
+
+ /** ListLiveConfigsRequest parent. */
+ public parent: string;
+
+ /** ListLiveConfigsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListLiveConfigsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListLiveConfigsRequest filter. */
+ public filter: string;
+
+ /** ListLiveConfigsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListLiveConfigsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListLiveConfigsRequest instance
+ */
+ public static create(properties?: google.cloud.video.stitcher.v1.IListLiveConfigsRequest): google.cloud.video.stitcher.v1.ListLiveConfigsRequest;
+
+ /**
+ * Encodes the specified ListLiveConfigsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsRequest.verify|verify} messages.
+ * @param message ListLiveConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.video.stitcher.v1.IListLiveConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListLiveConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsRequest.verify|verify} messages.
+ * @param message ListLiveConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IListLiveConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListLiveConfigsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListLiveConfigsRequest
+ * @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.ListLiveConfigsRequest;
+
+ /**
+ * Decodes a ListLiveConfigsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListLiveConfigsRequest
+ * @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.ListLiveConfigsRequest;
+
+ /**
+ * Verifies a ListLiveConfigsRequest 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 ListLiveConfigsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListLiveConfigsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.ListLiveConfigsRequest;
+
+ /**
+ * Creates a plain object from a ListLiveConfigsRequest message. Also converts values to other types if specified.
+ * @param message ListLiveConfigsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.ListLiveConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListLiveConfigsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListLiveConfigsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListLiveConfigsResponse. */
+ interface IListLiveConfigsResponse {
+
+ /** ListLiveConfigsResponse liveConfigs */
+ liveConfigs?: (google.cloud.video.stitcher.v1.ILiveConfig[]|null);
+
+ /** ListLiveConfigsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListLiveConfigsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListLiveConfigsResponse. */
+ class ListLiveConfigsResponse implements IListLiveConfigsResponse {
+
+ /**
+ * Constructs a new ListLiveConfigsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.video.stitcher.v1.IListLiveConfigsResponse);
+
+ /** ListLiveConfigsResponse liveConfigs. */
+ public liveConfigs: google.cloud.video.stitcher.v1.ILiveConfig[];
+
+ /** ListLiveConfigsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListLiveConfigsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListLiveConfigsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListLiveConfigsResponse instance
+ */
+ public static create(properties?: google.cloud.video.stitcher.v1.IListLiveConfigsResponse): google.cloud.video.stitcher.v1.ListLiveConfigsResponse;
+
+ /**
+ * Encodes the specified ListLiveConfigsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsResponse.verify|verify} messages.
+ * @param message ListLiveConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.video.stitcher.v1.IListLiveConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListLiveConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveConfigsResponse.verify|verify} messages.
+ * @param message ListLiveConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IListLiveConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListLiveConfigsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListLiveConfigsResponse
+ * @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.ListLiveConfigsResponse;
+
+ /**
+ * Decodes a ListLiveConfigsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListLiveConfigsResponse
+ * @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.ListLiveConfigsResponse;
+
+ /**
+ * Verifies a ListLiveConfigsResponse 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 ListLiveConfigsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListLiveConfigsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.ListLiveConfigsResponse;
+
+ /**
+ * Creates a plain object from a ListLiveConfigsResponse message. Also converts values to other types if specified.
+ * @param message ListLiveConfigsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.ListLiveConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListLiveConfigsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListLiveConfigsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetLiveConfigRequest. */
+ interface IGetLiveConfigRequest {
+
+ /** GetLiveConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetLiveConfigRequest. */
+ class GetLiveConfigRequest implements IGetLiveConfigRequest {
+
+ /**
+ * Constructs a new GetLiveConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.video.stitcher.v1.IGetLiveConfigRequest);
+
+ /** GetLiveConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetLiveConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetLiveConfigRequest instance
+ */
+ public static create(properties?: google.cloud.video.stitcher.v1.IGetLiveConfigRequest): google.cloud.video.stitcher.v1.GetLiveConfigRequest;
+
+ /**
+ * Encodes the specified GetLiveConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveConfigRequest.verify|verify} messages.
+ * @param message GetLiveConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.video.stitcher.v1.IGetLiveConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetLiveConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetLiveConfigRequest.verify|verify} messages.
+ * @param message GetLiveConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IGetLiveConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetLiveConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetLiveConfigRequest
+ * @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.GetLiveConfigRequest;
+
+ /**
+ * Decodes a GetLiveConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetLiveConfigRequest
+ * @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.GetLiveConfigRequest;
+
+ /**
+ * Verifies a GetLiveConfigRequest 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 GetLiveConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetLiveConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.GetLiveConfigRequest;
+
+ /**
+ * Creates a plain object from a GetLiveConfigRequest message. Also converts values to other types if specified.
+ * @param message GetLiveConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.GetLiveConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetLiveConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetLiveConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteLiveConfigRequest. */
+ interface IDeleteLiveConfigRequest {
+
+ /** DeleteLiveConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteLiveConfigRequest. */
+ class DeleteLiveConfigRequest implements IDeleteLiveConfigRequest {
+
+ /**
+ * Constructs a new DeleteLiveConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest);
+
+ /** DeleteLiveConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteLiveConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteLiveConfigRequest instance
+ */
+ public static create(properties?: google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest): google.cloud.video.stitcher.v1.DeleteLiveConfigRequest;
+
+ /**
+ * Encodes the specified DeleteLiveConfigRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteLiveConfigRequest.verify|verify} messages.
+ * @param message DeleteLiveConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteLiveConfigRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteLiveConfigRequest.verify|verify} messages.
+ * @param message DeleteLiveConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.video.stitcher.v1.IDeleteLiveConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteLiveConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteLiveConfigRequest
+ * @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.DeleteLiveConfigRequest;
+
+ /**
+ * Decodes a DeleteLiveConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteLiveConfigRequest
+ * @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.DeleteLiveConfigRequest;
+
+ /**
+ * Verifies a DeleteLiveConfigRequest 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 DeleteLiveConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteLiveConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.DeleteLiveConfigRequest;
+
+ /**
+ * Creates a plain object from a DeleteLiveConfigRequest message. Also converts values to other types if specified.
+ * @param message DeleteLiveConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.DeleteLiveConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteLiveConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteLiveConfigRequest
+ * @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.
+ * @param reader Reader or buffer to decode from
+ * @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 decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.stitcher.v1.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata 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 OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.video.stitcher.v1.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.video.stitcher.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @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.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @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.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor 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 ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @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.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @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.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference 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 ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @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.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @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.api.Http;
+
+ /**
+ * Verifies a Http 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 Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @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.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @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.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule 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 HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @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.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @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.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @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.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @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.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (string|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: string;
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @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.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @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.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @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.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @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.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto 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 DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @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.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @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.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange 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 ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @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.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @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.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange 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 ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
* @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.api.ResourceDescriptor;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
/**
- * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns ResourceDescriptor
+ * @returns ExtensionRangeOptions
* @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.api.ResourceDescriptor;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
/**
- * Verifies a ResourceDescriptor message.
+ * Verifies an ExtensionRangeOptions 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 ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ResourceDescriptor
+ * @returns ExtensionRangeOptions
*/
- public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
/**
- * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
- * @param message ResourceDescriptor
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ResourceDescriptor to JSON.
+ * Converts this ExtensionRangeOptions to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ResourceDescriptor
+ * Gets the default type url for ExtensionRangeOptions
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace ResourceDescriptor {
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
- /** History enum. */
- enum History {
- HISTORY_UNSPECIFIED = 0,
- ORIGINALLY_SINGLE_PATTERN = 1,
- FUTURE_MULTI_PATTERN = 2
- }
+ /** FieldDescriptorProto name */
+ name?: (string|null);
- /** Style enum. */
- enum Style {
- STYLE_UNSPECIFIED = 0,
- DECLARATIVE_FRIENDLY = 1
- }
- }
+ /** FieldDescriptorProto number */
+ number?: (number|null);
- /** Properties of a ResourceReference. */
- interface IResourceReference {
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
- /** ResourceReference type */
- type?: (string|null);
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
- /** ResourceReference childType */
- childType?: (string|null);
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
}
- /** Represents a ResourceReference. */
- class ResourceReference implements IResourceReference {
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
/**
- * Constructs a new ResourceReference.
+ * Constructs a new FieldDescriptorProto.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IResourceReference);
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
- /** ResourceReference type. */
- public type: string;
+ /** FieldDescriptorProto name. */
+ public name: string;
- /** ResourceReference childType. */
- public childType: string;
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
/**
- * Creates a new ResourceReference instance using the specified properties.
+ * Creates a new FieldDescriptorProto instance using the specified properties.
* @param [properties] Properties to set
- * @returns ResourceReference instance
+ * @returns FieldDescriptorProto instance
*/
- public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
/**
- * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
- * @param message ResourceReference message or plain object to encode
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
- * @param message ResourceReference message or plain object to encode
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a ResourceReference message from the specified reader or buffer.
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns ResourceReference
+ * @returns FieldDescriptorProto
* @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.api.ResourceReference;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
/**
- * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns ResourceReference
+ * @returns FieldDescriptorProto
* @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.api.ResourceReference;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
/**
- * Verifies a ResourceReference message.
+ * Verifies a FieldDescriptorProto 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 ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ResourceReference
+ * @returns FieldDescriptorProto
*/
- public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
/**
- * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
- * @param message ResourceReference
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ResourceReference to JSON.
+ * Converts this FieldDescriptorProto to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ResourceReference
+ * Gets the default type url for FieldDescriptorProto
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** FieldBehavior enum. */
- enum FieldBehavior {
- FIELD_BEHAVIOR_UNSPECIFIED = 0,
- OPTIONAL = 1,
- REQUIRED = 2,
- OUTPUT_ONLY = 3,
- INPUT_ONLY = 4,
- IMMUTABLE = 5,
- UNORDERED_LIST = 6,
- NON_EMPTY_DEFAULT = 7
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
}
- /** Properties of a Http. */
- interface IHttp {
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
- /** Http rules */
- rules?: (google.api.IHttpRule[]|null);
+ /** OneofDescriptorProto name */
+ name?: (string|null);
- /** Http fullyDecodeReservedExpansion */
- fullyDecodeReservedExpansion?: (boolean|null);
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
}
- /** Represents a Http. */
- class Http implements IHttp {
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
/**
- * Constructs a new Http.
+ * Constructs a new OneofDescriptorProto.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IHttp);
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
- /** Http rules. */
- public rules: google.api.IHttpRule[];
+ /** OneofDescriptorProto name. */
+ public name: string;
- /** Http fullyDecodeReservedExpansion. */
- public fullyDecodeReservedExpansion: boolean;
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
/**
- * Creates a new Http instance using the specified properties.
+ * Creates a new OneofDescriptorProto instance using the specified properties.
* @param [properties] Properties to set
- * @returns Http instance
+ * @returns OneofDescriptorProto instance
*/
- public static create(properties?: google.api.IHttp): google.api.Http;
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
/**
- * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
- * @param message Http message or plain object to encode
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
- * @param message Http message or plain object to encode
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a Http message from the specified reader or buffer.
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns Http
+ * @returns OneofDescriptorProto
* @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.api.Http;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
/**
- * Decodes a Http message from the specified reader or buffer, length delimited.
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns Http
+ * @returns OneofDescriptorProto
* @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.api.Http;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
/**
- * Verifies a Http message.
+ * Verifies an OneofDescriptorProto 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 Http message from a plain object. Also converts values to their respective internal types.
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Http
+ * @returns OneofDescriptorProto
*/
- public static fromObject(object: { [k: string]: any }): google.api.Http;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
/**
- * Creates a plain object from a Http message. Also converts values to other types if specified.
- * @param message Http
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Http to JSON.
+ * Converts this OneofDescriptorProto to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Http
+ * Gets the default type url for OneofDescriptorProto
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a HttpRule. */
- interface IHttpRule {
-
- /** HttpRule selector */
- selector?: (string|null);
-
- /** HttpRule get */
- get?: (string|null);
-
- /** HttpRule put */
- put?: (string|null);
-
- /** HttpRule post */
- post?: (string|null);
-
- /** HttpRule delete */
- "delete"?: (string|null);
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
- /** HttpRule patch */
- patch?: (string|null);
+ /** EnumDescriptorProto name */
+ name?: (string|null);
- /** HttpRule custom */
- custom?: (google.api.ICustomHttpPattern|null);
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
- /** HttpRule body */
- body?: (string|null);
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
- /** HttpRule responseBody */
- responseBody?: (string|null);
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
- /** HttpRule additionalBindings */
- additionalBindings?: (google.api.IHttpRule[]|null);
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
}
- /** Represents a HttpRule. */
- class HttpRule implements IHttpRule {
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
/**
- * Constructs a new HttpRule.
+ * Constructs a new EnumDescriptorProto.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IHttpRule);
-
- /** HttpRule selector. */
- public selector: string;
-
- /** HttpRule get. */
- public get?: (string|null);
-
- /** HttpRule put. */
- public put?: (string|null);
-
- /** HttpRule post. */
- public post?: (string|null);
-
- /** HttpRule delete. */
- public delete?: (string|null);
-
- /** HttpRule patch. */
- public patch?: (string|null);
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
- /** HttpRule custom. */
- public custom?: (google.api.ICustomHttpPattern|null);
+ /** EnumDescriptorProto name. */
+ public name: string;
- /** HttpRule body. */
- public body: string;
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
- /** HttpRule responseBody. */
- public responseBody: string;
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
- /** HttpRule additionalBindings. */
- public additionalBindings: google.api.IHttpRule[];
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
- /** HttpRule pattern. */
- public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
/**
- * Creates a new HttpRule instance using the specified properties.
+ * Creates a new EnumDescriptorProto instance using the specified properties.
* @param [properties] Properties to set
- * @returns HttpRule instance
+ * @returns EnumDescriptorProto instance
*/
- public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
/**
- * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
- * @param message HttpRule message or plain object to encode
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
- * @param message HttpRule message or plain object to encode
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a HttpRule message from the specified reader or buffer.
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns HttpRule
+ * @returns EnumDescriptorProto
* @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.api.HttpRule;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
/**
- * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns HttpRule
+ * @returns EnumDescriptorProto
* @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.api.HttpRule;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
/**
- * Verifies a HttpRule message.
+ * Verifies an EnumDescriptorProto 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 HttpRule message from a plain object. Also converts values to their respective internal types.
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns HttpRule
+ * @returns EnumDescriptorProto
*/
- public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
/**
- * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
- * @param message HttpRule
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this HttpRule to JSON.
+ * Converts this EnumDescriptorProto to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for HttpRule
+ * Gets the default type url for EnumDescriptorProto
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a CustomHttpPattern. */
- interface ICustomHttpPattern {
+ namespace EnumDescriptorProto {
- /** CustomHttpPattern kind */
- kind?: (string|null);
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
- /** CustomHttpPattern path */
- path?: (string|null);
- }
+ /** EnumReservedRange start */
+ start?: (number|null);
- /** Represents a CustomHttpPattern. */
- class CustomHttpPattern implements ICustomHttpPattern {
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
- /**
- * Constructs a new CustomHttpPattern.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.api.ICustomHttpPattern);
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
- /** CustomHttpPattern kind. */
- public kind: string;
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
- /** CustomHttpPattern path. */
- public path: string;
+ /** EnumReservedRange start. */
+ public start: number;
- /**
- * Creates a new CustomHttpPattern instance using the specified properties.
- * @param [properties] Properties to set
- * @returns CustomHttpPattern instance
- */
- public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+ /** EnumReservedRange end. */
+ public end: number;
- /**
- * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
- * @param message CustomHttpPattern message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
- /**
- * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
- * @param message CustomHttpPattern message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
- /**
- * Decodes a CustomHttpPattern message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns CustomHttpPattern
- * @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.api.CustomHttpPattern;
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
- /**
- * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns CustomHttpPattern
- * @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.api.CustomHttpPattern;
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @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.protobuf.EnumDescriptorProto.EnumReservedRange;
- /**
- * Verifies a CustomHttpPattern 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);
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @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.protobuf.EnumDescriptorProto.EnumReservedRange;
- /**
- * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns CustomHttpPattern
- */
- public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+ /**
+ * Verifies an EnumReservedRange 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 plain object from a CustomHttpPattern message. Also converts values to other types if specified.
- * @param message CustomHttpPattern
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
- /**
- * Converts this CustomHttpPattern to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
- /**
- * Gets the default type url for CustomHttpPattern
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
}
- }
- /** Namespace protobuf. */
- namespace protobuf {
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
- /** Properties of a FileDescriptorSet. */
- interface IFileDescriptorSet {
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
- /** FileDescriptorSet file */
- file?: (google.protobuf.IFileDescriptorProto[]|null);
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
}
- /** Represents a FileDescriptorSet. */
- class FileDescriptorSet implements IFileDescriptorSet {
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
/**
- * Constructs a new FileDescriptorSet.
+ * Constructs a new EnumValueDescriptorProto.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IFileDescriptorSet);
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
- /** FileDescriptorSet file. */
- public file: google.protobuf.IFileDescriptorProto[];
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
/**
- * Creates a new FileDescriptorSet instance using the specified properties.
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
* @param [properties] Properties to set
- * @returns FileDescriptorSet instance
+ * @returns EnumValueDescriptorProto instance
*/
- public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
/**
- * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
- * @param message FileDescriptorSet message or plain object to encode
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
- * @param message FileDescriptorSet message or plain object to encode
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns FileDescriptorSet
+ * @returns EnumValueDescriptorProto
* @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.protobuf.FileDescriptorSet;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
/**
- * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns FileDescriptorSet
+ * @returns EnumValueDescriptorProto
* @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.protobuf.FileDescriptorSet;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
/**
- * Verifies a FileDescriptorSet message.
+ * Verifies an EnumValueDescriptorProto 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns FileDescriptorSet
+ * @returns EnumValueDescriptorProto
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
/**
- * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
- * @param message FileDescriptorSet
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this FileDescriptorSet to JSON.
+ * Converts this EnumValueDescriptorProto to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for FileDescriptorSet
+ * Gets the default type url for EnumValueDescriptorProto
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a FileDescriptorProto. */
- interface IFileDescriptorProto {
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
- /** FileDescriptorProto name */
+ /** ServiceDescriptorProto name */
name?: (string|null);
- /** FileDescriptorProto package */
- "package"?: (string|null);
-
- /** FileDescriptorProto dependency */
- dependency?: (string[]|null);
-
- /** FileDescriptorProto publicDependency */
- publicDependency?: (number[]|null);
-
- /** FileDescriptorProto weakDependency */
- weakDependency?: (number[]|null);
-
- /** FileDescriptorProto messageType */
- messageType?: (google.protobuf.IDescriptorProto[]|null);
-
- /** FileDescriptorProto enumType */
- enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
-
- /** FileDescriptorProto service */
- service?: (google.protobuf.IServiceDescriptorProto[]|null);
-
- /** FileDescriptorProto extension */
- extension?: (google.protobuf.IFieldDescriptorProto[]|null);
-
- /** FileDescriptorProto options */
- options?: (google.protobuf.IFileOptions|null);
-
- /** FileDescriptorProto sourceCodeInfo */
- sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
-
- /** FileDescriptorProto syntax */
- syntax?: (string|null);
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
- /** FileDescriptorProto edition */
- edition?: (string|null);
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
}
- /** Represents a FileDescriptorProto. */
- class FileDescriptorProto implements IFileDescriptorProto {
-
- /**
- * Constructs a new FileDescriptorProto.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFileDescriptorProto);
-
- /** FileDescriptorProto name. */
- public name: string;
-
- /** FileDescriptorProto package. */
- public package: string;
-
- /** FileDescriptorProto dependency. */
- public dependency: string[];
-
- /** FileDescriptorProto publicDependency. */
- public publicDependency: number[];
-
- /** FileDescriptorProto weakDependency. */
- public weakDependency: number[];
-
- /** FileDescriptorProto messageType. */
- public messageType: google.protobuf.IDescriptorProto[];
-
- /** FileDescriptorProto enumType. */
- public enumType: google.protobuf.IEnumDescriptorProto[];
-
- /** FileDescriptorProto service. */
- public service: google.protobuf.IServiceDescriptorProto[];
-
- /** FileDescriptorProto extension. */
- public extension: google.protobuf.IFieldDescriptorProto[];
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
- /** FileDescriptorProto options. */
- public options?: (google.protobuf.IFileOptions|null);
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
- /** FileDescriptorProto sourceCodeInfo. */
- public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+ /** ServiceDescriptorProto name. */
+ public name: string;
- /** FileDescriptorProto syntax. */
- public syntax: string;
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
- /** FileDescriptorProto edition. */
- public edition: string;
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
/**
- * Creates a new FileDescriptorProto instance using the specified properties.
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
* @param [properties] Properties to set
- * @returns FileDescriptorProto instance
+ * @returns ServiceDescriptorProto instance
*/
- public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
/**
- * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
- * @param message FileDescriptorProto message or plain object to encode
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
- * @param message FileDescriptorProto message or plain object to encode
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns FileDescriptorProto
+ * @returns ServiceDescriptorProto
* @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.protobuf.FileDescriptorProto;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
/**
- * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns FileDescriptorProto
+ * @returns ServiceDescriptorProto
* @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.protobuf.FileDescriptorProto;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
/**
- * Verifies a FileDescriptorProto message.
+ * Verifies a ServiceDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns FileDescriptorProto
+ * @returns ServiceDescriptorProto
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
/**
- * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
- * @param message FileDescriptorProto
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this FileDescriptorProto to JSON.
+ * Converts this ServiceDescriptorProto to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for FileDescriptorProto
+ * Gets the default type url for ServiceDescriptorProto
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a DescriptorProto. */
- interface IDescriptorProto {
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
- /** DescriptorProto name */
+ /** MethodDescriptorProto name */
name?: (string|null);
- /** DescriptorProto field */
- field?: (google.protobuf.IFieldDescriptorProto[]|null);
-
- /** DescriptorProto extension */
- extension?: (google.protobuf.IFieldDescriptorProto[]|null);
-
- /** DescriptorProto nestedType */
- nestedType?: (google.protobuf.IDescriptorProto[]|null);
-
- /** DescriptorProto enumType */
- enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
-
- /** DescriptorProto extensionRange */
- extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
- /** DescriptorProto oneofDecl */
- oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
- /** DescriptorProto options */
- options?: (google.protobuf.IMessageOptions|null);
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
- /** DescriptorProto reservedRange */
- reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
- /** DescriptorProto reservedName */
- reservedName?: (string[]|null);
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
}
- /** Represents a DescriptorProto. */
- class DescriptorProto implements IDescriptorProto {
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
/**
- * Constructs a new DescriptorProto.
+ * Constructs a new MethodDescriptorProto.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IDescriptorProto);
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
- /** DescriptorProto name. */
+ /** MethodDescriptorProto name. */
public name: string;
- /** DescriptorProto field. */
- public field: google.protobuf.IFieldDescriptorProto[];
-
- /** DescriptorProto extension. */
- public extension: google.protobuf.IFieldDescriptorProto[];
-
- /** DescriptorProto nestedType. */
- public nestedType: google.protobuf.IDescriptorProto[];
-
- /** DescriptorProto enumType. */
- public enumType: google.protobuf.IEnumDescriptorProto[];
-
- /** DescriptorProto extensionRange. */
- public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
- /** DescriptorProto oneofDecl. */
- public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
- /** DescriptorProto options. */
- public options?: (google.protobuf.IMessageOptions|null);
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
- /** DescriptorProto reservedRange. */
- public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
- /** DescriptorProto reservedName. */
- public reservedName: string[];
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
/**
- * Creates a new DescriptorProto instance using the specified properties.
+ * Creates a new MethodDescriptorProto instance using the specified properties.
* @param [properties] Properties to set
- * @returns DescriptorProto instance
+ * @returns MethodDescriptorProto instance
*/
- public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
/**
- * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
- * @param message DescriptorProto message or plain object to encode
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
- * @param message DescriptorProto message or plain object to encode
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a DescriptorProto message from the specified reader or buffer.
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns DescriptorProto
+ * @returns MethodDescriptorProto
* @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.protobuf.DescriptorProto;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @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.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions phpGenericServices */
+ phpGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
- /**
- * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns DescriptorProto
- * @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.protobuf.DescriptorProto;
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
- /**
- * Verifies a DescriptorProto 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);
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
- /**
- * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns DescriptorProto
- */
- public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
- /**
- * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
- * @param message DescriptorProto
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
- /**
- * Converts this DescriptorProto to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
- /**
- * Gets the default type url for DescriptorProto
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
- namespace DescriptorProto {
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
- /** Properties of an ExtensionRange. */
- interface IExtensionRange {
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
- /** ExtensionRange start */
- start?: (number|null);
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
- /** ExtensionRange end */
- end?: (number|null);
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
- /** ExtensionRange options */
- options?: (google.protobuf.IExtensionRangeOptions|null);
- }
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
- /** Represents an ExtensionRange. */
- class ExtensionRange implements IExtensionRange {
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
- /**
- * Constructs a new ExtensionRange.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
- /** ExtensionRange start. */
- public start: number;
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
- /** ExtensionRange end. */
- public end: number;
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
- /** ExtensionRange options. */
- public options?: (google.protobuf.IExtensionRangeOptions|null);
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
- /**
- * Creates a new ExtensionRange instance using the specified properties.
- * @param [properties] Properties to set
- * @returns ExtensionRange instance
- */
- public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
- /**
- * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
- * @param message ExtensionRange message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
- /**
- * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
- * @param message ExtensionRange message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+ /** FileOptions goPackage. */
+ public goPackage: string;
- /**
- * Decodes an ExtensionRange message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns ExtensionRange
- * @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.protobuf.DescriptorProto.ExtensionRange;
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
- /**
- * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns ExtensionRange
- * @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.protobuf.DescriptorProto.ExtensionRange;
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
- /**
- * Verifies an ExtensionRange 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);
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
- /**
- * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns ExtensionRange
- */
- public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+ /** FileOptions phpGenericServices. */
+ public phpGenericServices: boolean;
- /**
- * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
- * @param message ExtensionRange
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
- /**
- * Converts this ExtensionRange to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
- /**
- * Gets the default type url for ExtensionRange
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
- /** Properties of a ReservedRange. */
- interface IReservedRange {
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
- /** ReservedRange start */
- start?: (number|null);
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
- /** ReservedRange end */
- end?: (number|null);
- }
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
- /** Represents a ReservedRange. */
- class ReservedRange implements IReservedRange {
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
- /**
- * Constructs a new ReservedRange.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
- /** ReservedRange start. */
- public start: number;
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
- /** ReservedRange end. */
- public end: number;
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
- /**
- * Creates a new ReservedRange instance using the specified properties.
- * @param [properties] Properties to set
- * @returns ReservedRange instance
- */
- public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
- /**
- * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
- * @param message ReservedRange message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @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.protobuf.FileOptions;
- /**
- * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
- * @param message ReservedRange message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @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.protobuf.FileOptions;
- /**
- * Decodes a ReservedRange message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns ReservedRange
- * @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.protobuf.DescriptorProto.ReservedRange;
+ /**
+ * Verifies a FileOptions 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);
- /**
- * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns ReservedRange
- * @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.protobuf.DescriptorProto.ReservedRange;
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
- /**
- * Verifies a ReservedRange 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 plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
- /**
- * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns ReservedRange
- */
- public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
- * @param message ReservedRange
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
- /**
- * Converts this ReservedRange to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ namespace FileOptions {
- /**
- * Gets the default type url for ReservedRange
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
}
}
- /** Properties of an ExtensionRangeOptions. */
- interface IExtensionRangeOptions {
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
- /** ExtensionRangeOptions uninterpretedOption */
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions uninterpretedOption */
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
}
- /** Represents an ExtensionRangeOptions. */
- class ExtensionRangeOptions implements IExtensionRangeOptions {
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
/**
- * Constructs a new ExtensionRangeOptions.
+ * Constructs a new MessageOptions.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IExtensionRangeOptions);
+ constructor(properties?: google.protobuf.IMessageOptions);
- /** ExtensionRangeOptions uninterpretedOption. */
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions uninterpretedOption. */
public uninterpretedOption: google.protobuf.IUninterpretedOption[];
/**
- * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * Creates a new MessageOptions instance using the specified properties.
* @param [properties] Properties to set
- * @returns ExtensionRangeOptions instance
+ * @returns MessageOptions instance
*/
- public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
/**
- * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
- * @param message ExtensionRangeOptions message or plain object to encode
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
- * @param message ExtensionRangeOptions message or plain object to encode
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * Decodes a MessageOptions message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns ExtensionRangeOptions
+ * @returns MessageOptions
* @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.protobuf.ExtensionRangeOptions;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
/**
- * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns ExtensionRangeOptions
+ * @returns MessageOptions
* @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.protobuf.ExtensionRangeOptions;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
/**
- * Verifies an ExtensionRangeOptions message.
+ * Verifies a MessageOptions 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 ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ExtensionRangeOptions
+ * @returns MessageOptions
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
/**
- * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
- * @param message ExtensionRangeOptions
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ExtensionRangeOptions to JSON.
+ * Converts this MessageOptions to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ExtensionRangeOptions
+ * Gets the default type url for MessageOptions
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a FieldDescriptorProto. */
- interface IFieldDescriptorProto {
-
- /** FieldDescriptorProto name */
- name?: (string|null);
-
- /** FieldDescriptorProto number */
- number?: (number|null);
-
- /** FieldDescriptorProto label */
- label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
-
- /** FieldDescriptorProto type */
- type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
- /** FieldDescriptorProto typeName */
- typeName?: (string|null);
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
- /** FieldDescriptorProto extendee */
- extendee?: (string|null);
+ /** FieldOptions packed */
+ packed?: (boolean|null);
- /** FieldDescriptorProto defaultValue */
- defaultValue?: (string|null);
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
- /** FieldDescriptorProto oneofIndex */
- oneofIndex?: (number|null);
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
- /** FieldDescriptorProto jsonName */
- jsonName?: (string|null);
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
- /** FieldDescriptorProto options */
- options?: (google.protobuf.IFieldOptions|null);
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
- /** FieldDescriptorProto proto3Optional */
- proto3Optional?: (boolean|null);
- }
+ /** FieldOptions weak */
+ weak?: (boolean|null);
- /** Represents a FieldDescriptorProto. */
- class FieldDescriptorProto implements IFieldDescriptorProto {
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
- /**
- * Constructs a new FieldDescriptorProto.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFieldDescriptorProto);
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
- /** FieldDescriptorProto name. */
- public name: string;
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+ }
- /** FieldDescriptorProto number. */
- public number: number;
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
- /** FieldDescriptorProto label. */
- public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
- /** FieldDescriptorProto type. */
- public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
- /** FieldDescriptorProto typeName. */
- public typeName: string;
+ /** FieldOptions packed. */
+ public packed: boolean;
- /** FieldDescriptorProto extendee. */
- public extendee: string;
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
- /** FieldDescriptorProto defaultValue. */
- public defaultValue: string;
+ /** FieldOptions lazy. */
+ public lazy: boolean;
- /** FieldDescriptorProto oneofIndex. */
- public oneofIndex: number;
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
- /** FieldDescriptorProto jsonName. */
- public jsonName: string;
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
- /** FieldDescriptorProto options. */
- public options?: (google.protobuf.IFieldOptions|null);
+ /** FieldOptions weak. */
+ public weak: boolean;
- /** FieldDescriptorProto proto3Optional. */
- public proto3Optional: boolean;
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
/**
- * Creates a new FieldDescriptorProto instance using the specified properties.
+ * Creates a new FieldOptions instance using the specified properties.
* @param [properties] Properties to set
- * @returns FieldDescriptorProto instance
+ * @returns FieldOptions instance
*/
- public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
/**
- * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
- * @param message FieldDescriptorProto message or plain object to encode
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
- * @param message FieldDescriptorProto message or plain object to encode
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * Decodes a FieldOptions message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns FieldDescriptorProto
+ * @returns FieldOptions
* @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.protobuf.FieldDescriptorProto;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
/**
- * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns FieldDescriptorProto
+ * @returns FieldOptions
* @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.protobuf.FieldDescriptorProto;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
/**
- * Verifies a FieldDescriptorProto message.
+ * Verifies a FieldOptions 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns FieldDescriptorProto
+ * @returns FieldOptions
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
/**
- * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
- * @param message FieldDescriptorProto
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this FieldDescriptorProto to JSON.
+ * Converts this FieldOptions to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for FieldDescriptorProto
+ * Gets the default type url for FieldOptions
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace FieldDescriptorProto {
+ namespace FieldOptions {
- /** Type enum. */
- enum Type {
- TYPE_DOUBLE = 1,
- TYPE_FLOAT = 2,
- TYPE_INT64 = 3,
- TYPE_UINT64 = 4,
- TYPE_INT32 = 5,
- TYPE_FIXED64 = 6,
- TYPE_FIXED32 = 7,
- TYPE_BOOL = 8,
- TYPE_STRING = 9,
- TYPE_GROUP = 10,
- TYPE_MESSAGE = 11,
- TYPE_BYTES = 12,
- TYPE_UINT32 = 13,
- TYPE_ENUM = 14,
- TYPE_SFIXED32 = 15,
- TYPE_SFIXED64 = 16,
- TYPE_SINT32 = 17,
- TYPE_SINT64 = 18
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
}
- /** Label enum. */
- enum Label {
- LABEL_OPTIONAL = 1,
- LABEL_REQUIRED = 2,
- LABEL_REPEATED = 3
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
}
}
- /** Properties of an OneofDescriptorProto. */
- interface IOneofDescriptorProto {
-
- /** OneofDescriptorProto name */
- name?: (string|null);
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
- /** OneofDescriptorProto options */
- options?: (google.protobuf.IOneofOptions|null);
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
}
- /** Represents an OneofDescriptorProto. */
- class OneofDescriptorProto implements IOneofDescriptorProto {
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
/**
- * Constructs a new OneofDescriptorProto.
+ * Constructs a new OneofOptions.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IOneofDescriptorProto);
-
- /** OneofDescriptorProto name. */
- public name: string;
+ constructor(properties?: google.protobuf.IOneofOptions);
- /** OneofDescriptorProto options. */
- public options?: (google.protobuf.IOneofOptions|null);
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
/**
- * Creates a new OneofDescriptorProto instance using the specified properties.
+ * Creates a new OneofOptions instance using the specified properties.
* @param [properties] Properties to set
- * @returns OneofDescriptorProto instance
+ * @returns OneofOptions instance
*/
- public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
/**
- * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
- * @param message OneofDescriptorProto message or plain object to encode
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
- * @param message OneofDescriptorProto message or plain object to encode
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * Decodes an OneofOptions message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns OneofDescriptorProto
+ * @returns OneofOptions
* @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.protobuf.OneofDescriptorProto;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
/**
- * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns OneofDescriptorProto
+ * @returns OneofOptions
* @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.protobuf.OneofDescriptorProto;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
/**
- * Verifies an OneofDescriptorProto message.
+ * Verifies an OneofOptions 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 OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns OneofDescriptorProto
+ * @returns OneofOptions
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
/**
- * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
- * @param message OneofDescriptorProto
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this OneofDescriptorProto to JSON.
+ * Converts this OneofOptions to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for OneofDescriptorProto
+ * Gets the default type url for OneofOptions
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of an EnumDescriptorProto. */
- interface IEnumDescriptorProto {
-
- /** EnumDescriptorProto name */
- name?: (string|null);
-
- /** EnumDescriptorProto value */
- value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
- /** EnumDescriptorProto options */
- options?: (google.protobuf.IEnumOptions|null);
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
- /** EnumDescriptorProto reservedRange */
- reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
- /** EnumDescriptorProto reservedName */
- reservedName?: (string[]|null);
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
}
- /** Represents an EnumDescriptorProto. */
- class EnumDescriptorProto implements IEnumDescriptorProto {
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
/**
- * Constructs a new EnumDescriptorProto.
+ * Constructs a new EnumOptions.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IEnumDescriptorProto);
-
- /** EnumDescriptorProto name. */
- public name: string;
-
- /** EnumDescriptorProto value. */
- public value: google.protobuf.IEnumValueDescriptorProto[];
+ constructor(properties?: google.protobuf.IEnumOptions);
- /** EnumDescriptorProto options. */
- public options?: (google.protobuf.IEnumOptions|null);
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
- /** EnumDescriptorProto reservedRange. */
- public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
- /** EnumDescriptorProto reservedName. */
- public reservedName: string[];
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
/**
- * Creates a new EnumDescriptorProto instance using the specified properties.
+ * Creates a new EnumOptions instance using the specified properties.
* @param [properties] Properties to set
- * @returns EnumDescriptorProto instance
+ * @returns EnumOptions instance
*/
- public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
/**
- * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
- * @param message EnumDescriptorProto message or plain object to encode
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
- * @param message EnumDescriptorProto message or plain object to encode
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * Decodes an EnumOptions message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns EnumDescriptorProto
+ * @returns EnumOptions
* @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.protobuf.EnumDescriptorProto;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
/**
- * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns EnumDescriptorProto
+ * @returns EnumOptions
* @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.protobuf.EnumDescriptorProto;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
/**
- * Verifies an EnumDescriptorProto message.
+ * Verifies an EnumOptions 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 EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns EnumDescriptorProto
+ * @returns EnumOptions
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
/**
- * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
- * @param message EnumDescriptorProto
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this EnumDescriptorProto to JSON.
+ * Converts this EnumOptions to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for EnumDescriptorProto
+ * Gets the default type url for EnumOptions
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace EnumDescriptorProto {
-
- /** Properties of an EnumReservedRange. */
- interface IEnumReservedRange {
-
- /** EnumReservedRange start */
- start?: (number|null);
-
- /** EnumReservedRange end */
- end?: (number|null);
- }
-
- /** Represents an EnumReservedRange. */
- class EnumReservedRange implements IEnumReservedRange {
-
- /**
- * Constructs a new EnumReservedRange.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
-
- /** EnumReservedRange start. */
- public start: number;
-
- /** EnumReservedRange end. */
- public end: number;
-
- /**
- * Creates a new EnumReservedRange instance using the specified properties.
- * @param [properties] Properties to set
- * @returns EnumReservedRange instance
- */
- public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
-
- /**
- * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
- * @param message EnumReservedRange message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
- * @param message EnumReservedRange message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Decodes an EnumReservedRange message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns EnumReservedRange
- * @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.protobuf.EnumDescriptorProto.EnumReservedRange;
-
- /**
- * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns EnumReservedRange
- * @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.protobuf.EnumDescriptorProto.EnumReservedRange;
-
- /**
- * Verifies an EnumReservedRange 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 EnumReservedRange message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns EnumReservedRange
- */
- public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
-
- /**
- * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
- * @param message EnumReservedRange
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
-
- /**
- * Converts this EnumReservedRange to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
-
- /**
- * Gets the default type url for EnumReservedRange
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
- }
-
- /** Properties of an EnumValueDescriptorProto. */
- interface IEnumValueDescriptorProto {
-
- /** EnumValueDescriptorProto name */
- name?: (string|null);
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
- /** EnumValueDescriptorProto number */
- number?: (number|null);
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
- /** EnumValueDescriptorProto options */
- options?: (google.protobuf.IEnumValueOptions|null);
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
}
- /** Represents an EnumValueDescriptorProto. */
- class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
/**
- * Constructs a new EnumValueDescriptorProto.
+ * Constructs a new EnumValueOptions.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
-
- /** EnumValueDescriptorProto name. */
- public name: string;
+ constructor(properties?: google.protobuf.IEnumValueOptions);
- /** EnumValueDescriptorProto number. */
- public number: number;
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
- /** EnumValueDescriptorProto options. */
- public options?: (google.protobuf.IEnumValueOptions|null);
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
/**
- * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * Creates a new EnumValueOptions instance using the specified properties.
* @param [properties] Properties to set
- * @returns EnumValueDescriptorProto instance
+ * @returns EnumValueOptions instance
*/
- public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
/**
- * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
- * @param message EnumValueDescriptorProto message or plain object to encode
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
- * @param message EnumValueDescriptorProto message or plain object to encode
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns EnumValueDescriptorProto
+ * @returns EnumValueOptions
* @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.protobuf.EnumValueDescriptorProto;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
/**
- * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns EnumValueDescriptorProto
+ * @returns EnumValueOptions
* @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.protobuf.EnumValueDescriptorProto;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
/**
- * Verifies an EnumValueDescriptorProto message.
+ * Verifies an EnumValueOptions 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 EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns EnumValueDescriptorProto
+ * @returns EnumValueOptions
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
/**
- * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
- * @param message EnumValueDescriptorProto
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this EnumValueDescriptorProto to JSON.
+ * Converts this EnumValueOptions to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for EnumValueDescriptorProto
+ * Gets the default type url for EnumValueOptions
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a ServiceDescriptorProto. */
- interface IServiceDescriptorProto {
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
- /** ServiceDescriptorProto name */
- name?: (string|null);
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
- /** ServiceDescriptorProto method */
- method?: (google.protobuf.IMethodDescriptorProto[]|null);
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
- /** ServiceDescriptorProto options */
- options?: (google.protobuf.IServiceOptions|null);
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
}
- /** Represents a ServiceDescriptorProto. */
- class ServiceDescriptorProto implements IServiceDescriptorProto {
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
/**
- * Constructs a new ServiceDescriptorProto.
+ * Constructs a new ServiceOptions.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IServiceDescriptorProto);
-
- /** ServiceDescriptorProto name. */
- public name: string;
+ constructor(properties?: google.protobuf.IServiceOptions);
- /** ServiceDescriptorProto method. */
- public method: google.protobuf.IMethodDescriptorProto[];
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
- /** ServiceDescriptorProto options. */
- public options?: (google.protobuf.IServiceOptions|null);
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
/**
- * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * Creates a new ServiceOptions instance using the specified properties.
* @param [properties] Properties to set
- * @returns ServiceDescriptorProto instance
+ * @returns ServiceOptions instance
*/
- public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
/**
- * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
- * @param message ServiceDescriptorProto message or plain object to encode
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
- * @param message ServiceDescriptorProto message or plain object to encode
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * Decodes a ServiceOptions message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns ServiceDescriptorProto
+ * @returns ServiceOptions
* @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.protobuf.ServiceDescriptorProto;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
/**
- * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns ServiceDescriptorProto
+ * @returns ServiceOptions
* @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.protobuf.ServiceDescriptorProto;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
/**
- * Verifies a ServiceDescriptorProto message.
+ * Verifies a ServiceOptions 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 ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ServiceDescriptorProto
+ * @returns ServiceOptions
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
/**
- * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
- * @param message ServiceDescriptorProto
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ServiceDescriptorProto to JSON.
+ * Converts this ServiceOptions to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ServiceDescriptorProto
+ * Gets the default type url for ServiceOptions
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a MethodDescriptorProto. */
- interface IMethodDescriptorProto {
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
- /** MethodDescriptorProto name */
- name?: (string|null);
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
- /** MethodDescriptorProto inputType */
- inputType?: (string|null);
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
- /** MethodDescriptorProto outputType */
- outputType?: (string|null);
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
- /** MethodDescriptorProto options */
- options?: (google.protobuf.IMethodOptions|null);
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
- /** MethodDescriptorProto clientStreaming */
- clientStreaming?: (boolean|null);
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
- /** MethodDescriptorProto serverStreaming */
- serverStreaming?: (boolean|null);
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
}
- /** Represents a MethodDescriptorProto. */
- class MethodDescriptorProto implements IMethodDescriptorProto {
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
/**
- * Constructs a new MethodDescriptorProto.
+ * Constructs a new MethodOptions.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IMethodDescriptorProto);
-
- /** MethodDescriptorProto name. */
- public name: string;
-
- /** MethodDescriptorProto inputType. */
- public inputType: string;
-
- /** MethodDescriptorProto outputType. */
- public outputType: string;
+ constructor(properties?: google.protobuf.IMethodOptions);
- /** MethodDescriptorProto options. */
- public options?: (google.protobuf.IMethodOptions|null);
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
- /** MethodDescriptorProto clientStreaming. */
- public clientStreaming: boolean;
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
- /** MethodDescriptorProto serverStreaming. */
- public serverStreaming: boolean;
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
/**
- * Creates a new MethodDescriptorProto instance using the specified properties.
+ * Creates a new MethodOptions instance using the specified properties.
* @param [properties] Properties to set
- * @returns MethodDescriptorProto instance
+ * @returns MethodOptions instance
*/
- public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
/**
- * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
- * @param message MethodDescriptorProto message or plain object to encode
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
- * @param message MethodDescriptorProto message or plain object to encode
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * Decodes a MethodOptions message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns MethodDescriptorProto
+ * @returns MethodOptions
* @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.protobuf.MethodDescriptorProto;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
/**
- * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns MethodDescriptorProto
+ * @returns MethodOptions
* @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.protobuf.MethodDescriptorProto;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
/**
- * Verifies a MethodDescriptorProto message.
+ * Verifies a MethodOptions 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns MethodDescriptorProto
+ * @returns MethodOptions
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
/**
- * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
- * @param message MethodDescriptorProto
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this MethodDescriptorProto to JSON.
+ * Converts this MethodOptions to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for MethodDescriptorProto
+ * Gets the default type url for MethodOptions
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a FileOptions. */
- interface IFileOptions {
-
- /** FileOptions javaPackage */
- javaPackage?: (string|null);
-
- /** FileOptions javaOuterClassname */
- javaOuterClassname?: (string|null);
-
- /** FileOptions javaMultipleFiles */
- javaMultipleFiles?: (boolean|null);
-
- /** FileOptions javaGenerateEqualsAndHash */
- javaGenerateEqualsAndHash?: (boolean|null);
-
- /** FileOptions javaStringCheckUtf8 */
- javaStringCheckUtf8?: (boolean|null);
-
- /** FileOptions optimizeFor */
- optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
-
- /** FileOptions goPackage */
- goPackage?: (string|null);
-
- /** FileOptions ccGenericServices */
- ccGenericServices?: (boolean|null);
-
- /** FileOptions javaGenericServices */
- javaGenericServices?: (boolean|null);
-
- /** FileOptions pyGenericServices */
- pyGenericServices?: (boolean|null);
-
- /** FileOptions phpGenericServices */
- phpGenericServices?: (boolean|null);
-
- /** FileOptions deprecated */
- deprecated?: (boolean|null);
-
- /** FileOptions ccEnableArenas */
- ccEnableArenas?: (boolean|null);
-
- /** FileOptions objcClassPrefix */
- objcClassPrefix?: (string|null);
-
- /** FileOptions csharpNamespace */
- csharpNamespace?: (string|null);
-
- /** FileOptions swiftPrefix */
- swiftPrefix?: (string|null);
-
- /** FileOptions phpClassPrefix */
- phpClassPrefix?: (string|null);
-
- /** FileOptions phpNamespace */
- phpNamespace?: (string|null);
-
- /** FileOptions phpMetadataNamespace */
- phpMetadataNamespace?: (string|null);
-
- /** FileOptions rubyPackage */
- rubyPackage?: (string|null);
-
- /** FileOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
-
- /** FileOptions .google.api.resourceDefinition */
- ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
- }
-
- /** Represents a FileOptions. */
- class FileOptions implements IFileOptions {
-
- /**
- * Constructs a new FileOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFileOptions);
-
- /** FileOptions javaPackage. */
- public javaPackage: string;
-
- /** FileOptions javaOuterClassname. */
- public javaOuterClassname: string;
-
- /** FileOptions javaMultipleFiles. */
- public javaMultipleFiles: boolean;
+ namespace MethodOptions {
- /** FileOptions javaGenerateEqualsAndHash. */
- public javaGenerateEqualsAndHash: boolean;
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
- /** FileOptions javaStringCheckUtf8. */
- public javaStringCheckUtf8: boolean;
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
- /** FileOptions optimizeFor. */
- public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
- /** FileOptions goPackage. */
- public goPackage: string;
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
- /** FileOptions ccGenericServices. */
- public ccGenericServices: boolean;
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
- /** FileOptions javaGenericServices. */
- public javaGenericServices: boolean;
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
- /** FileOptions pyGenericServices. */
- public pyGenericServices: boolean;
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
- /** FileOptions phpGenericServices. */
- public phpGenericServices: boolean;
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
- /** FileOptions deprecated. */
- public deprecated: boolean;
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
- /** FileOptions ccEnableArenas. */
- public ccEnableArenas: boolean;
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
- /** FileOptions objcClassPrefix. */
- public objcClassPrefix: string;
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
- /** FileOptions csharpNamespace. */
- public csharpNamespace: string;
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
- /** FileOptions swiftPrefix. */
- public swiftPrefix: string;
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
- /** FileOptions phpClassPrefix. */
- public phpClassPrefix: string;
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
- /** FileOptions phpNamespace. */
- public phpNamespace: string;
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
- /** FileOptions phpMetadataNamespace. */
- public phpMetadataNamespace: string;
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
- /** FileOptions rubyPackage. */
- public rubyPackage: string;
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
- /** FileOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
/**
- * Creates a new FileOptions instance using the specified properties.
+ * Creates a new UninterpretedOption instance using the specified properties.
* @param [properties] Properties to set
- * @returns FileOptions instance
+ * @returns UninterpretedOption instance
*/
- public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
/**
- * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
- * @param message FileOptions message or plain object to encode
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
- * @param message FileOptions message or plain object to encode
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a FileOptions message from the specified reader or buffer.
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns FileOptions
+ * @returns UninterpretedOption
* @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.protobuf.FileOptions;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
/**
- * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns FileOptions
+ * @returns UninterpretedOption
* @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.protobuf.FileOptions;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
/**
- * Verifies a FileOptions message.
+ * Verifies an UninterpretedOption 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 FileOptions message from a plain object. Also converts values to their respective internal types.
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns FileOptions
+ * @returns UninterpretedOption
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
/**
- * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
- * @param message FileOptions
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this FileOptions to JSON.
+ * Converts this UninterpretedOption to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for FileOptions
+ * Gets the default type url for UninterpretedOption
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace FileOptions {
+ namespace UninterpretedOption {
- /** OptimizeMode enum. */
- enum OptimizeMode {
- SPEED = 1,
- CODE_SIZE = 2,
- LITE_RUNTIME = 3
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
}
- }
- /** Properties of a MessageOptions. */
- interface IMessageOptions {
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
- /** MessageOptions messageSetWireFormat */
- messageSetWireFormat?: (boolean|null);
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
- /** MessageOptions noStandardDescriptorAccessor */
- noStandardDescriptorAccessor?: (boolean|null);
+ /** NamePart namePart. */
+ public namePart: string;
- /** MessageOptions deprecated */
- deprecated?: (boolean|null);
+ /** NamePart isExtension. */
+ public isExtension: boolean;
- /** MessageOptions mapEntry */
- mapEntry?: (boolean|null);
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
- /** MessageOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
- /** MessageOptions .google.api.resource */
- ".google.api.resource"?: (google.api.IResourceDescriptor|null);
- }
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
- /** Represents a MessageOptions. */
- class MessageOptions implements IMessageOptions {
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @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.protobuf.UninterpretedOption.NamePart;
- /**
- * Constructs a new MessageOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IMessageOptions);
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @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.protobuf.UninterpretedOption.NamePart;
- /** MessageOptions messageSetWireFormat. */
- public messageSetWireFormat: boolean;
+ /**
+ * Verifies a NamePart 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);
- /** MessageOptions noStandardDescriptorAccessor. */
- public noStandardDescriptorAccessor: boolean;
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
- /** MessageOptions deprecated. */
- public deprecated: boolean;
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
- /** MessageOptions mapEntry. */
- public mapEntry: boolean;
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
- /** MessageOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
/**
- * Creates a new MessageOptions instance using the specified properties.
+ * Creates a new SourceCodeInfo instance using the specified properties.
* @param [properties] Properties to set
- * @returns MessageOptions instance
+ * @returns SourceCodeInfo instance
*/
- public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
/**
- * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
- * @param message MessageOptions message or plain object to encode
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
- * @param message MessageOptions message or plain object to encode
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a MessageOptions message from the specified reader or buffer.
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns MessageOptions
+ * @returns SourceCodeInfo
* @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.protobuf.MessageOptions;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
/**
- * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns MessageOptions
+ * @returns SourceCodeInfo
* @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.protobuf.MessageOptions;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
/**
- * Verifies a MessageOptions message.
+ * Verifies a SourceCodeInfo 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 MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns MessageOptions
+ * @returns SourceCodeInfo
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
/**
- * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
- * @param message MessageOptions
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this MessageOptions to JSON.
+ * Converts this SourceCodeInfo to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for MessageOptions
+ * Gets the default type url for SourceCodeInfo
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a FieldOptions. */
- interface IFieldOptions {
+ namespace SourceCodeInfo {
- /** FieldOptions ctype */
- ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+ /** Properties of a Location. */
+ interface ILocation {
- /** FieldOptions packed */
- packed?: (boolean|null);
+ /** Location path */
+ path?: (number[]|null);
- /** FieldOptions jstype */
- jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+ /** Location span */
+ span?: (number[]|null);
- /** FieldOptions lazy */
- lazy?: (boolean|null);
+ /** Location leadingComments */
+ leadingComments?: (string|null);
- /** FieldOptions unverifiedLazy */
- unverifiedLazy?: (boolean|null);
+ /** Location trailingComments */
+ trailingComments?: (string|null);
- /** FieldOptions deprecated */
- deprecated?: (boolean|null);
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
- /** FieldOptions weak */
- weak?: (boolean|null);
+ /** Represents a Location. */
+ class Location implements ILocation {
- /** FieldOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
- /** FieldOptions .google.api.resourceReference */
- ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ /** Location path. */
+ public path: number[];
- /** FieldOptions .google.api.fieldBehavior */
- ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
- }
+ /** Location span. */
+ public span: number[];
- /** Represents a FieldOptions. */
- class FieldOptions implements IFieldOptions {
+ /** Location leadingComments. */
+ public leadingComments: string;
- /**
- * Constructs a new FieldOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFieldOptions);
+ /** Location trailingComments. */
+ public trailingComments: string;
- /** FieldOptions ctype. */
- public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
- /** FieldOptions packed. */
- public packed: boolean;
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
- /** FieldOptions jstype. */
- public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
- /** FieldOptions lazy. */
- public lazy: boolean;
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
- /** FieldOptions unverifiedLazy. */
- public unverifiedLazy: boolean;
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @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.protobuf.SourceCodeInfo.Location;
- /** FieldOptions deprecated. */
- public deprecated: boolean;
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @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.protobuf.SourceCodeInfo.Location;
- /** FieldOptions weak. */
- public weak: boolean;
+ /**
+ * Verifies a Location 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);
- /** FieldOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
/**
- * Creates a new FieldOptions instance using the specified properties.
+ * Constructs a new GeneratedCodeInfo.
* @param [properties] Properties to set
- * @returns FieldOptions instance
*/
- public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
/**
- * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
- * @param message FieldOptions message or plain object to encode
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
- * @param message FieldOptions message or plain object to encode
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a FieldOptions message from the specified reader or buffer.
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns FieldOptions
+ * @returns GeneratedCodeInfo
* @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.protobuf.FieldOptions;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
/**
- * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns FieldOptions
+ * @returns GeneratedCodeInfo
* @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.protobuf.FieldOptions;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
/**
- * Verifies a FieldOptions message.
+ * Verifies a GeneratedCodeInfo 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 FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns FieldOptions
+ * @returns GeneratedCodeInfo
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
/**
- * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
- * @param message FieldOptions
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this FieldOptions to JSON.
+ * Converts this GeneratedCodeInfo to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for FieldOptions
+ * Gets the default type url for GeneratedCodeInfo
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace FieldOptions {
+ namespace GeneratedCodeInfo {
- /** CType enum. */
- enum CType {
- STRING = 0,
- CORD = 1,
- STRING_PIECE = 2
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
}
- /** JSType enum. */
- enum JSType {
- JS_NORMAL = 0,
- JS_STRING = 1,
- JS_NUMBER = 2
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @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.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @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.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation 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 Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
}
}
- /** Properties of an OneofOptions. */
- interface IOneofOptions {
+ /** Properties of a Duration. */
+ interface IDuration {
- /** OneofOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
}
- /** Represents an OneofOptions. */
- class OneofOptions implements IOneofOptions {
+ /** Represents a Duration. */
+ class Duration implements IDuration {
/**
- * Constructs a new OneofOptions.
+ * Constructs a new Duration.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IOneofOptions);
+ constructor(properties?: google.protobuf.IDuration);
- /** OneofOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
/**
- * Creates a new OneofOptions instance using the specified properties.
+ * Creates a new Duration instance using the specified properties.
* @param [properties] Properties to set
- * @returns OneofOptions instance
+ * @returns Duration instance
*/
- public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
/**
- * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
- * @param message OneofOptions message or plain object to encode
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
- * @param message OneofOptions message or plain object to encode
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an OneofOptions message from the specified reader or buffer.
+ * Decodes a Duration message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns OneofOptions
+ * @returns Duration
* @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.protobuf.OneofOptions;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
/**
- * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns OneofOptions
+ * @returns Duration
* @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.protobuf.OneofOptions;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
/**
- * Verifies an OneofOptions message.
+ * Verifies a Duration 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 OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns OneofOptions
+ * @returns Duration
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
/**
- * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
- * @param message OneofOptions
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this OneofOptions to JSON.
+ * Converts this Duration to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for OneofOptions
+ * Gets the default type url for Duration
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of an EnumOptions. */
- interface IEnumOptions {
-
- /** EnumOptions allowAlias */
- allowAlias?: (boolean|null);
-
- /** EnumOptions deprecated */
- deprecated?: (boolean|null);
+ /** Properties of a Struct. */
+ interface IStruct {
- /** EnumOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /** Struct fields */
+ fields?: ({ [k: string]: google.protobuf.IValue }|null);
}
- /** Represents an EnumOptions. */
- class EnumOptions implements IEnumOptions {
+ /** Represents a Struct. */
+ class Struct implements IStruct {
/**
- * Constructs a new EnumOptions.
+ * Constructs a new Struct.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IEnumOptions);
-
- /** EnumOptions allowAlias. */
- public allowAlias: boolean;
-
- /** EnumOptions deprecated. */
- public deprecated: boolean;
+ constructor(properties?: google.protobuf.IStruct);
- /** EnumOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** Struct fields. */
+ public fields: { [k: string]: google.protobuf.IValue };
/**
- * Creates a new EnumOptions instance using the specified properties.
+ * Creates a new Struct instance using the specified properties.
* @param [properties] Properties to set
- * @returns EnumOptions instance
+ * @returns Struct instance
*/
- public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+ public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct;
/**
- * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
- * @param message EnumOptions message or plain object to encode
+ * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
- * @param message EnumOptions message or plain object to encode
+ * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an EnumOptions message from the specified reader or buffer.
+ * Decodes a Struct message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns EnumOptions
+ * @returns Struct
* @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.protobuf.EnumOptions;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Struct;
/**
- * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * Decodes a Struct message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns EnumOptions
+ * @returns Struct
* @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.protobuf.EnumOptions;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Struct;
/**
- * Verifies an EnumOptions message.
+ * Verifies a Struct 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 EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * Creates a Struct message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns EnumOptions
+ * @returns Struct
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;
/**
- * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
- * @param message EnumOptions
+ * Creates a plain object from a Struct message. Also converts values to other types if specified.
+ * @param message Struct
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this EnumOptions to JSON.
+ * Converts this Struct to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for EnumOptions
+ * Gets the default type url for Struct
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of an EnumValueOptions. */
- interface IEnumValueOptions {
+ /** Properties of a Value. */
+ interface IValue {
- /** EnumValueOptions deprecated */
- deprecated?: (boolean|null);
+ /** Value nullValue */
+ nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
- /** EnumValueOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /** Value numberValue */
+ numberValue?: (number|null);
+
+ /** Value stringValue */
+ stringValue?: (string|null);
+
+ /** Value boolValue */
+ boolValue?: (boolean|null);
+
+ /** Value structValue */
+ structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue */
+ listValue?: (google.protobuf.IListValue|null);
}
- /** Represents an EnumValueOptions. */
- class EnumValueOptions implements IEnumValueOptions {
+ /** Represents a Value. */
+ class Value implements IValue {
/**
- * Constructs a new EnumValueOptions.
+ * Constructs a new Value.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IEnumValueOptions);
+ constructor(properties?: google.protobuf.IValue);
- /** EnumValueOptions deprecated. */
- public deprecated: boolean;
+ /** Value nullValue. */
+ public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
- /** EnumValueOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** Value numberValue. */
+ public numberValue?: (number|null);
+
+ /** Value stringValue. */
+ public stringValue?: (string|null);
+
+ /** Value boolValue. */
+ public boolValue?: (boolean|null);
+
+ /** Value structValue. */
+ public structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue. */
+ public listValue?: (google.protobuf.IListValue|null);
+
+ /** Value kind. */
+ public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");
/**
- * Creates a new EnumValueOptions instance using the specified properties.
+ * Creates a new Value instance using the specified properties.
* @param [properties] Properties to set
- * @returns EnumValueOptions instance
+ * @returns Value instance
*/
- public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+ public static create(properties?: google.protobuf.IValue): google.protobuf.Value;
/**
- * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
- * @param message EnumValueOptions message or plain object to encode
+ * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
- * @param message EnumValueOptions message or plain object to encode
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * Decodes a Value message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns EnumValueOptions
+ * @returns Value
* @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.protobuf.EnumValueOptions;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value;
/**
- * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * Decodes a Value message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns EnumValueOptions
+ * @returns Value
* @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.protobuf.EnumValueOptions;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Value;
/**
- * Verifies an EnumValueOptions message.
+ * Verifies a Value 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 EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns EnumValueOptions
+ * @returns Value
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Value;
/**
- * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
- * @param message EnumValueOptions
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @param message Value
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this EnumValueOptions to JSON.
+ * Converts this Value to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for EnumValueOptions
+ * Gets the default type url for Value
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a ServiceOptions. */
- interface IServiceOptions {
-
- /** ServiceOptions deprecated */
- deprecated?: (boolean|null);
-
- /** ServiceOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /** NullValue enum. */
+ enum NullValue {
+ NULL_VALUE = 0
+ }
- /** ServiceOptions .google.api.defaultHost */
- ".google.api.defaultHost"?: (string|null);
+ /** Properties of a ListValue. */
+ interface IListValue {
- /** ServiceOptions .google.api.oauthScopes */
- ".google.api.oauthScopes"?: (string|null);
+ /** ListValue values */
+ values?: (google.protobuf.IValue[]|null);
}
- /** Represents a ServiceOptions. */
- class ServiceOptions implements IServiceOptions {
+ /** Represents a ListValue. */
+ class ListValue implements IListValue {
/**
- * Constructs a new ServiceOptions.
+ * Constructs a new ListValue.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IServiceOptions);
-
- /** ServiceOptions deprecated. */
- public deprecated: boolean;
+ constructor(properties?: google.protobuf.IListValue);
- /** ServiceOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** ListValue values. */
+ public values: google.protobuf.IValue[];
/**
- * Creates a new ServiceOptions instance using the specified properties.
+ * Creates a new ListValue instance using the specified properties.
* @param [properties] Properties to set
- * @returns ServiceOptions instance
+ * @returns ListValue instance
*/
- public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+ public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue;
/**
- * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
- * @param message ServiceOptions message or plain object to encode
+ * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
- * @param message ServiceOptions message or plain object to encode
+ * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a ServiceOptions message from the specified reader or buffer.
+ * Decodes a ListValue message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns ServiceOptions
+ * @returns ListValue
* @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.protobuf.ServiceOptions;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue;
/**
- * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * Decodes a ListValue message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns ServiceOptions
+ * @returns ListValue
* @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.protobuf.ServiceOptions;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ListValue;
/**
- * Verifies a ServiceOptions message.
+ * Verifies a ListValue 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 ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * Creates a ListValue message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ServiceOptions
+ * @returns ListValue
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;
/**
- * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
- * @param message ServiceOptions
+ * Creates a plain object from a ListValue message. Also converts values to other types if specified.
+ * @param message ListValue
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ServiceOptions to JSON.
+ * Converts this ListValue to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ServiceOptions
+ * Gets the default type url for ListValue
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a MethodOptions. */
- interface IMethodOptions {
-
- /** MethodOptions deprecated */
- deprecated?: (boolean|null);
-
- /** MethodOptions idempotencyLevel */
- idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
-
- /** MethodOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /** Properties of an Any. */
+ interface IAny {
- /** MethodOptions .google.api.http */
- ".google.api.http"?: (google.api.IHttpRule|null);
+ /** Any type_url */
+ type_url?: (string|null);
- /** MethodOptions .google.api.methodSignature */
- ".google.api.methodSignature"?: (string[]|null);
+ /** Any value */
+ value?: (Uint8Array|string|null);
}
- /** Represents a MethodOptions. */
- class MethodOptions implements IMethodOptions {
+ /** Represents an Any. */
+ class Any implements IAny {
/**
- * Constructs a new MethodOptions.
+ * Constructs a new Any.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IMethodOptions);
-
- /** MethodOptions deprecated. */
- public deprecated: boolean;
+ constructor(properties?: google.protobuf.IAny);
- /** MethodOptions idempotencyLevel. */
- public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+ /** Any type_url. */
+ public type_url: string;
- /** MethodOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** Any value. */
+ public value: (Uint8Array|string);
/**
- * Creates a new MethodOptions instance using the specified properties.
+ * Creates a new Any instance using the specified properties.
* @param [properties] Properties to set
- * @returns MethodOptions instance
+ * @returns Any instance
*/
- public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
/**
- * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
- * @param message MethodOptions message or plain object to encode
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
- * @param message MethodOptions message or plain object to encode
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a MethodOptions message from the specified reader or buffer.
+ * Decodes an Any message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns MethodOptions
+ * @returns Any
* @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.protobuf.MethodOptions;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
/**
- * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * Decodes an Any message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns MethodOptions
+ * @returns Any
* @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.protobuf.MethodOptions;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
/**
- * Verifies a MethodOptions message.
+ * Verifies an Any 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 MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns MethodOptions
+ * @returns Any
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
/**
- * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
- * @param message MethodOptions
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this MethodOptions to JSON.
+ * Converts this Any to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for MethodOptions
+ * Gets the default type url for Any
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace MethodOptions {
-
- /** IdempotencyLevel enum. */
- enum IdempotencyLevel {
- IDEMPOTENCY_UNKNOWN = 0,
- NO_SIDE_EFFECTS = 1,
- IDEMPOTENT = 2
- }
- }
-
- /** Properties of an UninterpretedOption. */
- interface IUninterpretedOption {
-
- /** UninterpretedOption name */
- name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
-
- /** UninterpretedOption identifierValue */
- identifierValue?: (string|null);
-
- /** UninterpretedOption positiveIntValue */
- positiveIntValue?: (number|Long|string|null);
-
- /** UninterpretedOption negativeIntValue */
- negativeIntValue?: (number|Long|string|null);
-
- /** UninterpretedOption doubleValue */
- doubleValue?: (number|null);
-
- /** UninterpretedOption stringValue */
- stringValue?: (Uint8Array|string|null);
-
- /** UninterpretedOption aggregateValue */
- aggregateValue?: (string|null);
+ /** Properties of an Empty. */
+ interface IEmpty {
}
- /** Represents an UninterpretedOption. */
- class UninterpretedOption implements IUninterpretedOption {
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
/**
- * Constructs a new UninterpretedOption.
+ * Constructs a new Empty.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IUninterpretedOption);
-
- /** UninterpretedOption name. */
- public name: google.protobuf.UninterpretedOption.INamePart[];
-
- /** UninterpretedOption identifierValue. */
- public identifierValue: string;
-
- /** UninterpretedOption positiveIntValue. */
- public positiveIntValue: (number|Long|string);
-
- /** UninterpretedOption negativeIntValue. */
- public negativeIntValue: (number|Long|string);
-
- /** UninterpretedOption doubleValue. */
- public doubleValue: number;
-
- /** UninterpretedOption stringValue. */
- public stringValue: (Uint8Array|string);
-
- /** UninterpretedOption aggregateValue. */
- public aggregateValue: string;
+ constructor(properties?: google.protobuf.IEmpty);
/**
- * Creates a new UninterpretedOption instance using the specified properties.
+ * Creates a new Empty instance using the specified properties.
* @param [properties] Properties to set
- * @returns UninterpretedOption instance
+ * @returns Empty instance
*/
- public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
/**
- * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
- * @param message UninterpretedOption message or plain object to encode
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
- * @param message UninterpretedOption message or plain object to encode
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * Decodes an Empty message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns UninterpretedOption
+ * @returns Empty
* @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.protobuf.UninterpretedOption;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
/**
- * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns UninterpretedOption
+ * @returns Empty
* @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.protobuf.UninterpretedOption;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
/**
- * Verifies an UninterpretedOption message.
+ * Verifies an Empty 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 UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns UninterpretedOption
+ * @returns Empty
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
/**
- * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
- * @param message UninterpretedOption
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this UninterpretedOption to JSON.
+ * Converts this Empty to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for UninterpretedOption
+ * Gets the default type url for Empty
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace UninterpretedOption {
-
- /** Properties of a NamePart. */
- interface INamePart {
-
- /** NamePart namePart */
- namePart: string;
-
- /** NamePart isExtension */
- isExtension: boolean;
- }
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
- /** Represents a NamePart. */
- class NamePart implements INamePart {
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
- /**
- * Constructs a new NamePart.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
- /** NamePart namePart. */
- public namePart: string;
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
- /** NamePart isExtension. */
- public isExtension: boolean;
+ /** FieldMask paths. */
+ public paths: string[];
- /**
- * Creates a new NamePart instance using the specified properties.
- * @param [properties] Properties to set
- * @returns NamePart instance
- */
- public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
- /**
- * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
- * @param message NamePart message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
- /**
- * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
- * @param message NamePart message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
- /**
- * Decodes a NamePart message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns NamePart
- * @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.protobuf.UninterpretedOption.NamePart;
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @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.protobuf.FieldMask;
- /**
- * Decodes a NamePart message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns NamePart
- * @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.protobuf.UninterpretedOption.NamePart;
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @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.protobuf.FieldMask;
- /**
- * Verifies a NamePart 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);
+ /**
+ * Verifies a FieldMask 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 NamePart message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns NamePart
- */
- public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
- /**
- * Creates a plain object from a NamePart message. Also converts values to other types if specified.
- * @param message NamePart
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
- /**
- * Converts this NamePart to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * Gets the default type url for NamePart
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a SourceCodeInfo. */
- interface ISourceCodeInfo {
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
- /** SourceCodeInfo location */
- location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
}
- /** Represents a SourceCodeInfo. */
- class SourceCodeInfo implements ISourceCodeInfo {
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
/**
- * Constructs a new SourceCodeInfo.
+ * Constructs a new Timestamp.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.ISourceCodeInfo);
+ constructor(properties?: google.protobuf.ITimestamp);
- /** SourceCodeInfo location. */
- public location: google.protobuf.SourceCodeInfo.ILocation[];
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
/**
- * Creates a new SourceCodeInfo instance using the specified properties.
+ * Creates a new Timestamp instance using the specified properties.
* @param [properties] Properties to set
- * @returns SourceCodeInfo instance
+ * @returns Timestamp instance
*/
- public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
/**
- * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
- * @param message SourceCodeInfo message or plain object to encode
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
- * @param message SourceCodeInfo message or plain object to encode
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * Decodes a Timestamp message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns SourceCodeInfo
+ * @returns Timestamp
* @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.protobuf.SourceCodeInfo;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
/**
- * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns SourceCodeInfo
+ * @returns Timestamp
* @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.protobuf.SourceCodeInfo;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
/**
- * Verifies a SourceCodeInfo message.
+ * Verifies a Timestamp 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 SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns SourceCodeInfo
+ * @returns Timestamp
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
/**
- * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
- * @param message SourceCodeInfo
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this SourceCodeInfo to JSON.
+ * Converts this Timestamp to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for SourceCodeInfo
+ * Gets the default type url for Timestamp
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+ }
- namespace SourceCodeInfo {
+ /** Namespace longrunning. */
+ namespace longrunning {
- /** Properties of a Location. */
- interface ILocation {
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
- /** Location path */
- path?: (number[]|null);
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
- /** Location span */
- span?: (number[]|null);
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
- /** Location leadingComments */
- leadingComments?: (string|null);
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
- /** Location trailingComments */
- trailingComments?: (string|null);
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
- /** Location leadingDetachedComments */
- leadingDetachedComments?: (string[]|null);
- }
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
- /** Represents a Location. */
- class Location implements ILocation {
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
- /**
- * Constructs a new Location.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
- /** Location path. */
- public path: number[];
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
- /** Location span. */
- public span: number[];
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
- /** Location leadingComments. */
- public leadingComments: string;
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
- /** Location trailingComments. */
- public trailingComments: string;
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
- /** Location leadingDetachedComments. */
- public leadingDetachedComments: string[];
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
- /**
- * Creates a new Location instance using the specified properties.
- * @param [properties] Properties to set
- * @returns Location instance
- */
- public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+ namespace Operations {
- /**
- * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
- * @param message Location message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
- /**
- * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
- * @param message Location message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
- /**
- * Decodes a Location message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns Location
- * @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.protobuf.SourceCodeInfo.Location;
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
- /**
- * Decodes a Location message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns Location
- * @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.protobuf.SourceCodeInfo.Location;
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @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.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @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.longrunning.Operation;
- /**
- * Verifies a Location 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);
+ /**
+ * Verifies an Operation 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 Location message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns Location
- */
- public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
- /**
- * Creates a plain object from a Location message. Also converts values to other types if specified.
- * @param message Location
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
- /**
- * Converts this Location to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * Gets the default type url for Location
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a GeneratedCodeInfo. */
- interface IGeneratedCodeInfo {
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
- /** GeneratedCodeInfo annotation */
- annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ /** GetOperationRequest name */
+ name?: (string|null);
}
- /** Represents a GeneratedCodeInfo. */
- class GeneratedCodeInfo implements IGeneratedCodeInfo {
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
/**
- * Constructs a new GeneratedCodeInfo.
+ * Constructs a new GetOperationRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+ constructor(properties?: google.longrunning.IGetOperationRequest);
- /** GeneratedCodeInfo annotation. */
- public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+ /** GetOperationRequest name. */
+ public name: string;
/**
- * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * Creates a new GetOperationRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns GeneratedCodeInfo instance
+ * @returns GetOperationRequest instance
*/
- public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
/**
- * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
- * @param message GeneratedCodeInfo message or plain object to encode
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
- * @param message GeneratedCodeInfo message or plain object to encode
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns GeneratedCodeInfo
+ * @returns GetOperationRequest
* @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.protobuf.GeneratedCodeInfo;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
/**
- * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns GeneratedCodeInfo
+ * @returns GetOperationRequest
* @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.protobuf.GeneratedCodeInfo;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
/**
- * Verifies a GeneratedCodeInfo message.
+ * Verifies a GetOperationRequest 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 GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns GeneratedCodeInfo
+ * @returns GetOperationRequest
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
/**
- * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
- * @param message GeneratedCodeInfo
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this GeneratedCodeInfo to JSON.
+ * Converts this GetOperationRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for GeneratedCodeInfo
+ * Gets the default type url for GetOperationRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace GeneratedCodeInfo {
-
- /** Properties of an Annotation. */
- interface IAnnotation {
-
- /** Annotation path */
- path?: (number[]|null);
-
- /** Annotation sourceFile */
- sourceFile?: (string|null);
-
- /** Annotation begin */
- begin?: (number|null);
-
- /** Annotation end */
- end?: (number|null);
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
- /** Annotation semantic */
- semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
- }
+ /** ListOperationsRequest name */
+ name?: (string|null);
- /** Represents an Annotation. */
- class Annotation implements IAnnotation {
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
- /**
- * Constructs a new Annotation.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
- /** Annotation path. */
- public path: number[];
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
- /** Annotation sourceFile. */
- public sourceFile: string;
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
- /** Annotation begin. */
- public begin: number;
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
- /** Annotation end. */
- public end: number;
+ /** ListOperationsRequest name. */
+ public name: string;
- /** Annotation semantic. */
- public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+ /** ListOperationsRequest filter. */
+ public filter: string;
- /**
- * Creates a new Annotation instance using the specified properties.
- * @param [properties] Properties to set
- * @returns Annotation instance
- */
- public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
- /**
- * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
- * @param message Annotation message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
- /**
- * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
- * @param message Annotation message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
- /**
- * Decodes an Annotation message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns Annotation
- * @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.protobuf.GeneratedCodeInfo.Annotation;
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
- /**
- * Decodes an Annotation message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns Annotation
- * @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.protobuf.GeneratedCodeInfo.Annotation;
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
- /**
- * Verifies an Annotation 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);
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @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.longrunning.ListOperationsRequest;
- /**
- * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns Annotation
- */
- public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @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.longrunning.ListOperationsRequest;
- /**
- * Creates a plain object from an Annotation message. Also converts values to other types if specified.
- * @param message Annotation
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ /**
+ * Verifies a ListOperationsRequest 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);
- /**
- * Converts this Annotation to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
- /**
- * Gets the default type url for Annotation
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
- namespace Annotation {
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Semantic enum. */
- enum Semantic {
- NONE = 0,
- SET = 1,
- ALIAS = 2
- }
- }
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a Duration. */
- interface IDuration {
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
- /** Duration seconds */
- seconds?: (number|Long|string|null);
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
- /** Duration nanos */
- nanos?: (number|null);
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
}
- /** Represents a Duration. */
- class Duration implements IDuration {
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
/**
- * Constructs a new Duration.
+ * Constructs a new ListOperationsResponse.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IDuration);
+ constructor(properties?: google.longrunning.IListOperationsResponse);
- /** Duration seconds. */
- public seconds: (number|Long|string);
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
- /** Duration nanos. */
- public nanos: number;
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
/**
- * Creates a new Duration instance using the specified properties.
+ * Creates a new ListOperationsResponse instance using the specified properties.
* @param [properties] Properties to set
- * @returns Duration instance
+ * @returns ListOperationsResponse instance
*/
- public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
/**
- * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
- * @param message Duration message or plain object to encode
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
- * @param message Duration message or plain object to encode
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a Duration message from the specified reader or buffer.
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns Duration
+ * @returns ListOperationsResponse
* @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.protobuf.Duration;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
/**
- * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns Duration
+ * @returns ListOperationsResponse
* @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.protobuf.Duration;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
/**
- * Verifies a Duration message.
+ * Verifies a ListOperationsResponse 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 Duration message from a plain object. Also converts values to their respective internal types.
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Duration
+ * @returns ListOperationsResponse
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
/**
- * Creates a plain object from a Duration message. Also converts values to other types if specified.
- * @param message Duration
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Duration to JSON.
+ * Converts this ListOperationsResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Duration
+ * Gets the default type url for ListOperationsResponse
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a Struct. */
- interface IStruct {
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
- /** Struct fields */
- fields?: ({ [k: string]: google.protobuf.IValue }|null);
+ /** CancelOperationRequest name */
+ name?: (string|null);
}
- /** Represents a Struct. */
- class Struct implements IStruct {
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
/**
- * Constructs a new Struct.
+ * Constructs a new CancelOperationRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IStruct);
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
- /** Struct fields. */
- public fields: { [k: string]: google.protobuf.IValue };
+ /** CancelOperationRequest name. */
+ public name: string;
/**
- * Creates a new Struct instance using the specified properties.
+ * Creates a new CancelOperationRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns Struct instance
+ * @returns CancelOperationRequest instance
*/
- public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct;
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
/**
- * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
- * @param message Struct message or plain object to encode
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
- * @param message Struct message or plain object to encode
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a Struct message from the specified reader or buffer.
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns Struct
+ * @returns CancelOperationRequest
* @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.protobuf.Struct;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
/**
- * Decodes a Struct message from the specified reader or buffer, length delimited.
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns Struct
+ * @returns CancelOperationRequest
* @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.protobuf.Struct;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
/**
- * Verifies a Struct message.
+ * Verifies a CancelOperationRequest 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 Struct message from a plain object. Also converts values to their respective internal types.
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Struct
+ * @returns CancelOperationRequest
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
/**
- * Creates a plain object from a Struct message. Also converts values to other types if specified.
- * @param message Struct
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Struct to JSON.
+ * Converts this CancelOperationRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Struct
+ * Gets the default type url for CancelOperationRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a Value. */
- interface IValue {
-
- /** Value nullValue */
- nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
-
- /** Value numberValue */
- numberValue?: (number|null);
-
- /** Value stringValue */
- stringValue?: (string|null);
-
- /** Value boolValue */
- boolValue?: (boolean|null);
-
- /** Value structValue */
- structValue?: (google.protobuf.IStruct|null);
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
- /** Value listValue */
- listValue?: (google.protobuf.IListValue|null);
+ /** DeleteOperationRequest name */
+ name?: (string|null);
}
- /** Represents a Value. */
- class Value implements IValue {
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
/**
- * Constructs a new Value.
+ * Constructs a new DeleteOperationRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IValue);
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
- /** Value nullValue. */
- public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
-
- /** Value numberValue. */
- public numberValue?: (number|null);
-
- /** Value stringValue. */
- public stringValue?: (string|null);
-
- /** Value boolValue. */
- public boolValue?: (boolean|null);
-
- /** Value structValue. */
- public structValue?: (google.protobuf.IStruct|null);
-
- /** Value listValue. */
- public listValue?: (google.protobuf.IListValue|null);
-
- /** Value kind. */
- public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");
+ /** DeleteOperationRequest name. */
+ public name: string;
/**
- * Creates a new Value instance using the specified properties.
+ * Creates a new DeleteOperationRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns Value instance
+ * @returns DeleteOperationRequest instance
*/
- public static create(properties?: google.protobuf.IValue): google.protobuf.Value;
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
/**
- * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
- * @param message Value message or plain object to encode
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
- * @param message Value message or plain object to encode
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a Value message from the specified reader or buffer.
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns Value
+ * @returns DeleteOperationRequest
* @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.protobuf.Value;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
/**
- * Decodes a Value message from the specified reader or buffer, length delimited.
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns Value
+ * @returns DeleteOperationRequest
* @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.protobuf.Value;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
/**
- * Verifies a Value message.
+ * Verifies a DeleteOperationRequest 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 Value message from a plain object. Also converts values to their respective internal types.
+ * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Value
+ * @returns DeleteOperationRequest
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.Value;
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
/**
- * Creates a plain object from a Value message. Also converts values to other types if specified.
- * @param message Value
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Value to JSON.
+ * Converts this DeleteOperationRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Value
+ * Gets the default type url for DeleteOperationRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** NullValue enum. */
- enum NullValue {
- NULL_VALUE = 0
- }
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
- /** Properties of a ListValue. */
- interface IListValue {
+ /** WaitOperationRequest name */
+ name?: (string|null);
- /** ListValue values */
- values?: (google.protobuf.IValue[]|null);
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
}
- /** Represents a ListValue. */
- class ListValue implements IListValue {
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
/**
- * Constructs a new ListValue.
+ * Constructs a new WaitOperationRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IListValue);
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
- /** ListValue values. */
- public values: google.protobuf.IValue[];
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
/**
- * Creates a new ListValue instance using the specified properties.
+ * Creates a new WaitOperationRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns ListValue instance
+ * @returns WaitOperationRequest instance
*/
- public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue;
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
/**
- * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
- * @param message ListValue message or plain object to encode
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
- * @param message ListValue message or plain object to encode
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a ListValue message from the specified reader or buffer.
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns ListValue
+ * @returns WaitOperationRequest
* @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.protobuf.ListValue;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
/**
- * Decodes a ListValue message from the specified reader or buffer, length delimited.
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns ListValue
+ * @returns WaitOperationRequest
* @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.protobuf.ListValue;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
/**
- * Verifies a ListValue message.
+ * Verifies a WaitOperationRequest 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 ListValue message from a plain object. Also converts values to their respective internal types.
+ * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ListValue
+ * @returns WaitOperationRequest
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
/**
- * Creates a plain object from a ListValue message. Also converts values to other types if specified.
- * @param message ListValue
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ListValue to JSON.
+ * Converts this WaitOperationRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ListValue
+ * Gets the default type url for WaitOperationRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of an Empty. */
- interface IEmpty {
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
}
- /** Represents an Empty. */
- class Empty implements IEmpty {
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
/**
- * Constructs a new Empty.
+ * Constructs a new OperationInfo.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IEmpty);
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
/**
- * Creates a new Empty instance using the specified properties.
+ * Creates a new OperationInfo instance using the specified properties.
* @param [properties] Properties to set
- * @returns Empty instance
+ * @returns OperationInfo instance
*/
- public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
/**
- * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
- * @param message Empty message or plain object to encode
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
- * @param message Empty message or plain object to encode
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an Empty message from the specified reader or buffer.
+ * Decodes an OperationInfo message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns Empty
+ * @returns OperationInfo
* @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.protobuf.Empty;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
/**
- * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns Empty
+ * @returns OperationInfo
* @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.protobuf.Empty;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
/**
- * Verifies an Empty message.
+ * Verifies an OperationInfo 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 Empty message from a plain object. Also converts values to their respective internal types.
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Empty
+ * @returns OperationInfo
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
/**
- * Creates a plain object from an Empty message. Also converts values to other types if specified.
- * @param message Empty
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Empty to JSON.
+ * Converts this OperationInfo to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Empty
+ * Gets the default type url for OperationInfo
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+ }
- /** Properties of a FieldMask. */
- interface IFieldMask {
+ /** Namespace rpc. */
+ namespace rpc {
- /** FieldMask paths */
- paths?: (string[]|null);
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
}
- /** Represents a FieldMask. */
- class FieldMask implements IFieldMask {
+ /** Represents a Status. */
+ class Status implements IStatus {
/**
- * Constructs a new FieldMask.
+ * Constructs a new Status.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.IFieldMask);
+ constructor(properties?: google.rpc.IStatus);
- /** FieldMask paths. */
- public paths: string[];
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
/**
- * Creates a new FieldMask instance using the specified properties.
+ * Creates a new Status instance using the specified properties.
* @param [properties] Properties to set
- * @returns FieldMask instance
+ * @returns Status instance
*/
- public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
/**
- * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
- * @param message FieldMask message or plain object to encode
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
- * @param message FieldMask message or plain object to encode
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a FieldMask message from the specified reader or buffer.
+ * Decodes a Status message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns FieldMask
+ * @returns Status
* @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.protobuf.FieldMask;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
/**
- * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * Decodes a Status message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns FieldMask
+ * @returns Status
* @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.protobuf.FieldMask;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
/**
- * Verifies a FieldMask message.
+ * Verifies a Status 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 FieldMask message from a plain object. Also converts values to their respective internal types.
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns FieldMask
+ * @returns Status
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
/**
- * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
- * @param message FieldMask
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this FieldMask to JSON.
+ * Converts this Status to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for FieldMask
+ * Gets the default type url for Status
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
diff --git a/packages/google-cloud-video-stitcher/protos/protos.js b/packages/google-cloud-video-stitcher/protos/protos.js
index 44453ecd033..98696b8efa8 100644
--- a/packages/google-cloud-video-stitcher/protos/protos.js
+++ b/packages/google-cloud-video-stitcher/protos/protos.js
@@ -4578,33 +4578,48 @@
return ProgressEvent;
})();
- v1.VodSession = (function() {
+ /**
+ * 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() {
/**
- * Properties of a VodSession.
+ * Properties of a LiveConfig.
* @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 {boolean|null} [clientAdTracking] VodSession clientAdTracking
- * @property {google.cloud.video.stitcher.v1.IManifestOptions|null} [manifestOptions] VodSession manifestOptions
- * @property {string|null} [assetId] VodSession assetId
+ * @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
*/
/**
- * Constructs a new VodSession.
+ * Constructs a new LiveConfig.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a VodSession.
- * @implements IVodSession
+ * @classdesc Represents a LiveConfig.
+ * @implements ILiveConfig
* @constructor
- * @param {google.cloud.video.stitcher.v1.IVodSession=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.ILiveConfig=} [properties] Properties to set
*/
- function VodSession(properties) {
- this.adTagMacroMap = {};
+ function LiveConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -4612,151 +4627,150 @@
}
/**
- * VodSession name.
+ * LiveConfig name.
* @member {string} name
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @instance
*/
- VodSession.prototype.name = "";
+ LiveConfig.prototype.name = "";
/**
- * VodSession interstitials.
- * @member {google.cloud.video.stitcher.v1.IInterstitials|null|undefined} interstitials
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * LiveConfig sourceUri.
+ * @member {string} sourceUri
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @instance
*/
- VodSession.prototype.interstitials = null;
+ LiveConfig.prototype.sourceUri = "";
/**
- * VodSession playUri.
- * @member {string} playUri
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * LiveConfig adTagUri.
+ * @member {string} adTagUri
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @instance
*/
- VodSession.prototype.playUri = "";
+ LiveConfig.prototype.adTagUri = "";
/**
- * VodSession sourceUri.
- * @member {string} sourceUri
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * LiveConfig gamLiveConfig.
+ * @member {google.cloud.video.stitcher.v1.IGamLiveConfig|null|undefined} gamLiveConfig
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @instance
*/
- VodSession.prototype.sourceUri = "";
+ LiveConfig.prototype.gamLiveConfig = null;
/**
- * VodSession adTagUri.
- * @member {string} adTagUri
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * LiveConfig state.
+ * @member {google.cloud.video.stitcher.v1.LiveConfig.State} state
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @instance
*/
- VodSession.prototype.adTagUri = "";
+ LiveConfig.prototype.state = 0;
/**
- * VodSession adTagMacroMap.
- * @member {Object.} adTagMacroMap
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * LiveConfig adTracking.
+ * @member {google.cloud.video.stitcher.v1.AdTracking} adTracking
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @instance
*/
- VodSession.prototype.adTagMacroMap = $util.emptyObject;
+ LiveConfig.prototype.adTracking = 0;
/**
- * VodSession clientAdTracking.
- * @member {boolean} clientAdTracking
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * LiveConfig defaultSlate.
+ * @member {string} defaultSlate
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @instance
*/
- VodSession.prototype.clientAdTracking = false;
+ LiveConfig.prototype.defaultSlate = "";
/**
- * VodSession manifestOptions.
- * @member {google.cloud.video.stitcher.v1.IManifestOptions|null|undefined} manifestOptions
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * LiveConfig stitchingPolicy.
+ * @member {google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy} stitchingPolicy
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @instance
*/
- VodSession.prototype.manifestOptions = null;
+ LiveConfig.prototype.stitchingPolicy = 0;
/**
- * VodSession assetId.
- * @member {string} assetId
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * LiveConfig prefetchConfig.
+ * @member {google.cloud.video.stitcher.v1.IPrefetchConfig|null|undefined} prefetchConfig
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @instance
*/
- VodSession.prototype.assetId = "";
+ LiveConfig.prototype.prefetchConfig = null;
/**
- * Creates a new VodSession instance using the specified properties.
+ * Creates a new LiveConfig instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @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.ILiveConfig=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.LiveConfig} LiveConfig instance
*/
- VodSession.create = function create(properties) {
- return new VodSession(properties);
+ LiveConfig.create = function create(properties) {
+ return new LiveConfig(properties);
};
/**
- * Encodes the specified VodSession message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSession.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.VodSession
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @static
- * @param {google.cloud.video.stitcher.v1.IVodSession} message VodSession 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
*/
- VodSession.encode = function encode(message, writer) {
+ LiveConfig.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);
+ writer.uint32(/* id 2, wireType 2 =*/18).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.clientAdTracking != null && Object.hasOwnProperty.call(message, "clientAdTracking"))
- writer.uint32(/* id 8, wireType 0 =*/64).bool(message.clientAdTracking);
- 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);
+ 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();
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 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.VodSession
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @static
- * @param {google.cloud.video.stitcher.v1.IVodSession} message VodSession 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
*/
- VodSession.encodeDelimited = function encodeDelimited(message, writer) {
+ LiveConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a VodSession 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.VodSession
+ * @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.VodSession} VodSession
+ * @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
*/
- VodSession.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.VodSession(), key, value;
+ 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) {
@@ -4765,54 +4779,35 @@
break;
}
case 2: {
- message.interstitials = $root.google.cloud.video.stitcher.v1.Interstitials.decode(reader, reader.uint32());
+ message.sourceUri = reader.string();
+ break;
+ }
+ case 3: {
+ message.adTagUri = reader.string();
break;
}
case 4: {
- message.playUri = reader.string();
+ message.gamLiveConfig = $root.google.cloud.video.stitcher.v1.GamLiveConfig.decode(reader, reader.uint32());
break;
}
case 5: {
- message.sourceUri = reader.string();
+ message.state = reader.int32();
break;
}
case 6: {
- message.adTagUri = reader.string();
+ message.adTracking = reader.int32();
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;
+ message.defaultSlate = reader.string();
break;
}
case 8: {
- message.clientAdTracking = reader.bool();
- break;
- }
- case 9: {
- message.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.decode(reader, reader.uint32());
+ message.stitchingPolicy = reader.int32();
break;
}
case 10: {
- message.assetId = reader.string();
+ message.prefetchConfig = $root.google.cloud.video.stitcher.v1.PrefetchConfig.decode(reader, reader.uint32());
break;
}
default:
@@ -4824,214 +4819,309 @@
};
/**
- * Decodes a VodSession 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.VodSession
+ * @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.VodSession} VodSession
+ * @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
*/
- VodSession.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 VodSession message.
+ * Verifies a LiveConfig message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * @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
*/
- VodSession.verify = function verify(message) {
+ LiveConfig.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 (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.gamLiveConfig != null && message.hasOwnProperty("gamLiveConfig")) {
+ var error = $root.google.cloud.video.stitcher.v1.GamLiveConfig.verify(message.gamLiveConfig);
+ if (error)
+ return "gamLiveConfig." + error;
}
- if (message.clientAdTracking != null && message.hasOwnProperty("clientAdTracking"))
- if (typeof message.clientAdTracking !== "boolean")
- return "clientAdTracking: boolean expected";
- if (message.manifestOptions != null && message.hasOwnProperty("manifestOptions")) {
- var error = $root.google.cloud.video.stitcher.v1.ManifestOptions.verify(message.manifestOptions);
+ 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 "manifestOptions." + error;
+ return "prefetchConfig." + error;
}
- if (message.assetId != null && message.hasOwnProperty("assetId"))
- if (!$util.isString(message.assetId))
- return "assetId: string expected";
return null;
};
/**
- * Creates a VodSession 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.VodSession
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.VodSession} VodSession
+ * @returns {google.cloud.video.stitcher.v1.LiveConfig} LiveConfig
*/
- VodSession.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.VodSession)
+ 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.VodSession();
+ var message = new $root.google.cloud.video.stitcher.v1.LiveConfig();
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.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);
}
- if (object.clientAdTracking != null)
- message.clientAdTracking = Boolean(object.clientAdTracking);
- 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);
+ 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.assetId != null)
- message.assetId = String(object.assetId);
return message;
};
/**
- * Creates a plain object from a VodSession 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.VodSession
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @static
- * @param {google.cloud.video.stitcher.v1.VodSession} message VodSession
+ * @param {google.cloud.video.stitcher.v1.LiveConfig} message LiveConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- VodSession.toObject = function toObject(message, options) {
+ LiveConfig.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.clientAdTracking = false;
- object.manifestOptions = null;
- object.assetId = "";
+ 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 (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.clientAdTracking != null && message.hasOwnProperty("clientAdTracking"))
- object.clientAdTracking = message.clientAdTracking;
- 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.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 VodSession to JSON.
+ * Converts this LiveConfig to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @instance
* @returns {Object.} JSON object
*/
- VodSession.prototype.toJSON = function toJSON() {
+ LiveConfig.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 LiveConfig
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.VodSession
+ * @memberof google.cloud.video.stitcher.v1.LiveConfig
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- VodSession.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ LiveConfig.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.LiveConfig";
};
- return VodSession;
+ /**
+ * 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.Interstitials = (function() {
+ v1.PrefetchConfig = (function() {
/**
- * Properties of an Interstitials.
+ * Properties of a PrefetchConfig.
* @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
+ * @interface IPrefetchConfig
+ * @property {boolean|null} [enabled] PrefetchConfig enabled
+ * @property {google.protobuf.IDuration|null} [initialAdRequestDuration] PrefetchConfig initialAdRequestDuration
*/
/**
- * Constructs a new Interstitials.
+ * Constructs a new PrefetchConfig.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents an Interstitials.
- * @implements IInterstitials
+ * @classdesc Represents a PrefetchConfig.
+ * @implements IPrefetchConfig
* @constructor
- * @param {google.cloud.video.stitcher.v1.IInterstitials=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IPrefetchConfig=} [properties] Properties to set
*/
- function Interstitials(properties) {
- this.adBreaks = [];
+ function PrefetchConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -5039,92 +5129,89 @@
}
/**
- * Interstitials adBreaks.
- * @member {Array.} adBreaks
- * @memberof google.cloud.video.stitcher.v1.Interstitials
+ * PrefetchConfig enabled.
+ * @member {boolean} enabled
+ * @memberof google.cloud.video.stitcher.v1.PrefetchConfig
* @instance
*/
- Interstitials.prototype.adBreaks = $util.emptyArray;
+ PrefetchConfig.prototype.enabled = false;
/**
- * Interstitials sessionContent.
- * @member {google.cloud.video.stitcher.v1.IVodSessionContent|null|undefined} sessionContent
- * @memberof google.cloud.video.stitcher.v1.Interstitials
+ * PrefetchConfig initialAdRequestDuration.
+ * @member {google.protobuf.IDuration|null|undefined} initialAdRequestDuration
+ * @memberof google.cloud.video.stitcher.v1.PrefetchConfig
* @instance
*/
- Interstitials.prototype.sessionContent = null;
+ PrefetchConfig.prototype.initialAdRequestDuration = null;
/**
- * Creates a new Interstitials instance using the specified properties.
+ * Creates a new PrefetchConfig instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.Interstitials
+ * @memberof google.cloud.video.stitcher.v1.PrefetchConfig
* @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.IPrefetchConfig=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.PrefetchConfig} PrefetchConfig instance
*/
- Interstitials.create = function create(properties) {
- return new Interstitials(properties);
+ PrefetchConfig.create = function create(properties) {
+ return new PrefetchConfig(properties);
};
/**
- * Encodes the specified Interstitials message. Does not implicitly {@link google.cloud.video.stitcher.v1.Interstitials.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.Interstitials
+ * @memberof google.cloud.video.stitcher.v1.PrefetchConfig
* @static
- * @param {google.cloud.video.stitcher.v1.IInterstitials} message Interstitials 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
*/
- Interstitials.encode = function encode(message, writer) {
+ PrefetchConfig.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.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 Interstitials message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.Interstitials.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.Interstitials
+ * @memberof google.cloud.video.stitcher.v1.PrefetchConfig
* @static
- * @param {google.cloud.video.stitcher.v1.IInterstitials} message Interstitials 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
*/
- Interstitials.encodeDelimited = function encodeDelimited(message, writer) {
+ PrefetchConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes an Interstitials 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.Interstitials
+ * @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.Interstitials} Interstitials
+ * @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
*/
- Interstitials.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.Interstitials();
+ 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: {
- if (!(message.adBreaks && message.adBreaks.length))
- message.adBreaks = [];
- message.adBreaks.push($root.google.cloud.video.stitcher.v1.VodSessionAdBreak.decode(reader, reader.uint32()));
+ message.enabled = reader.bool();
break;
}
case 2: {
- message.sessionContent = $root.google.cloud.video.stitcher.v1.VodSessionContent.decode(reader, reader.uint32());
+ message.initialAdRequestDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32());
break;
}
default:
@@ -5136,156 +5223,138 @@
};
/**
- * Decodes an Interstitials 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.Interstitials
+ * @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.Interstitials} Interstitials
+ * @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
*/
- Interstitials.decodeDelimited = function decodeDelimited(reader) {
+ PrefetchConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies an Interstitials message.
+ * Verifies a PrefetchConfig message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.Interstitials
+ * @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
*/
- Interstitials.verify = function verify(message) {
+ PrefetchConfig.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 (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 "sessionContent." + error;
+ return "initialAdRequestDuration." + error;
}
return null;
};
/**
- * Creates an Interstitials 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.Interstitials
+ * @memberof google.cloud.video.stitcher.v1.PrefetchConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.Interstitials} Interstitials
+ * @returns {google.cloud.video.stitcher.v1.PrefetchConfig} PrefetchConfig
*/
- Interstitials.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.Interstitials)
+ 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.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.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 an Interstitials 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.Interstitials
+ * @memberof google.cloud.video.stitcher.v1.PrefetchConfig
* @static
- * @param {google.cloud.video.stitcher.v1.Interstitials} message Interstitials
+ * @param {google.cloud.video.stitcher.v1.PrefetchConfig} message PrefetchConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- Interstitials.toObject = function toObject(message, options) {
+ PrefetchConfig.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.enabled = false;
+ object.initialAdRequestDuration = null;
}
- if (message.sessionContent != null && message.hasOwnProperty("sessionContent"))
- object.sessionContent = $root.google.cloud.video.stitcher.v1.VodSessionContent.toObject(message.sessionContent, 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 Interstitials to JSON.
+ * Converts this PrefetchConfig to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.Interstitials
+ * @memberof google.cloud.video.stitcher.v1.PrefetchConfig
* @instance
* @returns {Object.} JSON object
*/
- Interstitials.prototype.toJSON = function toJSON() {
+ PrefetchConfig.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 PrefetchConfig
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.Interstitials
+ * @memberof google.cloud.video.stitcher.v1.PrefetchConfig
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- Interstitials.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ PrefetchConfig.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.PrefetchConfig";
};
- return Interstitials;
+ return PrefetchConfig;
})();
- v1.VodSessionAd = (function() {
+ v1.GamLiveConfig = (function() {
/**
- * Properties of a VodSessionAd.
+ * Properties of a GamLiveConfig.
* @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 IGamLiveConfig
+ * @property {string|null} [networkCode] GamLiveConfig networkCode
+ * @property {string|null} [assetKey] GamLiveConfig assetKey
+ * @property {string|null} [customAssetKey] GamLiveConfig customAssetKey
*/
/**
- * Constructs a new VodSessionAd.
+ * Constructs a new GamLiveConfig.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a VodSessionAd.
- * @implements IVodSessionAd
+ * @classdesc Represents a GamLiveConfig.
+ * @implements IGamLiveConfig
* @constructor
- * @param {google.cloud.video.stitcher.v1.IVodSessionAd=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IGamLiveConfig=} [properties] Properties to set
*/
- function VodSessionAd(properties) {
- this.activityEvents = [];
+ function GamLiveConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -5293,106 +5362,103 @@
}
/**
- * VodSessionAd duration.
- * @member {google.protobuf.IDuration|null|undefined} duration
- * @memberof google.cloud.video.stitcher.v1.VodSessionAd
+ * GamLiveConfig networkCode.
+ * @member {string} networkCode
+ * @memberof google.cloud.video.stitcher.v1.GamLiveConfig
* @instance
*/
- VodSessionAd.prototype.duration = null;
+ GamLiveConfig.prototype.networkCode = "";
/**
- * VodSessionAd companionAds.
- * @member {google.cloud.video.stitcher.v1.ICompanionAds|null|undefined} companionAds
- * @memberof google.cloud.video.stitcher.v1.VodSessionAd
+ * GamLiveConfig assetKey.
+ * @member {string} assetKey
+ * @memberof google.cloud.video.stitcher.v1.GamLiveConfig
* @instance
*/
- VodSessionAd.prototype.companionAds = null;
+ GamLiveConfig.prototype.assetKey = "";
/**
- * VodSessionAd activityEvents.
- * @member {Array.} activityEvents
- * @memberof google.cloud.video.stitcher.v1.VodSessionAd
+ * GamLiveConfig customAssetKey.
+ * @member {string} customAssetKey
+ * @memberof google.cloud.video.stitcher.v1.GamLiveConfig
* @instance
*/
- VodSessionAd.prototype.activityEvents = $util.emptyArray;
+ GamLiveConfig.prototype.customAssetKey = "";
/**
- * Creates a new VodSessionAd instance using the specified properties.
+ * Creates a new GamLiveConfig instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.VodSessionAd
+ * @memberof google.cloud.video.stitcher.v1.GamLiveConfig
* @static
- * @param {google.cloud.video.stitcher.v1.IVodSessionAd=} [properties] Properties to set
- * @returns {google.cloud.video.stitcher.v1.VodSessionAd} VodSessionAd instance
+ * @param {google.cloud.video.stitcher.v1.IGamLiveConfig=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.GamLiveConfig} GamLiveConfig instance
*/
- VodSessionAd.create = function create(properties) {
- return new VodSessionAd(properties);
+ GamLiveConfig.create = function create(properties) {
+ return new GamLiveConfig(properties);
};
/**
- * Encodes the specified VodSessionAd message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAd.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.VodSessionAd
+ * @memberof google.cloud.video.stitcher.v1.GamLiveConfig
* @static
- * @param {google.cloud.video.stitcher.v1.IVodSessionAd} message VodSessionAd 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
*/
- VodSessionAd.encode = function encode(message, writer) {
+ GamLiveConfig.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();
+ 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 VodSessionAd message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAd.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.VodSessionAd
+ * @memberof google.cloud.video.stitcher.v1.GamLiveConfig
* @static
- * @param {google.cloud.video.stitcher.v1.IVodSessionAd} message VodSessionAd 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
*/
- VodSessionAd.encodeDelimited = function encodeDelimited(message, writer) {
+ GamLiveConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a VodSessionAd 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.VodSessionAd
+ * @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.VodSessionAd} VodSessionAd
+ * @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
*/
- VodSessionAd.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.VodSessionAd();
+ 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.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ message.networkCode = reader.string();
break;
}
case 2: {
- message.companionAds = $root.google.cloud.video.stitcher.v1.CompanionAds.decode(reader, reader.uint32());
+ message.assetKey = reader.string();
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()));
+ message.customAssetKey = reader.string();
break;
}
default:
@@ -5404,167 +5470,149 @@
};
/**
- * Decodes a VodSessionAd 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.VodSessionAd
+ * @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.VodSessionAd} VodSessionAd
+ * @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
*/
- VodSessionAd.decodeDelimited = function decodeDelimited(reader) {
+ GamLiveConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a VodSessionAd message.
+ * Verifies a GamLiveConfig message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.VodSessionAd
+ * @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
*/
- VodSessionAd.verify = function verify(message) {
+ GamLiveConfig.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 (error)
- return "duration." + error;
- }
- if (message.companionAds != null && message.hasOwnProperty("companionAds")) {
- var error = $root.google.cloud.video.stitcher.v1.CompanionAds.verify(message.companionAds);
- if (error)
- return "companionAds." + 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.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 a VodSessionAd 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.VodSessionAd
+ * @memberof google.cloud.video.stitcher.v1.GamLiveConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.VodSessionAd} VodSessionAd
+ * @returns {google.cloud.video.stitcher.v1.GamLiveConfig} GamLiveConfig
*/
- VodSessionAd.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.VodSessionAd)
+ 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.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);
- }
- 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]);
- }
- }
+ 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 a VodSessionAd 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.VodSessionAd
+ * @memberof google.cloud.video.stitcher.v1.GamLiveConfig
* @static
- * @param {google.cloud.video.stitcher.v1.VodSessionAd} message VodSessionAd
+ * @param {google.cloud.video.stitcher.v1.GamLiveConfig} message GamLiveConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- VodSessionAd.toObject = function toObject(message, options) {
+ GamLiveConfig.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.arrays || options.defaults)
- object.activityEvents = [];
if (options.defaults) {
- object.duration = null;
- object.companionAds = null;
- }
- 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);
- }
+ object.networkCode = "";
+ object.assetKey = "";
+ object.customAssetKey = "";
+ }
+ 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 VodSessionAd to JSON.
+ * Converts this GamLiveConfig to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.VodSessionAd
+ * @memberof google.cloud.video.stitcher.v1.GamLiveConfig
* @instance
* @returns {Object.} JSON object
*/
- VodSessionAd.prototype.toJSON = function toJSON() {
+ GamLiveConfig.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 GamLiveConfig
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.VodSessionAd
+ * @memberof google.cloud.video.stitcher.v1.GamLiveConfig
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- VodSessionAd.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ GamLiveConfig.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.GamLiveConfig";
};
- return VodSessionAd;
+ return GamLiveConfig;
})();
- v1.VodSessionContent = (function() {
+ v1.VodSession = (function() {
/**
- * Properties of a VodSessionContent.
+ * Properties of a VodSession.
* @memberof google.cloud.video.stitcher.v1
- * @interface IVodSessionContent
- * @property {google.protobuf.IDuration|null} [duration] VodSessionContent duration
+ * @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
*/
/**
- * Constructs a new VodSessionContent.
+ * Constructs a new VodSession.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a VodSessionContent.
- * @implements IVodSessionContent
+ * @classdesc Represents a VodSession.
+ * @implements IVodSession
* @constructor
- * @param {google.cloud.video.stitcher.v1.IVodSessionContent=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IVodSession=} [properties] Properties to set
*/
- function VodSessionContent(properties) {
+ function VodSession(properties) {
+ this.adTagMacroMap = {};
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -5572,75 +5620,221 @@
}
/**
- * VodSessionContent duration.
- * @member {google.protobuf.IDuration|null|undefined} duration
- * @memberof google.cloud.video.stitcher.v1.VodSessionContent
+ * VodSession name.
+ * @member {string} name
+ * @memberof google.cloud.video.stitcher.v1.VodSession
* @instance
*/
- VodSessionContent.prototype.duration = null;
+ VodSession.prototype.name = "";
/**
- * Creates a new VodSessionContent instance using the specified properties.
+ * 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
+ * @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;
+
+ /**
+ * Creates a new VodSession instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.VodSessionContent
+ * @memberof google.cloud.video.stitcher.v1.VodSession
* @static
- * @param {google.cloud.video.stitcher.v1.IVodSessionContent=} [properties] Properties to set
- * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent instance
+ * @param {google.cloud.video.stitcher.v1.IVodSession=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.VodSession} VodSession instance
*/
- VodSessionContent.create = function create(properties) {
- return new VodSessionContent(properties);
+ VodSession.create = function create(properties) {
+ return new VodSession(properties);
};
/**
- * Encodes the specified VodSessionContent message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionContent.verify|verify} messages.
+ * 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.VodSessionContent
+ * @memberof google.cloud.video.stitcher.v1.VodSession
* @static
- * @param {google.cloud.video.stitcher.v1.IVodSessionContent} message VodSessionContent message or plain object to encode
+ * @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
*/
- VodSessionContent.encode = function encode(message, writer) {
+ VodSession.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.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();
return writer;
};
/**
- * Encodes the specified VodSessionContent message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionContent.verify|verify} messages.
+ * 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.VodSessionContent
+ * @memberof google.cloud.video.stitcher.v1.VodSession
* @static
- * @param {google.cloud.video.stitcher.v1.IVodSessionContent} message VodSessionContent message or plain object to encode
+ * @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
*/
- VodSessionContent.encodeDelimited = function encodeDelimited(message, writer) {
+ VodSession.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a VodSessionContent message from the specified reader or buffer.
+ * Decodes a VodSession message from the specified reader or buffer.
* @function decode
- * @memberof google.cloud.video.stitcher.v1.VodSessionContent
+ * @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.VodSessionContent} VodSessionContent
+ * @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
*/
- VodSessionContent.decode = function decode(reader, length) {
+ 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.VodSessionContent();
+ 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.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());
break;
}
default:
@@ -5652,132 +5846,478 @@
};
/**
- * Decodes a VodSessionContent 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.VodSessionContent
+ * @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.VodSessionContent} VodSessionContent
+ * @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
*/
- VodSessionContent.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 VodSessionContent message.
+ * Verifies a VodSession message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.VodSessionContent
+ * @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
*/
- VodSessionContent.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.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 null;
};
/**
- * Creates a VodSessionContent 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.VodSessionContent
+ * @memberof google.cloud.video.stitcher.v1.VodSession
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent
+ * @returns {google.cloud.video.stitcher.v1.VodSession} VodSession
*/
- VodSessionContent.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.VodSessionContent)
+ 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.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.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);
}
return message;
};
/**
- * Creates a plain object from a VodSessionContent 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.VodSessionContent
+ * @memberof google.cloud.video.stitcher.v1.VodSession
* @static
- * @param {google.cloud.video.stitcher.v1.VodSessionContent} message VodSessionContent
+ * @param {google.cloud.video.stitcher.v1.VodSession} message VodSession
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- VodSessionContent.toObject = function toObject(message, options) {
+ VodSession.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults)
- object.duration = null;
- if (message.duration != null && message.hasOwnProperty("duration"))
- object.duration = $root.google.protobuf.Duration.toObject(message.duration, options);
+ 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]];
+ }
+ 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);
return object;
};
/**
- * Converts this VodSessionContent to JSON.
+ * Converts this VodSession to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.VodSessionContent
+ * @memberof google.cloud.video.stitcher.v1.VodSession
* @instance
* @returns {Object.} JSON object
*/
- VodSessionContent.prototype.toJSON = function toJSON() {
+ VodSession.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 VodSession
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.VodSessionContent
+ * @memberof google.cloud.video.stitcher.v1.VodSession
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- VodSessionContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ VodSession.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.VodSession";
};
- return VodSessionContent;
+ VodSession.GamSettings = (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
+ */
+
+ /**
+ * 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]];
+ }
+
+ /**
+ * GamSettings networkCode.
+ * @member {string} networkCode
+ * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings
+ * @instance
+ */
+ GamSettings.prototype.networkCode = "";
+
+ /**
+ * GamSettings streamId.
+ * @member {string} streamId
+ * @memberof google.cloud.video.stitcher.v1.VodSession.GamSettings
+ * @instance
+ */
+ GamSettings.prototype.streamId = "";
+
+ /**
+ * 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.VodSessionAdBreak = (function() {
+ v1.Interstitials = (function() {
/**
- * Properties of a VodSessionAdBreak.
+ * Properties of an Interstitials.
* @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 IInterstitials
+ * @property {Array.|null} [adBreaks] Interstitials adBreaks
+ * @property {google.cloud.video.stitcher.v1.IVodSessionContent|null} [sessionContent] Interstitials sessionContent
*/
/**
- * Constructs a new VodSessionAdBreak.
+ * Constructs a new Interstitials.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a VodSessionAdBreak.
- * @implements IVodSessionAdBreak
+ * @classdesc Represents an Interstitials.
+ * @implements IInterstitials
* @constructor
- * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IInterstitials=} [properties] Properties to set
*/
- function VodSessionAdBreak(properties) {
- this.progressEvents = [];
- this.ads = [];
+ function Interstitials(properties) {
+ this.adBreaks = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -5785,123 +6325,92 @@
}
/**
- * 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
- * @instance
- */
- VodSessionAdBreak.prototype.ads = $util.emptyArray;
-
- /**
- * VodSessionAdBreak endTimeOffset.
- * @member {google.protobuf.IDuration|null|undefined} endTimeOffset
- * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak
+ * Interstitials adBreaks.
+ * @member {Array.} adBreaks
+ * @memberof google.cloud.video.stitcher.v1.Interstitials
* @instance
*/
- VodSessionAdBreak.prototype.endTimeOffset = null;
+ Interstitials.prototype.adBreaks = $util.emptyArray;
/**
- * VodSessionAdBreak startTimeOffset.
- * @member {google.protobuf.IDuration|null|undefined} startTimeOffset
- * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak
+ * Interstitials sessionContent.
+ * @member {google.cloud.video.stitcher.v1.IVodSessionContent|null|undefined} sessionContent
+ * @memberof google.cloud.video.stitcher.v1.Interstitials
* @instance
*/
- VodSessionAdBreak.prototype.startTimeOffset = null;
+ Interstitials.prototype.sessionContent = null;
/**
- * Creates a new VodSessionAdBreak instance using the specified properties.
+ * Creates a new Interstitials instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak
+ * @memberof google.cloud.video.stitcher.v1.Interstitials
* @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.IInterstitials=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.Interstitials} Interstitials instance
*/
- VodSessionAdBreak.create = function create(properties) {
- return new VodSessionAdBreak(properties);
+ Interstitials.create = function create(properties) {
+ return new Interstitials(properties);
};
/**
- * Encodes the specified VodSessionAdBreak message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAdBreak.verify|verify} messages.
+ * 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.VodSessionAdBreak
+ * @memberof google.cloud.video.stitcher.v1.Interstitials
* @static
- * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak} message VodSessionAdBreak message or plain object to encode
+ * @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
*/
- VodSessionAdBreak.encode = function encode(message, writer) {
+ Interstitials.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.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 VodSessionAdBreak message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodSessionAdBreak.verify|verify} messages.
+ * 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.VodSessionAdBreak
+ * @memberof google.cloud.video.stitcher.v1.Interstitials
* @static
- * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak} message VodSessionAdBreak message or plain object to encode
+ * @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
*/
- VodSessionAdBreak.encodeDelimited = function encodeDelimited(message, writer) {
+ Interstitials.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a VodSessionAdBreak 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.VodSessionAdBreak
+ * @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.VodSessionAdBreak} VodSessionAdBreak
+ * @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
*/
- VodSessionAdBreak.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.VodSessionAdBreak();
+ 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: {
- if (!(message.progressEvents && message.progressEvents.length))
- message.progressEvents = [];
- message.progressEvents.push($root.google.cloud.video.stitcher.v1.ProgressEvent.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;
}
case 2: {
- 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());
+ message.sessionContent = $root.google.cloud.video.stitcher.v1.VodSessionContent.decode(reader, reader.uint32());
break;
}
default:
@@ -5913,205 +6422,156 @@
};
/**
- * Decodes a VodSessionAdBreak 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.VodSessionAdBreak
+ * @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.VodSessionAdBreak} VodSessionAdBreak
+ * @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
*/
- VodSessionAdBreak.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 VodSessionAdBreak message.
+ * Verifies an Interstitials message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak
+ * @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
*/
- VodSessionAdBreak.verify = function verify(message) {
+ Interstitials.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.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 (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 "ads." + error;
+ return "adBreaks." + 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 (message.sessionContent != null && message.hasOwnProperty("sessionContent")) {
+ var error = $root.google.cloud.video.stitcher.v1.VodSessionContent.verify(message.sessionContent);
if (error)
- return "startTimeOffset." + error;
+ return "sessionContent." + error;
}
return null;
};
/**
- * Creates a VodSessionAdBreak 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.VodSessionAdBreak
+ * @memberof google.cloud.video.stitcher.v1.Interstitials
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.VodSessionAdBreak} VodSessionAdBreak
+ * @returns {google.cloud.video.stitcher.v1.Interstitials} Interstitials
*/
- VodSessionAdBreak.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.VodSessionAdBreak)
+ 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.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.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.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);
+ 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 VodSessionAdBreak 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.VodSessionAdBreak
+ * @memberof google.cloud.video.stitcher.v1.Interstitials
* @static
- * @param {google.cloud.video.stitcher.v1.VodSessionAdBreak} message VodSessionAdBreak
+ * @param {google.cloud.video.stitcher.v1.Interstitials} message Interstitials
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- VodSessionAdBreak.toObject = function toObject(message, options) {
+ Interstitials.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.arrays || options.defaults) {
- object.progressEvents = [];
- object.ads = [];
- }
- 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 (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 (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);
+ if (message.sessionContent != null && message.hasOwnProperty("sessionContent"))
+ object.sessionContent = $root.google.cloud.video.stitcher.v1.VodSessionContent.toObject(message.sessionContent, options);
return object;
};
/**
- * Converts this VodSessionAdBreak to JSON.
+ * Converts this Interstitials to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak
+ * @memberof google.cloud.video.stitcher.v1.Interstitials
* @instance
* @returns {Object.} JSON object
*/
- VodSessionAdBreak.prototype.toJSON = function toJSON() {
+ Interstitials.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 Interstitials
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak
+ * @memberof google.cloud.video.stitcher.v1.Interstitials
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- VodSessionAdBreak.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ Interstitials.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.Interstitials";
};
- return VodSessionAdBreak;
+ return Interstitials;
})();
- v1.LiveSession = (function() {
+ v1.VodSessionAd = (function() {
/**
- * Properties of a LiveSession.
+ * Properties of a VodSessionAd.
* @memberof google.cloud.video.stitcher.v1
- * @interface ILiveSession
- * @property {string|null} [name] LiveSession name
- * @property {string|null} [playUri] LiveSession playUri
- * @property {string|null} [sourceUri] LiveSession sourceUri
- * @property {string|null} [defaultAdTagId] LiveSession defaultAdTagId
- * @property {Object.|null} [adTagMap] LiveSession adTagMap
- * @property {Object.|null} [adTagMacros] LiveSession adTagMacros
- * @property {boolean|null} [clientAdTracking] LiveSession clientAdTracking
- * @property {string|null} [defaultSlateId] LiveSession defaultSlateId
- * @property {google.cloud.video.stitcher.v1.LiveSession.StitchingPolicy|null} [stitchingPolicy] LiveSession stitchingPolicy
- * @property {google.cloud.video.stitcher.v1.IManifestOptions|null} [manifestOptions] LiveSession manifestOptions
- * @property {string|null} [streamId] LiveSession streamId
+ * @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 LiveSession.
+ * Constructs a new VodSessionAd.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a LiveSession.
- * @implements ILiveSession
+ * @classdesc Represents a VodSessionAd.
+ * @implements IVodSessionAd
* @constructor
- * @param {google.cloud.video.stitcher.v1.ILiveSession=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IVodSessionAd=} [properties] Properties to set
*/
- function LiveSession(properties) {
- this.adTagMap = {};
- this.adTagMacros = {};
+ function VodSessionAd(properties) {
+ this.activityEvents = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -6119,257 +6579,106 @@
}
/**
- * 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
+ * VodSessionAd duration.
+ * @member {google.protobuf.IDuration|null|undefined} duration
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAd
* @instance
*/
- LiveSession.prototype.playUri = "";
+ VodSessionAd.prototype.duration = null;
/**
- * LiveSession sourceUri.
- * @member {string} sourceUri
- * @memberof google.cloud.video.stitcher.v1.LiveSession
+ * VodSessionAd companionAds.
+ * @member {google.cloud.video.stitcher.v1.ICompanionAds|null|undefined} companionAds
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAd
* @instance
*/
- LiveSession.prototype.sourceUri = "";
+ VodSessionAd.prototype.companionAds = null;
/**
- * LiveSession defaultAdTagId.
- * @member {string} defaultAdTagId
- * @memberof google.cloud.video.stitcher.v1.LiveSession
+ * VodSessionAd activityEvents.
+ * @member {Array.} activityEvents
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAd
* @instance
*/
- LiveSession.prototype.defaultAdTagId = "";
+ VodSessionAd.prototype.activityEvents = $util.emptyArray;
/**
- * LiveSession adTagMap.
- * @member {Object.} adTagMap
- * @memberof google.cloud.video.stitcher.v1.LiveSession
- * @instance
+ * 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
*/
- LiveSession.prototype.adTagMap = $util.emptyObject;
+ VodSessionAd.create = function create(properties) {
+ return new VodSessionAd(properties);
+ };
/**
- * LiveSession adTagMacros.
- * @member {Object.} adTagMacros
- * @memberof google.cloud.video.stitcher.v1.LiveSession
- * @instance
+ * 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
*/
- LiveSession.prototype.adTagMacros = $util.emptyObject;
-
- /**
- * LiveSession clientAdTracking.
- * @member {boolean} clientAdTracking
- * @memberof google.cloud.video.stitcher.v1.LiveSession
- * @instance
- */
- LiveSession.prototype.clientAdTracking = false;
-
- /**
- * LiveSession defaultSlateId.
- * @member {string} defaultSlateId
- * @memberof google.cloud.video.stitcher.v1.LiveSession
- * @instance
- */
- LiveSession.prototype.defaultSlateId = "";
-
- /**
- * LiveSession stitchingPolicy.
- * @member {google.cloud.video.stitcher.v1.LiveSession.StitchingPolicy} stitchingPolicy
- * @memberof google.cloud.video.stitcher.v1.LiveSession
- * @instance
- */
- LiveSession.prototype.stitchingPolicy = 0;
-
- /**
- * 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 streamId.
- * @member {string} streamId
- * @memberof google.cloud.video.stitcher.v1.LiveSession
- * @instance
- */
- LiveSession.prototype.streamId = "";
-
- /**
- * 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 LiveSession message. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.verify|verify} messages.
- * @function encode
- * @memberof google.cloud.video.stitcher.v1.LiveSession
- * @static
- * @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
- */
- LiveSession.encode = function encode(message, writer) {
+ VodSessionAd.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.sourceUri != null && Object.hasOwnProperty.call(message, "sourceUri"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceUri);
- if (message.defaultAdTagId != null && Object.hasOwnProperty.call(message, "defaultAdTagId"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.defaultAdTagId);
- if (message.adTagMap != null && Object.hasOwnProperty.call(message, "adTagMap"))
- for (var keys = Object.keys(message.adTagMap), 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.cloud.video.stitcher.v1.AdTag.encode(message.adTagMap[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
- }
- 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.clientAdTracking != null && Object.hasOwnProperty.call(message, "clientAdTracking"))
- writer.uint32(/* id 7, wireType 0 =*/56).bool(message.clientAdTracking);
- if (message.defaultSlateId != null && Object.hasOwnProperty.call(message, "defaultSlateId"))
- writer.uint32(/* id 8, wireType 2 =*/66).string(message.defaultSlateId);
- if (message.stitchingPolicy != null && Object.hasOwnProperty.call(message, "stitchingPolicy"))
- writer.uint32(/* id 9, wireType 0 =*/72).int32(message.stitchingPolicy);
- 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.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
- writer.uint32(/* id 11, wireType 2 =*/90).string(message.streamId);
+ 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 LiveSession message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.LiveSession.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.LiveSession
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAd
* @static
- * @param {google.cloud.video.stitcher.v1.ILiveSession} message LiveSession 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
*/
- LiveSession.encodeDelimited = function encodeDelimited(message, writer) {
+ VodSessionAd.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a LiveSession 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.LiveSession
+ * @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.LiveSession} LiveSession
+ * @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
*/
- LiveSession.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.LiveSession(), key, value;
+ 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: {
- message.name = reader.string();
+ message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32());
break;
}
case 2: {
- message.playUri = reader.string();
+ message.companionAds = $root.google.cloud.video.stitcher.v1.CompanionAds.decode(reader, reader.uint32());
break;
}
case 3: {
- message.sourceUri = reader.string();
- break;
- }
- case 4: {
- message.defaultAdTagId = reader.string();
- break;
- }
- case 5: {
- if (message.adTagMap === $util.emptyObject)
- message.adTagMap = {};
- 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.cloud.video.stitcher.v1.AdTag.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag2 & 7);
- break;
- }
- }
- message.adTagMap[key] = value;
- 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 7: {
- message.clientAdTracking = reader.bool();
- break;
- }
- case 8: {
- message.defaultSlateId = reader.string();
- break;
- }
- case 9: {
- message.stitchingPolicy = reader.int32();
- break;
- }
- case 10: {
- message.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.decode(reader, reader.uint32());
- break;
- }
- case 11: {
- message.streamId = reader.string();
+ if (!(message.activityEvents && message.activityEvents.length))
+ message.activityEvents = [];
+ message.activityEvents.push($root.google.cloud.video.stitcher.v1.Event.decode(reader, reader.uint32()));
break;
}
default:
@@ -6381,282 +6690,167 @@
};
/**
- * Decodes a LiveSession 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.LiveSession
+ * @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.LiveSession} LiveSession
+ * @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
*/
- LiveSession.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 LiveSession message.
+ * Verifies a VodSessionAd message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.LiveSession
+ * @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
*/
- LiveSession.verify = function verify(message) {
+ VodSessionAd.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.sourceUri != null && message.hasOwnProperty("sourceUri"))
- if (!$util.isString(message.sourceUri))
- return "sourceUri: string expected";
- if (message.defaultAdTagId != null && message.hasOwnProperty("defaultAdTagId"))
- if (!$util.isString(message.defaultAdTagId))
- return "defaultAdTagId: string expected";
- if (message.adTagMap != null && message.hasOwnProperty("adTagMap")) {
- if (!$util.isObject(message.adTagMap))
- return "adTagMap: object expected";
- var key = Object.keys(message.adTagMap);
- for (var i = 0; i < key.length; ++i) {
- var error = $root.google.cloud.video.stitcher.v1.AdTag.verify(message.adTagMap[key[i]]);
- if (error)
- return "adTagMap." + error;
- }
+ if (message.duration != null && message.hasOwnProperty("duration")) {
+ var error = $root.google.protobuf.Duration.verify(message.duration);
+ if (error)
+ return "duration." + error;
}
- 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.companionAds != null && message.hasOwnProperty("companionAds")) {
+ var error = $root.google.cloud.video.stitcher.v1.CompanionAds.verify(message.companionAds);
+ if (error)
+ return "companionAds." + error;
}
- if (message.clientAdTracking != null && message.hasOwnProperty("clientAdTracking"))
- if (typeof message.clientAdTracking !== "boolean")
- return "clientAdTracking: boolean expected";
- if (message.defaultSlateId != null && message.hasOwnProperty("defaultSlateId"))
- if (!$util.isString(message.defaultSlateId))
- return "defaultSlateId: string expected";
- if (message.stitchingPolicy != null && message.hasOwnProperty("stitchingPolicy"))
- switch (message.stitchingPolicy) {
- default:
- return "stitchingPolicy: enum value expected";
- case 0:
- case 1:
- case 3:
- break;
+ 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.manifestOptions != null && message.hasOwnProperty("manifestOptions")) {
- var error = $root.google.cloud.video.stitcher.v1.ManifestOptions.verify(message.manifestOptions);
- if (error)
- return "manifestOptions." + error;
}
- if (message.streamId != null && message.hasOwnProperty("streamId"))
- if (!$util.isString(message.streamId))
- return "streamId: string expected";
return null;
};
/**
- * Creates a LiveSession 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.LiveSession
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAd
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.LiveSession} LiveSession
+ * @returns {google.cloud.video.stitcher.v1.VodSessionAd} VodSessionAd
*/
- LiveSession.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.LiveSession)
+ 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.LiveSession();
- if (object.name != null)
- message.name = String(object.name);
- if (object.playUri != null)
- message.playUri = String(object.playUri);
- if (object.sourceUri != null)
- message.sourceUri = String(object.sourceUri);
- if (object.defaultAdTagId != null)
- message.defaultAdTagId = String(object.defaultAdTagId);
- if (object.adTagMap) {
- if (typeof object.adTagMap !== "object")
- throw TypeError(".google.cloud.video.stitcher.v1.LiveSession.adTagMap: object expected");
- message.adTagMap = {};
- for (var keys = Object.keys(object.adTagMap), i = 0; i < keys.length; ++i) {
- if (typeof object.adTagMap[keys[i]] !== "object")
- throw TypeError(".google.cloud.video.stitcher.v1.LiveSession.adTagMap: object expected");
- message.adTagMap[keys[i]] = $root.google.cloud.video.stitcher.v1.AdTag.fromObject(object.adTagMap[keys[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.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.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.clientAdTracking != null)
- message.clientAdTracking = Boolean(object.clientAdTracking);
- if (object.defaultSlateId != null)
- message.defaultSlateId = String(object.defaultSlateId);
- switch (object.stitchingPolicy) {
- default:
- if (typeof object.stitchingPolicy === "number") {
- message.stitchingPolicy = object.stitchingPolicy;
- break;
+ 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]);
}
- break;
- case "STITCHING_POLICY_UNSPECIFIED":
- case 0:
- message.stitchingPolicy = 0;
- break;
- case "COMPLETE_AD":
- case 1:
- message.stitchingPolicy = 1;
- break;
- case "CUT_CURRENT":
- case 3:
- message.stitchingPolicy = 3;
- break;
- }
- 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.streamId != null)
- message.streamId = String(object.streamId);
return message;
};
/**
- * Creates a plain object from a LiveSession 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.LiveSession
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAd
* @static
- * @param {google.cloud.video.stitcher.v1.LiveSession} message LiveSession
+ * @param {google.cloud.video.stitcher.v1.VodSessionAd} message VodSessionAd
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- LiveSession.toObject = function toObject(message, options) {
+ VodSessionAd.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.objects || options.defaults) {
- object.adTagMap = {};
- object.adTagMacros = {};
- }
+ if (options.arrays || options.defaults)
+ object.activityEvents = [];
if (options.defaults) {
- object.name = "";
- object.playUri = "";
- object.sourceUri = "";
- object.defaultAdTagId = "";
- object.clientAdTracking = false;
- object.defaultSlateId = "";
- object.stitchingPolicy = options.enums === String ? "STITCHING_POLICY_UNSPECIFIED" : 0;
- object.manifestOptions = null;
- object.streamId = "";
- }
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.playUri != null && message.hasOwnProperty("playUri"))
- object.playUri = message.playUri;
- if (message.sourceUri != null && message.hasOwnProperty("sourceUri"))
- object.sourceUri = message.sourceUri;
- if (message.defaultAdTagId != null && message.hasOwnProperty("defaultAdTagId"))
- object.defaultAdTagId = message.defaultAdTagId;
- var keys2;
- if (message.adTagMap && (keys2 = Object.keys(message.adTagMap)).length) {
- object.adTagMap = {};
- for (var j = 0; j < keys2.length; ++j)
- object.adTagMap[keys2[j]] = $root.google.cloud.video.stitcher.v1.AdTag.toObject(message.adTagMap[keys2[j]], options);
+ object.duration = null;
+ object.companionAds = null;
}
- 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.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.clientAdTracking != null && message.hasOwnProperty("clientAdTracking"))
- object.clientAdTracking = message.clientAdTracking;
- if (message.defaultSlateId != null && message.hasOwnProperty("defaultSlateId"))
- object.defaultSlateId = message.defaultSlateId;
- if (message.stitchingPolicy != null && message.hasOwnProperty("stitchingPolicy"))
- object.stitchingPolicy = options.enums === String ? $root.google.cloud.video.stitcher.v1.LiveSession.StitchingPolicy[message.stitchingPolicy] === undefined ? message.stitchingPolicy : $root.google.cloud.video.stitcher.v1.LiveSession.StitchingPolicy[message.stitchingPolicy] : message.stitchingPolicy;
- if (message.manifestOptions != null && message.hasOwnProperty("manifestOptions"))
- object.manifestOptions = $root.google.cloud.video.stitcher.v1.ManifestOptions.toObject(message.manifestOptions, options);
- if (message.streamId != null && message.hasOwnProperty("streamId"))
- object.streamId = message.streamId;
return object;
};
/**
- * Converts this LiveSession to JSON.
+ * Converts this VodSessionAd to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.LiveSession
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAd
* @instance
* @returns {Object.} JSON object
*/
- LiveSession.prototype.toJSON = function toJSON() {
+ VodSessionAd.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 VodSessionAd
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.LiveSession
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAd
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- LiveSession.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ VodSessionAd.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.VodSessionAd";
};
- /**
- * StitchingPolicy enum.
- * @name google.cloud.video.stitcher.v1.LiveSession.StitchingPolicy
- * @enum {number}
- * @property {number} STITCHING_POLICY_UNSPECIFIED=0 STITCHING_POLICY_UNSPECIFIED value
- * @property {number} COMPLETE_AD=1 COMPLETE_AD value
- * @property {number} CUT_CURRENT=3 CUT_CURRENT value
- */
- LiveSession.StitchingPolicy = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "STITCHING_POLICY_UNSPECIFIED"] = 0;
- values[valuesById[1] = "COMPLETE_AD"] = 1;
- values[valuesById[3] = "CUT_CURRENT"] = 3;
- return values;
- })();
-
- return LiveSession;
+ return VodSessionAd;
})();
- v1.AdTag = (function() {
+ v1.VodSessionContent = (function() {
/**
- * Properties of an AdTag.
+ * Properties of a VodSessionContent.
* @memberof google.cloud.video.stitcher.v1
- * @interface IAdTag
- * @property {string|null} [uri] AdTag uri
+ * @interface IVodSessionContent
+ * @property {google.protobuf.IDuration|null} [duration] VodSessionContent duration
*/
/**
- * Constructs a new AdTag.
+ * Constructs a new VodSessionContent.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents an AdTag.
- * @implements IAdTag
+ * @classdesc Represents a VodSessionContent.
+ * @implements IVodSessionContent
* @constructor
- * @param {google.cloud.video.stitcher.v1.IAdTag=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IVodSessionContent=} [properties] Properties to set
*/
- function AdTag(properties) {
+ function VodSessionContent(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -6664,75 +6858,75 @@
}
/**
- * AdTag uri.
- * @member {string} uri
- * @memberof google.cloud.video.stitcher.v1.AdTag
+ * VodSessionContent duration.
+ * @member {google.protobuf.IDuration|null|undefined} duration
+ * @memberof google.cloud.video.stitcher.v1.VodSessionContent
* @instance
*/
- AdTag.prototype.uri = "";
+ VodSessionContent.prototype.duration = null;
/**
- * Creates a new AdTag instance using the specified properties.
+ * Creates a new VodSessionContent instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.AdTag
+ * @memberof google.cloud.video.stitcher.v1.VodSessionContent
* @static
- * @param {google.cloud.video.stitcher.v1.IAdTag=} [properties] Properties to set
- * @returns {google.cloud.video.stitcher.v1.AdTag} AdTag instance
+ * @param {google.cloud.video.stitcher.v1.IVodSessionContent=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent instance
*/
- AdTag.create = function create(properties) {
- return new AdTag(properties);
+ VodSessionContent.create = function create(properties) {
+ return new VodSessionContent(properties);
};
/**
- * Encodes the specified AdTag message. Does not implicitly {@link google.cloud.video.stitcher.v1.AdTag.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.AdTag
+ * @memberof google.cloud.video.stitcher.v1.VodSessionContent
* @static
- * @param {google.cloud.video.stitcher.v1.IAdTag} message AdTag 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
*/
- AdTag.encode = function encode(message, writer) {
+ VodSessionContent.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri);
+ 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 AdTag message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.AdTag.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.AdTag
+ * @memberof google.cloud.video.stitcher.v1.VodSessionContent
* @static
- * @param {google.cloud.video.stitcher.v1.IAdTag} message AdTag 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
*/
- AdTag.encodeDelimited = function encodeDelimited(message, writer) {
+ VodSessionContent.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes an AdTag 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.AdTag
+ * @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.AdTag} AdTag
+ * @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
*/
- AdTag.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.AdTag();
+ 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.uri = reader.string();
+ message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32());
break;
}
default:
@@ -6744,124 +6938,132 @@
};
/**
- * Decodes an AdTag 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.AdTag
+ * @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.AdTag} AdTag
+ * @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
*/
- AdTag.decodeDelimited = function decodeDelimited(reader) {
+ VodSessionContent.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies an AdTag message.
+ * Verifies a VodSessionContent message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.AdTag
+ * @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
*/
- AdTag.verify = function verify(message) {
+ VodSessionContent.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.uri != null && message.hasOwnProperty("uri"))
- if (!$util.isString(message.uri))
- return "uri: string expected";
+ if (message.duration != null && message.hasOwnProperty("duration")) {
+ var error = $root.google.protobuf.Duration.verify(message.duration);
+ if (error)
+ return "duration." + error;
+ }
return null;
};
/**
- * Creates an AdTag 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.AdTag
+ * @memberof google.cloud.video.stitcher.v1.VodSessionContent
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.AdTag} AdTag
+ * @returns {google.cloud.video.stitcher.v1.VodSessionContent} VodSessionContent
*/
- AdTag.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.AdTag)
+ 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.AdTag();
- if (object.uri != null)
- message.uri = String(object.uri);
+ 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);
+ }
return message;
};
/**
- * Creates a plain object from an AdTag 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.AdTag
+ * @memberof google.cloud.video.stitcher.v1.VodSessionContent
* @static
- * @param {google.cloud.video.stitcher.v1.AdTag} message AdTag
+ * @param {google.cloud.video.stitcher.v1.VodSessionContent} message VodSessionContent
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- AdTag.toObject = function toObject(message, options) {
+ VodSessionContent.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults)
- object.uri = "";
- if (message.uri != null && message.hasOwnProperty("uri"))
- object.uri = message.uri;
+ object.duration = null;
+ if (message.duration != null && message.hasOwnProperty("duration"))
+ object.duration = $root.google.protobuf.Duration.toObject(message.duration, options);
return object;
};
/**
- * Converts this AdTag to JSON.
+ * Converts this VodSessionContent to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.AdTag
+ * @memberof google.cloud.video.stitcher.v1.VodSessionContent
* @instance
* @returns {Object.} JSON object
*/
- AdTag.prototype.toJSON = function toJSON() {
+ VodSessionContent.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
- * Gets the default type url for AdTag
+ * Gets the default type url for VodSessionContent
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.AdTag
+ * @memberof google.cloud.video.stitcher.v1.VodSessionContent
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- AdTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ VodSessionContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
- return typeUrlPrefix + "/google.cloud.video.stitcher.v1.AdTag";
+ return typeUrlPrefix + "/google.cloud.video.stitcher.v1.VodSessionContent";
};
- return AdTag;
+ return VodSessionContent;
})();
- v1.ManifestOptions = (function() {
+ v1.VodSessionAdBreak = (function() {
/**
- * Properties of a ManifestOptions.
+ * Properties of a VodSessionAdBreak.
* @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
+ * @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
*/
/**
- * Constructs a new ManifestOptions.
+ * Constructs a new VodSessionAdBreak.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a ManifestOptions.
- * @implements IManifestOptions
+ * @classdesc Represents a VodSessionAdBreak.
+ * @implements IVodSessionAdBreak
* @constructor
- * @param {google.cloud.video.stitcher.v1.IManifestOptions=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IVodSessionAdBreak=} [properties] Properties to set
*/
- function ManifestOptions(properties) {
- this.includeRenditions = [];
+ 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)
@@ -6869,92 +7071,123 @@
}
/**
- * ManifestOptions includeRenditions.
- * @member {Array.} includeRenditions
- * @memberof google.cloud.video.stitcher.v1.ManifestOptions
+ * VodSessionAdBreak progressEvents.
+ * @member {Array.} progressEvents
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak
* @instance
*/
- ManifestOptions.prototype.includeRenditions = $util.emptyArray;
+ VodSessionAdBreak.prototype.progressEvents = $util.emptyArray;
/**
- * ManifestOptions bitrateOrder.
- * @member {google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy} bitrateOrder
- * @memberof google.cloud.video.stitcher.v1.ManifestOptions
+ * VodSessionAdBreak ads.
+ * @member {Array.} ads
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak
* @instance
*/
- ManifestOptions.prototype.bitrateOrder = 0;
+ VodSessionAdBreak.prototype.ads = $util.emptyArray;
/**
- * Creates a new ManifestOptions instance using the specified properties.
+ * VodSessionAdBreak endTimeOffset.
+ * @member {google.protobuf.IDuration|null|undefined} endTimeOffset
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak
+ * @instance
+ */
+ VodSessionAdBreak.prototype.endTimeOffset = null;
+
+ /**
+ * VodSessionAdBreak startTimeOffset.
+ * @member {google.protobuf.IDuration|null|undefined} startTimeOffset
+ * @memberof google.cloud.video.stitcher.v1.VodSessionAdBreak
+ * @instance
+ */
+ VodSessionAdBreak.prototype.startTimeOffset = null;
+
+ /**
+ * 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:
@@ -6966,189 +7199,199 @@
};
/**
- * 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
*/
/**
- * 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)
@@ -7156,89 +7399,165 @@
}
/**
- * 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.
+ * 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
+ * @instance
+ */
+ LiveSession.prototype.liveConfig = "";
+
+ /**
+ * Creates a new LiveSession instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.RenditionFilter
+ * @memberof google.cloud.video.stitcher.v1.LiveSession
* @static
- * @param {google.cloud.video.stitcher.v1.IRenditionFilter=} [properties] Properties to set
- * @returns {google.cloud.video.stitcher.v1.RenditionFilter} RenditionFilter instance
+ * @param {google.cloud.video.stitcher.v1.ILiveSession=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.LiveSession} LiveSession instance
*/
- RenditionFilter.create = function create(properties) {
- return new RenditionFilter(properties);
+ 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);
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;
}
default:
@@ -7250,132 +7569,393 @@
};
/**
- * 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";
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);
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 = "";
}
- 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;
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;
+ LiveSession.GamSettings = (function() {
+
+ /**
+ * Properties of a GamSettings.
+ * @memberof google.cloud.video.stitcher.v1.LiveSession
+ * @interface IGamSettings
+ * @property {string|null} [streamId] GamSettings streamId
+ */
+
+ /**
+ * 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]];
+ }
+
+ /**
+ * GamSettings streamId.
+ * @member {string} streamId
+ * @memberof google.cloud.video.stitcher.v1.LiveSession.GamSettings
+ * @instance
+ */
+ GamSettings.prototype.streamId = "";
+
+ /**
+ * 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.Slate = (function() {
+ v1.ManifestOptions = (function() {
/**
- * Properties of a Slate.
+ * Properties of a ManifestOptions.
* @memberof google.cloud.video.stitcher.v1
- * @interface ISlate
- * @property {string|null} [name] Slate name
- * @property {string|null} [uri] Slate uri
+ * @interface IManifestOptions
+ * @property {Array.|null} [includeRenditions] ManifestOptions includeRenditions
+ * @property {google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy|null} [bitrateOrder] ManifestOptions bitrateOrder
*/
/**
- * Constructs a new Slate.
+ * Constructs a new ManifestOptions.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a Slate.
- * @implements ISlate
+ * @classdesc Represents a ManifestOptions.
+ * @implements IManifestOptions
* @constructor
- * @param {google.cloud.video.stitcher.v1.ISlate=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IManifestOptions=} [properties] Properties to set
*/
- function Slate(properties) {
+ function ManifestOptions(properties) {
+ this.includeRenditions = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -7383,89 +7963,92 @@
}
/**
- * Slate name.
- * @member {string} name
- * @memberof google.cloud.video.stitcher.v1.Slate
+ * ManifestOptions includeRenditions.
+ * @member {Array.} includeRenditions
+ * @memberof google.cloud.video.stitcher.v1.ManifestOptions
* @instance
*/
- Slate.prototype.name = "";
+ ManifestOptions.prototype.includeRenditions = $util.emptyArray;
/**
- * Slate uri.
- * @member {string} uri
- * @memberof google.cloud.video.stitcher.v1.Slate
+ * ManifestOptions bitrateOrder.
+ * @member {google.cloud.video.stitcher.v1.ManifestOptions.OrderPolicy} bitrateOrder
+ * @memberof google.cloud.video.stitcher.v1.ManifestOptions
* @instance
*/
- Slate.prototype.uri = "";
+ ManifestOptions.prototype.bitrateOrder = 0;
/**
- * Creates a new Slate instance using the specified properties.
+ * Creates a new ManifestOptions instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.Slate
+ * @memberof google.cloud.video.stitcher.v1.ManifestOptions
* @static
- * @param {google.cloud.video.stitcher.v1.ISlate=} [properties] Properties to set
- * @returns {google.cloud.video.stitcher.v1.Slate} Slate instance
+ * @param {google.cloud.video.stitcher.v1.IManifestOptions=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.ManifestOptions} ManifestOptions instance
*/
- Slate.create = function create(properties) {
- return new Slate(properties);
+ ManifestOptions.create = function create(properties) {
+ return new ManifestOptions(properties);
};
/**
- * Encodes the specified Slate message. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.verify|verify} messages.
+ * 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.Slate
+ * @memberof google.cloud.video.stitcher.v1.ManifestOptions
* @static
- * @param {google.cloud.video.stitcher.v1.ISlate} message Slate message or plain object to encode
+ * @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
*/
- Slate.encode = function encode(message, writer) {
+ ManifestOptions.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.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 Slate message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.Slate.verify|verify} messages.
+ * 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.Slate
+ * @memberof google.cloud.video.stitcher.v1.ManifestOptions
* @static
- * @param {google.cloud.video.stitcher.v1.ISlate} message Slate message or plain object to encode
+ * @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
*/
- Slate.encodeDelimited = function encodeDelimited(message, writer) {
+ ManifestOptions.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a Slate message from the specified reader or buffer.
+ * Decodes a ManifestOptions message from the specified reader or buffer.
* @function decode
- * @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
* @param {number} [length] Message length if known beforehand
- * @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.decode = function decode(reader, length) {
+ 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.Slate();
+ 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: {
- message.name = reader.string();
+ 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.uri = reader.string();
+ message.bitrateOrder = reader.int32();
break;
}
default:
@@ -7477,133 +8060,189 @@
};
/**
- * 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.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;
+ }
+ }
+ 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);
+ 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 = "";
+ 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.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";
};
- return Slate;
+ /**
+ * 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;
})();
- v1.VodStitchDetail = (function() {
+ v1.RenditionFilter = (function() {
/**
- * Properties of a VodStitchDetail.
+ * Properties of a RenditionFilter.
* @memberof google.cloud.video.stitcher.v1
- * @interface IVodStitchDetail
- * @property {string|null} [name] VodStitchDetail name
- * @property {Array.|null} [adStitchDetails] VodStitchDetail adStitchDetails
+ * @interface IRenditionFilter
+ * @property {number|null} [bitrateBps] RenditionFilter bitrateBps
+ * @property {string|null} [codecs] RenditionFilter codecs
*/
/**
- * Constructs a new VodStitchDetail.
+ * Constructs a new RenditionFilter.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a VodStitchDetail.
- * @implements IVodStitchDetail
- * @constructor
- * @param {google.cloud.video.stitcher.v1.IVodStitchDetail=} [properties] Properties to set
+ * @classdesc Represents a RenditionFilter.
+ * @implements IRenditionFilter
+ * @constructor
+ * @param {google.cloud.video.stitcher.v1.IRenditionFilter=} [properties] Properties to set
*/
- function VodStitchDetail(properties) {
- this.adStitchDetails = [];
+ function RenditionFilter(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -7611,92 +8250,89 @@
}
/**
- * VodStitchDetail name.
- * @member {string} name
- * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
+ * RenditionFilter bitrateBps.
+ * @member {number} bitrateBps
+ * @memberof google.cloud.video.stitcher.v1.RenditionFilter
* @instance
*/
- VodStitchDetail.prototype.name = "";
+ RenditionFilter.prototype.bitrateBps = 0;
/**
- * VodStitchDetail adStitchDetails.
- * @member {Array.} adStitchDetails
- * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
+ * RenditionFilter codecs.
+ * @member {string} codecs
+ * @memberof google.cloud.video.stitcher.v1.RenditionFilter
* @instance
*/
- VodStitchDetail.prototype.adStitchDetails = $util.emptyArray;
+ RenditionFilter.prototype.codecs = "";
/**
- * Creates a new VodStitchDetail instance using the specified properties.
+ * Creates a new RenditionFilter instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.RenditionFilter
* @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.IRenditionFilter=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.RenditionFilter} RenditionFilter instance
*/
- VodStitchDetail.create = function create(properties) {
- return new VodStitchDetail(properties);
+ RenditionFilter.create = function create(properties) {
+ return new RenditionFilter(properties);
};
/**
- * Encodes the specified VodStitchDetail message. Does not implicitly {@link google.cloud.video.stitcher.v1.VodStitchDetail.verify|verify} messages.
+ * 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.VodStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.RenditionFilter
* @static
- * @param {google.cloud.video.stitcher.v1.IVodStitchDetail} message VodStitchDetail message or plain object to encode
+ * @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
*/
- VodStitchDetail.encode = function encode(message, writer) {
+ RenditionFilter.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.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 VodStitchDetail message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.VodStitchDetail.verify|verify} messages.
+ * 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.VodStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.RenditionFilter
* @static
- * @param {google.cloud.video.stitcher.v1.IVodStitchDetail} message VodStitchDetail message or plain object to encode
+ * @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
*/
- VodStitchDetail.encodeDelimited = function encodeDelimited(message, writer) {
+ RenditionFilter.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a VodStitchDetail message from the specified reader or buffer.
+ * Decodes a RenditionFilter message from the specified reader or buffer.
* @function decode
- * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
+ * @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.VodStitchDetail} VodStitchDetail
+ * @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
*/
- VodStitchDetail.decode = function decode(reader, length) {
+ 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.VodStitchDetail();
+ 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.name = reader.string();
+ message.bitrateBps = reader.int32();
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()));
+ case 2: {
+ message.codecs = reader.string();
break;
}
default:
@@ -7708,153 +8344,133 @@
};
/**
- * Decodes a VodStitchDetail message from the specified reader or buffer, length delimited.
+ * Decodes a RenditionFilter message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
+ * @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.VodStitchDetail} VodStitchDetail
+ * @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
*/
- VodStitchDetail.decodeDelimited = function decodeDelimited(reader) {
+ RenditionFilter.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a VodStitchDetail message.
+ * Verifies a RenditionFilter message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
+ * @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
*/
- VodStitchDetail.verify = function verify(message) {
+ RenditionFilter.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;
- }
- }
+ 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 VodStitchDetail message from a plain object. Also converts values to their respective internal types.
+ * Creates a RenditionFilter 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.RenditionFilter
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.VodStitchDetail} VodStitchDetail
+ * @returns {google.cloud.video.stitcher.v1.RenditionFilter} RenditionFilter
*/
- VodStitchDetail.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.VodStitchDetail)
+ 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.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.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 VodStitchDetail message. Also converts values to other types if specified.
+ * Creates a plain object from a RenditionFilter message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.RenditionFilter
* @static
- * @param {google.cloud.video.stitcher.v1.VodStitchDetail} message VodStitchDetail
+ * @param {google.cloud.video.stitcher.v1.RenditionFilter} message RenditionFilter
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- VodStitchDetail.toObject = function toObject(message, options) {
+ RenditionFilter.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);
+ 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 VodStitchDetail to JSON.
+ * Converts this RenditionFilter to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.RenditionFilter
* @instance
* @returns {Object.} JSON object
*/
- VodStitchDetail.prototype.toJSON = function toJSON() {
+ RenditionFilter.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 RenditionFilter
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.RenditionFilter
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- VodStitchDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ RenditionFilter.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.RenditionFilter";
};
- return VodStitchDetail;
+ return RenditionFilter;
})();
- v1.AdStitchDetail = (function() {
+ v1.Slate = (function() {
/**
- * Properties of an AdStitchDetail.
+ * Properties of a Slate.
* @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 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 AdStitchDetail.
+ * Constructs a new Slate.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents an AdStitchDetail.
- * @implements IAdStitchDetail
+ * @classdesc Represents a Slate.
+ * @implements ISlate
* @constructor
- * @param {google.cloud.video.stitcher.v1.IAdStitchDetail=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.ISlate=} [properties] Properties to set
*/
- function AdStitchDetail(properties) {
- this.media = {};
+ function Slate(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -7862,153 +8478,103 @@
}
/**
- * 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
+ * Slate name.
+ * @member {string} name
+ * @memberof google.cloud.video.stitcher.v1.Slate
* @instance
*/
- AdStitchDetail.prototype.adTimeOffset = null;
+ Slate.prototype.name = "";
/**
- * AdStitchDetail skipReason.
- * @member {string} skipReason
- * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
+ * Slate uri.
+ * @member {string} uri
+ * @memberof google.cloud.video.stitcher.v1.Slate
* @instance
*/
- AdStitchDetail.prototype.skipReason = "";
+ Slate.prototype.uri = "";
/**
- * AdStitchDetail media.
- * @member {Object.} media
- * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
+ * Slate gamSlate.
+ * @member {google.cloud.video.stitcher.v1.Slate.IGamSlate|null|undefined} gamSlate
+ * @memberof google.cloud.video.stitcher.v1.Slate
* @instance
*/
- AdStitchDetail.prototype.media = $util.emptyObject;
+ Slate.prototype.gamSlate = null;
/**
- * Creates a new AdStitchDetail instance using the specified properties.
+ * Creates a new Slate instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.Slate
* @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.ISlate=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.Slate} Slate instance
*/
- AdStitchDetail.create = function create(properties) {
- return new AdStitchDetail(properties);
+ Slate.create = function create(properties) {
+ return new Slate(properties);
};
/**
- * Encodes the specified AdStitchDetail message. Does not implicitly {@link google.cloud.video.stitcher.v1.AdStitchDetail.verify|verify} messages.
+ * 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.AdStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.Slate
* @static
- * @param {google.cloud.video.stitcher.v1.IAdStitchDetail} message AdStitchDetail message or plain object to encode
+ * @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
*/
- AdStitchDetail.encode = function encode(message, writer) {
+ Slate.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);
+ 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 AdStitchDetail message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.AdStitchDetail.verify|verify} messages.
+ * 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.AdStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.Slate
* @static
- * @param {google.cloud.video.stitcher.v1.IAdStitchDetail} message AdStitchDetail message or plain object to encode
+ * @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
*/
- AdStitchDetail.encodeDelimited = function encodeDelimited(message, writer) {
+ Slate.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes an AdStitchDetail message from the specified reader or buffer.
+ * Decodes a Slate message from the specified reader or buffer.
* @function decode
- * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
+ * @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.AdStitchDetail} AdStitchDetail
+ * @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
*/
- AdStitchDetail.decode = function decode(reader, length) {
+ 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.AdStitchDetail(), key, value;
+ 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.adBreakId = reader.string();
+ message.name = reader.string();
break;
}
case 2: {
- message.adId = reader.string();
+ message.uri = 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.gamSlate = $root.google.cloud.video.stitcher.v1.Slate.GamSlate.decode(reader, reader.uint32());
break;
}
default:
@@ -8020,1540 +8586,1910 @@
};
/**
- * Decodes an AdStitchDetail message from the specified reader or buffer, length delimited.
+ * Decodes a Slate message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
+ * @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.AdStitchDetail} AdStitchDetail
+ * @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
*/
- AdStitchDetail.decodeDelimited = function decodeDelimited(reader) {
+ Slate.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies an AdStitchDetail message.
+ * Verifies a Slate message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
+ * @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
*/
- AdStitchDetail.verify = function verify(message) {
+ Slate.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 (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 "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 "gamSlate." + error;
}
return null;
};
/**
- * Creates an AdStitchDetail message from a plain object. Also converts values to their respective internal types.
+ * Creates a Slate 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.Slate
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.AdStitchDetail} AdStitchDetail
+ * @returns {google.cloud.video.stitcher.v1.Slate} Slate
*/
- AdStitchDetail.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.AdStitchDetail)
+ 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.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.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 an AdStitchDetail message. Also converts values to other types if specified.
+ * Creates a plain object from a Slate message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.Slate
* @static
- * @param {google.cloud.video.stitcher.v1.AdStitchDetail} message AdStitchDetail
+ * @param {google.cloud.video.stitcher.v1.Slate} message Slate
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- AdStitchDetail.toObject = function toObject(message, options) {
+ Slate.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);
+ 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 AdStitchDetail to JSON.
+ * Converts this Slate to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.Slate
* @instance
* @returns {Object.} JSON object
*/
- AdStitchDetail.prototype.toJSON = function toJSON() {
+ Slate.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 Slate
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
+ * @memberof google.cloud.video.stitcher.v1.Slate
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- AdStitchDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ Slate.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
- return typeUrlPrefix + "/google.cloud.video.stitcher.v1.AdStitchDetail";
+ return typeUrlPrefix + "/google.cloud.video.stitcher.v1.Slate";
};
- return AdStitchDetail;
+ 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.VideoStitcherService = (function() {
+ v1.VodStitchDetail = (function() {
/**
- * Constructs a new VideoStitcherService service.
+ * Properties of a VodStitchDetail.
* @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
+ * @interface IVodStitchDetail
+ * @property {string|null} [name] VodStitchDetail name
+ * @property {Array.|null} [adStitchDetails] VodStitchDetail adStitchDetails
*/
- 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.
+ * 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
*/
- VideoStitcherService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
- return new this(rpcImpl, requestDelimited, responseDelimited);
- };
+ 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]];
+ }
/**
- * 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.cloud.video.stitcher.v1.CdnKey} [response] CdnKey
- */
-
- /**
- * Calls CreateCdnKey.
- * @function createCdnKey
- * @memberof google.cloud.video.stitcher.v1.VideoStitcherService
+ * VodStitchDetail name.
+ * @member {string} name
+ * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
* @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 CdnKey
- * @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.cloud.video.stitcher.v1.CdnKey, request, callback);
- }, "name", { value: "CreateCdnKey" });
+ VodStitchDetail.prototype.name = "";
/**
- * Calls CreateCdnKey.
- * @function createCdnKey
- * @memberof google.cloud.video.stitcher.v1.VideoStitcherService
+ * VodStitchDetail adStitchDetails.
+ * @member {Array.} adStitchDetails
+ * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
* @instance
- * @param {google.cloud.video.stitcher.v1.ICreateCdnKeyRequest} request CreateCdnKeyRequest message or plain object
- * @returns {Promise} Promise
- * @variation 2
*/
+ VodStitchDetail.prototype.adStitchDetails = $util.emptyArray;
/**
- * 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 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);
+ };
/**
- * 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 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
*/
- 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" });
+ 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;
+ };
/**
- * 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 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();
+ };
/**
- * 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 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;
+ };
/**
- * 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 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
*/
- 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" });
+ VodStitchDetail.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 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;
+ };
/**
- * 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.protobuf.Empty} [response] Empty
+ * 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;
+ };
/**
- * 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 Empty
- * @returns {undefined}
- * @variation 1
+ * 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
*/
- Object.defineProperty(VideoStitcherService.prototype.deleteCdnKey = function deleteCdnKey(request, callback) {
- return this.rpcCall(deleteCdnKey, $root.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest, $root.google.protobuf.Empty, request, callback);
- }, "name", { value: "DeleteCdnKey" });
+ 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;
+ };
/**
- * Calls DeleteCdnKey.
- * @function deleteCdnKey
- * @memberof google.cloud.video.stitcher.v1.VideoStitcherService
+ * Converts this VodStitchDetail to JSON.
+ * @function toJSON
+ * @memberof google.cloud.video.stitcher.v1.VodStitchDetail
* @instance
- * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest} request DeleteCdnKeyRequest message or plain object
- * @returns {Promise} Promise
- * @variation 2
+ * @returns {Object.} JSON object
*/
+ VodStitchDetail.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
/**
- * 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.cloud.video.stitcher.v1.CdnKey} [response] CdnKey
+ * 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";
+ };
- /**
- * 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 CdnKey
- * @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.cloud.video.stitcher.v1.CdnKey, request, callback);
- }, "name", { value: "UpdateCdnKey" });
+ return VodStitchDetail;
+ })();
- /**
- * 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
- */
+ v1.AdStitchDetail = (function() {
/**
- * 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
+ * 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
*/
/**
- * 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
+ * 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
*/
- 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" });
+ 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]];
+ }
/**
- * Calls CreateVodSession.
- * @function createVodSession
- * @memberof google.cloud.video.stitcher.v1.VideoStitcherService
+ * AdStitchDetail adBreakId.
+ * @member {string} adBreakId
+ * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
* @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
*/
+ AdStitchDetail.prototype.adBreakId = "";
/**
- * Calls GetVodSession.
- * @function getVodSession
- * @memberof google.cloud.video.stitcher.v1.VideoStitcherService
+ * AdStitchDetail adId.
+ * @member {string} adId
+ * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
* @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" });
+ AdStitchDetail.prototype.adId = "";
/**
- * Calls GetVodSession.
- * @function getVodSession
- * @memberof google.cloud.video.stitcher.v1.VideoStitcherService
+ * AdStitchDetail adTimeOffset.
+ * @member {google.protobuf.IDuration|null|undefined} adTimeOffset
+ * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
* @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
*/
+ AdStitchDetail.prototype.adTimeOffset = null;
/**
- * Calls ListVodStitchDetails.
- * @function listVodStitchDetails
- * @memberof google.cloud.video.stitcher.v1.VideoStitcherService
+ * AdStitchDetail skipReason.
+ * @member {string} skipReason
+ * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
* @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" });
+ AdStitchDetail.prototype.skipReason = "";
/**
- * Calls ListVodStitchDetails.
- * @function listVodStitchDetails
- * @memberof google.cloud.video.stitcher.v1.VideoStitcherService
+ * AdStitchDetail media.
+ * @member {Object.} media
+ * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
* @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
*/
+ AdStitchDetail.prototype.media = $util.emptyObject;
/**
- * 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 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
*/
- 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" });
+ AdStitchDetail.create = function create(properties) {
+ return new AdStitchDetail(properties);
+ };
/**
- * 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
+ * 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;
+ };
/**
- * 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
+ * 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();
+ };
/**
- * 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
+ * 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;
+ };
/**
- * 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
+ * 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());
+ };
/**
- * 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
+ * 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
*/
- 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" });
+ 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;
+ };
/**
- * 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
+ * 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;
+ };
/**
- * 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 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;
+ };
/**
- * Calls ListLiveAdTagDetails.
- * @function listLiveAdTagDetails
- * @memberof google.cloud.video.stitcher.v1.VideoStitcherService
+ * Converts this AdStitchDetail to JSON.
+ * @function toJSON
+ * @memberof google.cloud.video.stitcher.v1.AdStitchDetail
* @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
+ * @returns {Object.} JSON object
*/
- 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" });
+ AdStitchDetail.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
/**
- * 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
+ * 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";
+ };
- /**
- * 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
- */
+ return AdStitchDetail;
+ })();
+
+ v1.VideoStitcherService = (function() {
/**
- * 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
+ * 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.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" });
+ 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 GetLiveAdTagDetail.
- * @function getLiveAdTagDetail
+ * Calls CreateCdnKey.
+ * @function createCdnKey
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
* @instance
- * @param {google.cloud.video.stitcher.v1.IGetLiveAdTagDetailRequest} request GetLiveAdTagDetailRequest message or plain object
- * @returns {Promise} Promise
+ * @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|createSlate}.
+ * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listCdnKeys}.
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
- * @typedef CreateSlateCallback
+ * @typedef ListCdnKeysCallback
* @type {function}
* @param {Error|null} error Error, if any
- * @param {google.cloud.video.stitcher.v1.Slate} [response] Slate
+ * @param {google.cloud.video.stitcher.v1.ListCdnKeysResponse} [response] ListCdnKeysResponse
*/
/**
- * Calls CreateSlate.
- * @function createSlate
+ * Calls ListCdnKeys.
+ * @function listCdnKeys
* @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 Slate
+ * @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.createSlate = function createSlate(request, callback) {
- return this.rpcCall(createSlate, $root.google.cloud.video.stitcher.v1.CreateSlateRequest, $root.google.cloud.video.stitcher.v1.Slate, request, callback);
- }, "name", { value: "CreateSlate" });
+ 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 CreateSlate.
- * @function createSlate
+ * Calls ListCdnKeys.
+ * @function listCdnKeys
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
* @instance
- * @param {google.cloud.video.stitcher.v1.ICreateSlateRequest} request CreateSlateRequest message or plain object
- * @returns {Promise} Promise
+ * @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|listSlates}.
+ * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getCdnKey}.
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
- * @typedef ListSlatesCallback
+ * @typedef GetCdnKeyCallback
* @type {function}
* @param {Error|null} error Error, if any
- * @param {google.cloud.video.stitcher.v1.ListSlatesResponse} [response] ListSlatesResponse
+ * @param {google.cloud.video.stitcher.v1.CdnKey} [response] CdnKey
*/
/**
- * Calls ListSlates.
- * @function listSlates
+ * Calls GetCdnKey.
+ * @function getCdnKey
* @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
+ * @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.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" });
+ 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 ListSlates.
- * @function listSlates
+ * Calls GetCdnKey.
+ * @function getCdnKey
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
* @instance
- * @param {google.cloud.video.stitcher.v1.IListSlatesRequest} request ListSlatesRequest message or plain object
- * @returns {Promise} Promise
+ * @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|getSlate}.
+ * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|deleteCdnKey}.
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
- * @typedef GetSlateCallback
+ * @typedef DeleteCdnKeyCallback
* @type {function}
* @param {Error|null} error Error, if any
- * @param {google.cloud.video.stitcher.v1.Slate} [response] Slate
+ * @param {google.longrunning.Operation} [response] Operation
*/
/**
- * Calls GetSlate.
- * @function getSlate
+ * Calls DeleteCdnKey.
+ * @function deleteCdnKey
* @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
+ * @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.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" });
+ 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 GetSlate.
- * @function getSlate
+ * Calls DeleteCdnKey.
+ * @function deleteCdnKey
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
* @instance
- * @param {google.cloud.video.stitcher.v1.IGetSlateRequest} request GetSlateRequest message or plain object
- * @returns {Promise} Promise
+ * @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|updateSlate}.
+ * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|updateCdnKey}.
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
- * @typedef UpdateSlateCallback
+ * @typedef UpdateCdnKeyCallback
* @type {function}
* @param {Error|null} error Error, if any
- * @param {google.cloud.video.stitcher.v1.Slate} [response] Slate
+ * @param {google.longrunning.Operation} [response] Operation
*/
/**
- * Calls UpdateSlate.
- * @function updateSlate
+ * Calls UpdateCdnKey.
+ * @function updateCdnKey
* @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 Slate
+ * @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.updateSlate = function updateSlate(request, callback) {
- return this.rpcCall(updateSlate, $root.google.cloud.video.stitcher.v1.UpdateSlateRequest, $root.google.cloud.video.stitcher.v1.Slate, request, callback);
- }, "name", { value: "UpdateSlate" });
+ 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 UpdateSlate.
- * @function updateSlate
+ * Calls UpdateCdnKey.
+ * @function updateCdnKey
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
* @instance
- * @param {google.cloud.video.stitcher.v1.IUpdateSlateRequest} request UpdateSlateRequest message or plain object
- * @returns {Promise} Promise
+ * @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|deleteSlate}.
+ * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|createVodSession}.
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
- * @typedef DeleteSlateCallback
+ * @typedef CreateVodSessionCallback
* @type {function}
* @param {Error|null} error Error, if any
- * @param {google.protobuf.Empty} [response] Empty
+ * @param {google.cloud.video.stitcher.v1.VodSession} [response] VodSession
*/
/**
- * Calls DeleteSlate.
- * @function deleteSlate
+ * Calls CreateVodSession.
+ * @function createVodSession
* @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 Empty
+ * @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.deleteSlate = function deleteSlate(request, callback) {
- return this.rpcCall(deleteSlate, $root.google.cloud.video.stitcher.v1.DeleteSlateRequest, $root.google.protobuf.Empty, request, callback);
- }, "name", { value: "DeleteSlate" });
+ 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 DeleteSlate.
- * @function deleteSlate
+ * Calls CreateVodSession.
+ * @function createVodSession
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
* @instance
- * @param {google.cloud.video.stitcher.v1.IDeleteSlateRequest} request DeleteSlateRequest message or plain object
- * @returns {Promise} Promise
+ * @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|createLiveSession}.
+ * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|getVodSession}.
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
- * @typedef CreateLiveSessionCallback
+ * @typedef GetVodSessionCallback
* @type {function}
* @param {Error|null} error Error, if any
- * @param {google.cloud.video.stitcher.v1.LiveSession} [response] LiveSession
+ * @param {google.cloud.video.stitcher.v1.VodSession} [response] VodSession
*/
/**
- * Calls CreateLiveSession.
- * @function createLiveSession
+ * Calls GetVodSession.
+ * @function getVodSession
* @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
+ * @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.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" });
+ 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 CreateLiveSession.
- * @function createLiveSession
+ * Calls GetVodSession.
+ * @function getVodSession
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
* @instance
- * @param {google.cloud.video.stitcher.v1.ICreateLiveSessionRequest} request CreateLiveSessionRequest message or plain object
- * @returns {Promise} Promise
+ * @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|getLiveSession}.
+ * Callback as used by {@link google.cloud.video.stitcher.v1.VideoStitcherService|listVodStitchDetails}.
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
- * @typedef GetLiveSessionCallback
+ * @typedef ListVodStitchDetailsCallback
* @type {function}
* @param {Error|null} error Error, if any
- * @param {google.cloud.video.stitcher.v1.LiveSession} [response] LiveSession
+ * @param {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} [response] ListVodStitchDetailsResponse
*/
/**
- * Calls GetLiveSession.
- * @function getLiveSession
+ * Calls ListVodStitchDetails.
+ * @function listVodStitchDetails
* @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
+ * @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.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" });
+ 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 GetLiveSession.
- * @function getLiveSession
+ * Calls ListVodStitchDetails.
+ * @function listVodStitchDetails
* @memberof google.cloud.video.stitcher.v1.VideoStitcherService
* @instance
- * @param {google.cloud.video.stitcher.v1.IGetLiveSessionRequest} request GetLiveSessionRequest message or plain object
- * @returns {Promise} Promise
+ * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest} request ListVodStitchDetailsRequest 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
+ * 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
*/
/**
- * 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
+ * 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
*/
- 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]];
- }
+ 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" });
/**
- * CreateCdnKeyRequest parent.
- * @member {string} parent
- * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest
+ * 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
*/
- CreateCdnKeyRequest.prototype.parent = "";
/**
- * CreateCdnKeyRequest cdnKey.
- * @member {google.cloud.video.stitcher.v1.ICdnKey|null|undefined} cdnKey
- * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest
- * @instance
+ * 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
*/
- CreateCdnKeyRequest.prototype.cdnKey = null;
/**
- * CreateCdnKeyRequest cdnKeyId.
- * @member {string} cdnKeyId
- * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest
+ * 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
*/
- CreateCdnKeyRequest.prototype.cdnKeyId = "";
+ 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" });
/**
- * 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
+ * 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
*/
- 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
+ * 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
*/
- 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
+ * 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
*/
- CreateCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
+ 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" });
/**
- * 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
+ * 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
*/
- 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
+ * 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
*/
- 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
+ * 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
*/
- 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;
- };
+ 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" });
/**
- * 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
+ * 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
*/
- 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
+ * 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
*/
- 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
+ * Calls GetLiveAdTagDetail.
+ * @function getLiveAdTagDetail
+ * @memberof google.cloud.video.stitcher.v1.VideoStitcherService
* @instance
- * @returns {Object.} JSON object
+ * @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
*/
- CreateCdnKeyRequest.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ 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" });
/**
- * 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
+ * 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
*/
- CreateCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.cloud.video.stitcher.v1.CreateCdnKeyRequest";
- };
- return CreateCdnKeyRequest;
- })();
+ /**
+ * 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
+ */
- v1.ListCdnKeysRequest = (function() {
+ /**
+ * 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" });
/**
- * 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
+ * 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
*/
/**
- * 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
+ * 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
*/
- 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
+ * 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
*/
- ListCdnKeysRequest.prototype.parent = "";
+ 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" });
/**
- * ListCdnKeysRequest pageSize.
- * @member {number} pageSize
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
+ * 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
*/
- ListCdnKeysRequest.prototype.pageSize = 0;
/**
- * ListCdnKeysRequest pageToken.
- * @member {string} pageToken
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
+ * 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
*/
- ListCdnKeysRequest.prototype.pageToken = "";
+ 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" });
/**
- * ListCdnKeysRequest filter.
- * @member {string} filter
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
+ * 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
*/
- ListCdnKeysRequest.prototype.filter = "";
/**
- * ListCdnKeysRequest orderBy.
- * @member {string} orderBy
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
+ * 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
*/
- ListCdnKeysRequest.prototype.orderBy = "";
+ 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" });
/**
- * 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
+ * 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
*/
- 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
+ * 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
*/
- 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
+ * 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
*/
- ListCdnKeysRequest.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
+ 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" });
/**
- * 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
+ * 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
*/
- 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;
- };
/**
- * 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
+ * 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
*/
- ListCdnKeysRequest.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
/**
- * 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
+ * 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
*/
- 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;
- };
+ 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" });
/**
- * 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
+ * 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
*/
- 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;
- };
/**
- * 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
+ * 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
*/
- 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;
- };
/**
- * Converts this ListCdnKeysRequest to JSON.
- * @function toJSON
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
+ * Calls GetLiveSession.
+ * @function getLiveSession
+ * @memberof google.cloud.video.stitcher.v1.VideoStitcherService
* @instance
- * @returns {Object.} JSON object
+ * @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
*/
- ListCdnKeysRequest.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ 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" });
/**
- * 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
+ * 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
*/
- ListCdnKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.cloud.video.stitcher.v1.ListCdnKeysRequest";
- };
-
- return ListCdnKeysRequest;
- })();
-
- v1.ListCdnKeysResponse = (function() {
/**
- * Properties of a ListCdnKeysResponse.
- * @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
+ * 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
*/
/**
- * Constructs a new ListCdnKeysResponse.
- * @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a ListCdnKeysResponse.
- * @implements IListCdnKeysResponse
- * @constructor
- * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse=} [properties] Properties to set
+ * 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
*/
- 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)
- this[keys[i]] = properties[keys[i]];
- }
+ 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" });
/**
- * ListCdnKeysResponse cdnKeys.
- * @member {Array.} cdnKeys
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
+ * 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
*/
- ListCdnKeysResponse.prototype.cdnKeys = $util.emptyArray;
/**
- * ListCdnKeysResponse nextPageToken.
- * @member {string} nextPageToken
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
- * @instance
+ * 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
*/
- ListCdnKeysResponse.prototype.nextPageToken = "";
/**
- * ListCdnKeysResponse unreachable.
- * @member {Array.} unreachable
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
+ * 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
*/
- ListCdnKeysResponse.prototype.unreachable = $util.emptyArray;
+ 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" });
/**
- * Creates a new ListCdnKeysResponse instance using the specified properties.
- * @function create
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
- * @static
- * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse=} [properties] Properties to set
- * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse instance
+ * 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
*/
- ListCdnKeysResponse.create = function create(properties) {
- return new ListCdnKeysResponse(properties);
- };
/**
- * Encodes the specified ListCdnKeysResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListCdnKeysResponse.verify|verify} messages.
+ * 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
+ */
+
+ 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.ListCdnKeysResponse
+ * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse} message ListCdnKeysResponse message or plain object to encode
+ * @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
*/
- ListCdnKeysResponse.encode = function encode(message, writer) {
+ CreateCdnKeyRequest.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.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 ListCdnKeysResponse message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListCdnKeysResponse.verify|verify} messages.
+ * 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.ListCdnKeysResponse
+ * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse} message ListCdnKeysResponse message or plain object to encode
+ * @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
*/
- ListCdnKeysResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ CreateCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a ListCdnKeysResponse message from the specified reader or buffer.
+ * Decodes a CreateCdnKeyRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
+ * @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.ListCdnKeysResponse} ListCdnKeysResponse
+ * @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
*/
- ListCdnKeysResponse.decode = function decode(reader, length) {
+ 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.ListCdnKeysResponse();
+ 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: {
- 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.cdnKey = $root.google.cloud.video.stitcher.v1.CdnKey.decode(reader, reader.uint32());
break;
}
case 3: {
- if (!(message.unreachable && message.unreachable.length))
- message.unreachable = [];
- message.unreachable.push(reader.string());
+ message.cdnKeyId = reader.string();
break;
}
default:
@@ -9565,169 +10501,148 @@
};
/**
- * Decodes a ListCdnKeysResponse message from the specified reader or buffer, length delimited.
+ * Decodes a CreateCdnKeyRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
+ * @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.ListCdnKeysResponse} ListCdnKeysResponse
+ * @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
*/
- ListCdnKeysResponse.decodeDelimited = function decodeDelimited(reader) {
+ CreateCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a ListCdnKeysResponse message.
+ * Verifies a CreateCdnKeyRequest message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
+ * @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
*/
- ListCdnKeysResponse.verify = function verify(message) {
+ CreateCdnKeyRequest.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.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 ListCdnKeysResponse message from a plain object. Also converts values to their respective internal types.
+ * Creates a CreateCdnKeyRequest 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.CreateCdnKeyRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse
+ * @returns {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} CreateCdnKeyRequest
*/
- ListCdnKeysResponse.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.ListCdnKeysResponse)
+ 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.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.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 ListCdnKeysResponse message. Also converts values to other types if specified.
+ * Creates a plain object from a CreateCdnKeyRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
+ * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.ListCdnKeysResponse} message ListCdnKeysResponse
+ * @param {google.cloud.video.stitcher.v1.CreateCdnKeyRequest} message CreateCdnKeyRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ListCdnKeysResponse.toObject = function toObject(message, options) {
+ CreateCdnKeyRequest.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.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 ListCdnKeysResponse to JSON.
+ * Converts this CreateCdnKeyRequest to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
+ * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest
* @instance
* @returns {Object.} JSON object
*/
- ListCdnKeysResponse.prototype.toJSON = function toJSON() {
+ CreateCdnKeyRequest.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 CreateCdnKeyRequest
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
+ * @memberof google.cloud.video.stitcher.v1.CreateCdnKeyRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- ListCdnKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ CreateCdnKeyRequest.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.CreateCdnKeyRequest";
};
- return ListCdnKeysResponse;
+ return CreateCdnKeyRequest;
})();
- v1.GetCdnKeyRequest = (function() {
+ v1.ListCdnKeysRequest = (function() {
/**
- * Properties of a GetCdnKeyRequest.
+ * Properties of a ListCdnKeysRequest.
* @memberof google.cloud.video.stitcher.v1
- * @interface IGetCdnKeyRequest
- * @property {string|null} [name] GetCdnKeyRequest name
+ * @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 GetCdnKeyRequest.
+ * Constructs a new ListCdnKeysRequest.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a GetCdnKeyRequest.
- * @implements IGetCdnKeyRequest
+ * @classdesc Represents a ListCdnKeysRequest.
+ * @implements IListCdnKeysRequest
* @constructor
- * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IListCdnKeysRequest=} [properties] Properties to set
*/
- function GetCdnKeyRequest(properties) {
+ function ListCdnKeysRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -9735,75 +10650,131 @@
}
/**
- * GetCdnKeyRequest name.
- * @member {string} name
- * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
+ * ListCdnKeysRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
* @instance
*/
- GetCdnKeyRequest.prototype.name = "";
+ ListCdnKeysRequest.prototype.parent = "";
/**
- * Creates a new GetCdnKeyRequest instance using the specified properties.
+ * 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.GetCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
* @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.IListCdnKeysRequest=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.ListCdnKeysRequest} ListCdnKeysRequest instance
*/
- GetCdnKeyRequest.create = function create(properties) {
- return new GetCdnKeyRequest(properties);
+ ListCdnKeysRequest.create = function create(properties) {
+ return new ListCdnKeysRequest(properties);
};
/**
- * Encodes the specified GetCdnKeyRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetCdnKeyRequest.verify|verify} messages.
+ * 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.GetCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest} message GetCdnKeyRequest message or plain object to encode
+ * @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
*/
- GetCdnKeyRequest.encode = function encode(message, writer) {
+ ListCdnKeysRequest.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 GetCdnKeyRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetCdnKeyRequest.verify|verify} messages.
+ * 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.GetCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest} message GetCdnKeyRequest message or plain object to encode
+ * @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
*/
- GetCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ ListCdnKeysRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a GetCdnKeyRequest message from the specified reader or buffer.
+ * Decodes a ListCdnKeysRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
+ * @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.GetCdnKeyRequest} GetCdnKeyRequest
+ * @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
*/
- GetCdnKeyRequest.decode = function decode(reader, length) {
+ 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.GetCdnKeyRequest();
+ 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.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:
@@ -9815,122 +10786,159 @@
};
/**
- * Decodes a GetCdnKeyRequest message from the specified reader or buffer, length delimited.
+ * Decodes a ListCdnKeysRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
+ * @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.GetCdnKeyRequest} GetCdnKeyRequest
+ * @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
*/
- GetCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) {
+ ListCdnKeysRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a GetCdnKeyRequest message.
+ * Verifies a ListCdnKeysRequest message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
+ * @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
*/
- GetCdnKeyRequest.verify = function verify(message) {
+ ListCdnKeysRequest.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 GetCdnKeyRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a ListCdnKeysRequest 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.ListCdnKeysRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.GetCdnKeyRequest} GetCdnKeyRequest
+ * @returns {google.cloud.video.stitcher.v1.ListCdnKeysRequest} ListCdnKeysRequest
*/
- GetCdnKeyRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.GetCdnKeyRequest)
+ 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.GetCdnKeyRequest();
- if (object.name != null)
- message.name = String(object.name);
+ 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;
};
/**
- * Creates a plain object from a GetCdnKeyRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a ListCdnKeysRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
* @static
- * @param {google.cloud.video.stitcher.v1.GetCdnKeyRequest} message GetCdnKeyRequest
+ * @param {google.cloud.video.stitcher.v1.ListCdnKeysRequest} message ListCdnKeysRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- GetCdnKeyRequest.toObject = function toObject(message, options) {
+ ListCdnKeysRequest.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 GetCdnKeyRequest to JSON.
+ * Converts this ListCdnKeysRequest to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
* @instance
* @returns {Object.} JSON object
*/
- GetCdnKeyRequest.prototype.toJSON = function toJSON() {
+ ListCdnKeysRequest.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 ListCdnKeysRequest
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- GetCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ ListCdnKeysRequest.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.ListCdnKeysRequest";
};
- return GetCdnKeyRequest;
+ return ListCdnKeysRequest;
})();
- v1.DeleteCdnKeyRequest = (function() {
+ v1.ListCdnKeysResponse = (function() {
/**
- * Properties of a DeleteCdnKeyRequest.
+ * Properties of a ListCdnKeysResponse.
* @memberof google.cloud.video.stitcher.v1
- * @interface IDeleteCdnKeyRequest
- * @property {string|null} [name] DeleteCdnKeyRequest name
+ * @interface IListCdnKeysResponse
+ * @property {Array.|null} [cdnKeys] ListCdnKeysResponse cdnKeys
+ * @property {string|null} [nextPageToken] ListCdnKeysResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListCdnKeysResponse unreachable
*/
/**
- * Constructs a new DeleteCdnKeyRequest.
+ * Constructs a new ListCdnKeysResponse.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a DeleteCdnKeyRequest.
- * @implements IDeleteCdnKeyRequest
+ * @classdesc Represents a ListCdnKeysResponse.
+ * @implements IListCdnKeysResponse
* @constructor
- * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IListCdnKeysResponse=} [properties] Properties to set
*/
- function DeleteCdnKeyRequest(properties) {
+ 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)
@@ -9938,75 +10946,109 @@
}
/**
- * DeleteCdnKeyRequest name.
- * @member {string} name
- * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
+ * ListCdnKeysResponse cdnKeys.
+ * @member {Array.} cdnKeys
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
* @instance
*/
- DeleteCdnKeyRequest.prototype.name = "";
+ ListCdnKeysResponse.prototype.cdnKeys = $util.emptyArray;
/**
- * Creates a new DeleteCdnKeyRequest instance using the specified properties.
+ * 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
+ */
+ ListCdnKeysResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListCdnKeysResponse instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
* @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.IListCdnKeysResponse=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse instance
*/
- DeleteCdnKeyRequest.create = function create(properties) {
- return new DeleteCdnKeyRequest(properties);
+ ListCdnKeysResponse.create = function create(properties) {
+ return new ListCdnKeysResponse(properties);
};
/**
- * Encodes the specified DeleteCdnKeyRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteCdnKeyRequest.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.DeleteCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
* @static
- * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest} message DeleteCdnKeyRequest 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
*/
- DeleteCdnKeyRequest.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.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 DeleteCdnKeyRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.DeleteCdnKeyRequest.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.DeleteCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
* @static
- * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest} message DeleteCdnKeyRequest 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
*/
- DeleteCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ ListCdnKeysResponse.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a DeleteCdnKeyRequest 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.DeleteCdnKeyRequest
+ * @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.DeleteCdnKeyRequest} DeleteCdnKeyRequest
+ * @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
*/
- DeleteCdnKeyRequest.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.DeleteCdnKeyRequest();
+ 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.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
break;
}
default:
@@ -10018,123 +11060,169 @@
};
/**
- * Decodes a DeleteCdnKeyRequest 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.DeleteCdnKeyRequest
+ * @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.DeleteCdnKeyRequest} DeleteCdnKeyRequest
+ * @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
*/
- DeleteCdnKeyRequest.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 DeleteCdnKeyRequest message.
+ * Verifies a ListCdnKeysResponse message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
+ * @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
*/
- DeleteCdnKeyRequest.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.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";
+ }
return null;
};
/**
- * Creates a DeleteCdnKeyRequest 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.DeleteCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} DeleteCdnKeyRequest
+ * @returns {google.cloud.video.stitcher.v1.ListCdnKeysResponse} ListCdnKeysResponse
*/
- DeleteCdnKeyRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest)
+ 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.DeleteCdnKeyRequest();
- if (object.name != null)
- message.name = String(object.name);
+ 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 DeleteCdnKeyRequest 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.DeleteCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
* @static
- * @param {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} message DeleteCdnKeyRequest
+ * @param {google.cloud.video.stitcher.v1.ListCdnKeysResponse} message ListCdnKeysResponse
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- DeleteCdnKeyRequest.toObject = function toObject(message, options) {
+ ListCdnKeysResponse.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
+ 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;
+ 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 DeleteCdnKeyRequest to JSON.
+ * Converts this ListCdnKeysResponse to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
* @instance
* @returns {Object.} JSON object
*/
- DeleteCdnKeyRequest.prototype.toJSON = function toJSON() {
+ ListCdnKeysResponse.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 ListCdnKeysResponse
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.ListCdnKeysResponse
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- DeleteCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ ListCdnKeysResponse.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.ListCdnKeysResponse";
};
- return DeleteCdnKeyRequest;
+ return ListCdnKeysResponse;
})();
- v1.UpdateCdnKeyRequest = (function() {
+ v1.GetCdnKeyRequest = (function() {
/**
- * Properties of an UpdateCdnKeyRequest.
+ * Properties of a GetCdnKeyRequest.
* @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 IGetCdnKeyRequest
+ * @property {string|null} [name] GetCdnKeyRequest name
*/
/**
- * Constructs a new UpdateCdnKeyRequest.
+ * Constructs a new GetCdnKeyRequest.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents an UpdateCdnKeyRequest.
- * @implements IUpdateCdnKeyRequest
+ * @classdesc Represents a GetCdnKeyRequest.
+ * @implements IGetCdnKeyRequest
* @constructor
- * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IGetCdnKeyRequest=} [properties] Properties to set
*/
- function UpdateCdnKeyRequest(properties) {
+ function GetCdnKeyRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -10142,89 +11230,75 @@
}
/**
- * UpdateCdnKeyRequest cdnKey.
- * @member {google.cloud.video.stitcher.v1.ICdnKey|null|undefined} cdnKey
- * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
+ * GetCdnKeyRequest name.
+ * @member {string} name
+ * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
* @instance
*/
- UpdateCdnKeyRequest.prototype.cdnKey = null;
+ GetCdnKeyRequest.prototype.name = "";
/**
- * UpdateCdnKeyRequest updateMask.
- * @member {google.protobuf.IFieldMask|null|undefined} updateMask
- * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
- * @instance
- */
- UpdateCdnKeyRequest.prototype.updateMask = null;
-
- /**
- * Creates a new UpdateCdnKeyRequest instance using the specified properties.
+ * Creates a new GetCdnKeyRequest instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
* @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.IGetCdnKeyRequest=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.GetCdnKeyRequest} GetCdnKeyRequest instance
*/
- UpdateCdnKeyRequest.create = function create(properties) {
- return new UpdateCdnKeyRequest(properties);
+ GetCdnKeyRequest.create = function create(properties) {
+ return new GetCdnKeyRequest(properties);
};
/**
- * Encodes the specified UpdateCdnKeyRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.UpdateCdnKeyRequest.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.UpdateCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest} message UpdateCdnKeyRequest 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
*/
- UpdateCdnKeyRequest.encode = function encode(message, writer) {
+ GetCdnKeyRequest.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.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
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 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.UpdateCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest} message UpdateCdnKeyRequest 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
*/
- UpdateCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ GetCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes an UpdateCdnKeyRequest 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.UpdateCdnKeyRequest
+ * @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.UpdateCdnKeyRequest} UpdateCdnKeyRequest
+ * @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
*/
- UpdateCdnKeyRequest.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.UpdateCdnKeyRequest();
+ 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.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());
+ message.name = reader.string();
break;
}
default:
@@ -10236,142 +11310,122 @@
};
/**
- * Decodes an UpdateCdnKeyRequest 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.UpdateCdnKeyRequest
+ * @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.UpdateCdnKeyRequest} UpdateCdnKeyRequest
+ * @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
*/
- UpdateCdnKeyRequest.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 UpdateCdnKeyRequest message.
+ * Verifies a GetCdnKeyRequest message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
+ * @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
*/
- UpdateCdnKeyRequest.verify = function verify(message) {
+ GetCdnKeyRequest.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.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
return null;
};
/**
- * Creates an UpdateCdnKeyRequest 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.UpdateCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} UpdateCdnKeyRequest
+ * @returns {google.cloud.video.stitcher.v1.GetCdnKeyRequest} GetCdnKeyRequest
*/
- UpdateCdnKeyRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest)
+ 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.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.GetCdnKeyRequest();
+ if (object.name != null)
+ message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from an UpdateCdnKeyRequest 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.UpdateCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} message UpdateCdnKeyRequest
+ * @param {google.cloud.video.stitcher.v1.GetCdnKeyRequest} message GetCdnKeyRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- UpdateCdnKeyRequest.toObject = function toObject(message, options) {
+ GetCdnKeyRequest.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);
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
return object;
};
/**
- * Converts this UpdateCdnKeyRequest to JSON.
+ * Converts this GetCdnKeyRequest to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
* @instance
* @returns {Object.} JSON object
*/
- UpdateCdnKeyRequest.prototype.toJSON = function toJSON() {
+ GetCdnKeyRequest.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 GetCdnKeyRequest
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
+ * @memberof google.cloud.video.stitcher.v1.GetCdnKeyRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- UpdateCdnKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ GetCdnKeyRequest.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.GetCdnKeyRequest";
};
- return UpdateCdnKeyRequest;
+ return GetCdnKeyRequest;
})();
- v1.CreateVodSessionRequest = (function() {
+ v1.DeleteCdnKeyRequest = (function() {
/**
- * Properties of a CreateVodSessionRequest.
+ * Properties of a DeleteCdnKeyRequest.
* @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 IDeleteCdnKeyRequest
+ * @property {string|null} [name] DeleteCdnKeyRequest name
*/
/**
- * Constructs a new CreateVodSessionRequest.
+ * Constructs a new DeleteCdnKeyRequest.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a CreateVodSessionRequest.
- * @implements ICreateVodSessionRequest
+ * @classdesc Represents a DeleteCdnKeyRequest.
+ * @implements IDeleteCdnKeyRequest
* @constructor
- * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IDeleteCdnKeyRequest=} [properties] Properties to set
*/
- function CreateVodSessionRequest(properties) {
+ function DeleteCdnKeyRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -10379,89 +11433,75 @@
}
/**
- * CreateVodSessionRequest parent.
- * @member {string} parent
- * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
- * @instance
- */
- CreateVodSessionRequest.prototype.parent = "";
-
- /**
- * CreateVodSessionRequest vodSession.
- * @member {google.cloud.video.stitcher.v1.IVodSession|null|undefined} vodSession
- * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
+ * DeleteCdnKeyRequest name.
+ * @member {string} name
+ * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
* @instance
*/
- CreateVodSessionRequest.prototype.vodSession = null;
+ DeleteCdnKeyRequest.prototype.name = "";
/**
- * Creates a new CreateVodSessionRequest instance using the specified properties.
+ * Creates a new DeleteCdnKeyRequest instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
* @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.IDeleteCdnKeyRequest=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} DeleteCdnKeyRequest instance
*/
- CreateVodSessionRequest.create = function create(properties) {
- return new CreateVodSessionRequest(properties);
+ DeleteCdnKeyRequest.create = function create(properties) {
+ return new DeleteCdnKeyRequest(properties);
};
/**
- * Encodes the specified CreateVodSessionRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.CreateVodSessionRequest.verify|verify} messages.
+ * 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.CreateVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest} message CreateVodSessionRequest message or plain object to encode
+ * @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
*/
- CreateVodSessionRequest.encode = function encode(message, writer) {
+ DeleteCdnKeyRequest.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.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
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 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.CreateVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest} message CreateVodSessionRequest message or plain object to encode
+ * @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
*/
- CreateVodSessionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ DeleteCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a CreateVodSessionRequest message from the specified reader or buffer.
+ * Decodes a DeleteCdnKeyRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
+ * @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.CreateVodSessionRequest} CreateVodSessionRequest
+ * @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
*/
- CreateVodSessionRequest.decode = function decode(reader, length) {
+ 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.CreateVodSessionRequest();
+ 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.parent = reader.string();
- break;
- }
- case 2: {
- message.vodSession = $root.google.cloud.video.stitcher.v1.VodSession.decode(reader, reader.uint32());
+ message.name = reader.string();
break;
}
default:
@@ -10473,136 +11513,123 @@
};
/**
- * Decodes a CreateVodSessionRequest message from the specified reader or buffer, length delimited.
+ * Decodes a DeleteCdnKeyRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
+ * @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.CreateVodSessionRequest} CreateVodSessionRequest
+ * @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
*/
- CreateVodSessionRequest.decodeDelimited = function decodeDelimited(reader) {
+ DeleteCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a CreateVodSessionRequest message.
+ * Verifies a DeleteCdnKeyRequest message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
+ * @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
*/
- CreateVodSessionRequest.verify = function verify(message) {
+ DeleteCdnKeyRequest.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.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
return null;
};
/**
- * Creates a CreateVodSessionRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a DeleteCdnKeyRequest 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.DeleteCdnKeyRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.CreateVodSessionRequest} CreateVodSessionRequest
+ * @returns {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} DeleteCdnKeyRequest
*/
- CreateVodSessionRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.CreateVodSessionRequest)
+ 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.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.DeleteCdnKeyRequest();
+ if (object.name != null)
+ message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from a CreateVodSessionRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a DeleteCdnKeyRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.CreateVodSessionRequest} message CreateVodSessionRequest
+ * @param {google.cloud.video.stitcher.v1.DeleteCdnKeyRequest} message DeleteCdnKeyRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- CreateVodSessionRequest.toObject = function toObject(message, options) {
+ DeleteCdnKeyRequest.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);
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
return object;
};
/**
- * Converts this CreateVodSessionRequest to JSON.
+ * Converts this DeleteCdnKeyRequest to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
* @instance
* @returns {Object.} JSON object
*/
- CreateVodSessionRequest.prototype.toJSON = function toJSON() {
+ DeleteCdnKeyRequest.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 DeleteCdnKeyRequest
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.DeleteCdnKeyRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- CreateVodSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ DeleteCdnKeyRequest.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.DeleteCdnKeyRequest";
};
- return CreateVodSessionRequest;
+ return DeleteCdnKeyRequest;
})();
- v1.GetVodSessionRequest = (function() {
+ v1.UpdateCdnKeyRequest = (function() {
/**
- * Properties of a GetVodSessionRequest.
+ * Properties of an UpdateCdnKeyRequest.
* @memberof google.cloud.video.stitcher.v1
- * @interface IGetVodSessionRequest
- * @property {string|null} [name] GetVodSessionRequest name
+ * @interface IUpdateCdnKeyRequest
+ * @property {google.cloud.video.stitcher.v1.ICdnKey|null} [cdnKey] UpdateCdnKeyRequest cdnKey
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCdnKeyRequest updateMask
*/
/**
- * Constructs a new GetVodSessionRequest.
+ * Constructs a new UpdateCdnKeyRequest.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a GetVodSessionRequest.
- * @implements IGetVodSessionRequest
+ * @classdesc Represents an UpdateCdnKeyRequest.
+ * @implements IUpdateCdnKeyRequest
* @constructor
- * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IUpdateCdnKeyRequest=} [properties] Properties to set
*/
- function GetVodSessionRequest(properties) {
+ function UpdateCdnKeyRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -10610,75 +11637,89 @@
}
/**
- * GetVodSessionRequest name.
- * @member {string} name
- * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
+ * UpdateCdnKeyRequest cdnKey.
+ * @member {google.cloud.video.stitcher.v1.ICdnKey|null|undefined} cdnKey
+ * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
* @instance
*/
- GetVodSessionRequest.prototype.name = "";
+ UpdateCdnKeyRequest.prototype.cdnKey = null;
/**
- * Creates a new GetVodSessionRequest instance using the specified properties.
+ * UpdateCdnKeyRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
+ * @instance
+ */
+ UpdateCdnKeyRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateCdnKeyRequest instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
* @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.IUpdateCdnKeyRequest=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} UpdateCdnKeyRequest instance
*/
- GetVodSessionRequest.create = function create(properties) {
- return new GetVodSessionRequest(properties);
+ UpdateCdnKeyRequest.create = function create(properties) {
+ return new UpdateCdnKeyRequest(properties);
};
/**
- * Encodes the specified GetVodSessionRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodSessionRequest.verify|verify} messages.
+ * 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.GetVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest} message GetVodSessionRequest message or plain object to encode
+ * @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
*/
- GetVodSessionRequest.encode = function encode(message, writer) {
+ UpdateCdnKeyRequest.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.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;
};
/**
- * Encodes the specified GetVodSessionRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodSessionRequest.verify|verify} messages.
+ * 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.GetVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest} message GetVodSessionRequest message or plain object to encode
+ * @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
*/
- GetVodSessionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ UpdateCdnKeyRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a GetVodSessionRequest message from the specified reader or buffer.
+ * Decodes an UpdateCdnKeyRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
+ * @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.GetVodSessionRequest} GetVodSessionRequest
+ * @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
*/
- GetVodSessionRequest.decode = function decode(reader, length) {
+ 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.GetVodSessionRequest();
+ 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.name = reader.string();
+ 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:
@@ -10690,124 +11731,142 @@
};
/**
- * Decodes a GetVodSessionRequest message from the specified reader or buffer, length delimited.
+ * Decodes an UpdateCdnKeyRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
+ * @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.GetVodSessionRequest} GetVodSessionRequest
+ * @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
*/
- GetVodSessionRequest.decodeDelimited = function decodeDelimited(reader) {
+ UpdateCdnKeyRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a GetVodSessionRequest message.
+ * Verifies an UpdateCdnKeyRequest message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
+ * @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
*/
- GetVodSessionRequest.verify = function verify(message) {
+ UpdateCdnKeyRequest.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.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;
};
/**
- * Creates a GetVodSessionRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates an UpdateCdnKeyRequest 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.UpdateCdnKeyRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.GetVodSessionRequest} GetVodSessionRequest
+ * @returns {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} UpdateCdnKeyRequest
*/
- GetVodSessionRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.GetVodSessionRequest)
+ 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.GetVodSessionRequest();
- if (object.name != null)
- message.name = String(object.name);
+ 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;
};
/**
- * Creates a plain object from a GetVodSessionRequest message. Also converts values to other types if specified.
+ * Creates a plain object from an UpdateCdnKeyRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
* @static
- * @param {google.cloud.video.stitcher.v1.GetVodSessionRequest} message GetVodSessionRequest
+ * @param {google.cloud.video.stitcher.v1.UpdateCdnKeyRequest} message UpdateCdnKeyRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- GetVodSessionRequest.toObject = function toObject(message, options) {
+ UpdateCdnKeyRequest.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.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;
};
/**
- * Converts this GetVodSessionRequest to JSON.
+ * Converts this UpdateCdnKeyRequest to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
* @instance
* @returns {Object.} JSON object
*/
- GetVodSessionRequest.prototype.toJSON = function toJSON() {
+ UpdateCdnKeyRequest.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 UpdateCdnKeyRequest
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
+ * @memberof google.cloud.video.stitcher.v1.UpdateCdnKeyRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- GetVodSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ UpdateCdnKeyRequest.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.UpdateCdnKeyRequest";
};
- return GetVodSessionRequest;
+ return UpdateCdnKeyRequest;
})();
- v1.ListVodStitchDetailsRequest = (function() {
+ v1.CreateVodSessionRequest = (function() {
/**
- * Properties of a ListVodStitchDetailsRequest.
+ * Properties of a CreateVodSessionRequest.
* @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 ICreateVodSessionRequest
+ * @property {string|null} [parent] CreateVodSessionRequest parent
+ * @property {google.cloud.video.stitcher.v1.IVodSession|null} [vodSession] CreateVodSessionRequest vodSession
*/
/**
- * Constructs a new ListVodStitchDetailsRequest.
+ * Constructs a new CreateVodSessionRequest.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a ListVodStitchDetailsRequest.
- * @implements IListVodStitchDetailsRequest
+ * @classdesc Represents a CreateVodSessionRequest.
+ * @implements ICreateVodSessionRequest
* @constructor
- * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.ICreateVodSessionRequest=} [properties] Properties to set
*/
- function ListVodStitchDetailsRequest(properties) {
+ function CreateVodSessionRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -10815,90 +11874,80 @@
}
/**
- * ListVodStitchDetailsRequest parent.
+ * CreateVodSessionRequest parent.
* @member {string} parent
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
* @instance
*/
- ListVodStitchDetailsRequest.prototype.parent = "";
+ CreateVodSessionRequest.prototype.parent = "";
/**
- * ListVodStitchDetailsRequest pageSize.
- * @member {number} pageSize
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
+ * CreateVodSessionRequest vodSession.
+ * @member {google.cloud.video.stitcher.v1.IVodSession|null|undefined} vodSession
+ * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
* @instance
*/
- ListVodStitchDetailsRequest.prototype.pageSize = 0;
-
- /**
- * ListVodStitchDetailsRequest pageToken.
- * @member {string} pageToken
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
- * @instance
- */
- ListVodStitchDetailsRequest.prototype.pageToken = "";
+ CreateVodSessionRequest.prototype.vodSession = null;
/**
- * Creates a new ListVodStitchDetailsRequest instance using the specified properties.
+ * Creates a new CreateVodSessionRequest instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
* @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.ICreateVodSessionRequest=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.CreateVodSessionRequest} CreateVodSessionRequest instance
*/
- ListVodStitchDetailsRequest.create = function create(properties) {
- return new ListVodStitchDetailsRequest(properties);
+ CreateVodSessionRequest.create = function create(properties) {
+ return new CreateVodSessionRequest(properties);
};
/**
- * Encodes the specified ListVodStitchDetailsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest.verify|verify} messages.
+ * 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.ListVodStitchDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest} message ListVodStitchDetailsRequest message or plain object to encode
+ * @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
*/
- ListVodStitchDetailsRequest.encode = function encode(message, writer) {
+ 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.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.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;
};
/**
- * Encodes the specified ListVodStitchDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest.verify|verify} messages.
+ * 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.ListVodStitchDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest} message ListVodStitchDetailsRequest message or plain object to encode
+ * @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
*/
- ListVodStitchDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ CreateVodSessionRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a ListVodStitchDetailsRequest message from the specified reader or buffer.
+ * Decodes a CreateVodSessionRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
+ * @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.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest
+ * @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
*/
- ListVodStitchDetailsRequest.decode = function decode(reader, length) {
+ 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.ListVodStitchDetailsRequest();
+ 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) {
@@ -10907,11 +11956,7 @@
break;
}
case 2: {
- message.pageSize = reader.int32();
- break;
- }
- case 3: {
- message.pageToken = reader.string();
+ message.vodSession = $root.google.cloud.video.stitcher.v1.VodSession.decode(reader, reader.uint32());
break;
}
default:
@@ -10923,141 +11968,136 @@
};
/**
- * Decodes a ListVodStitchDetailsRequest message from the specified reader or buffer, length delimited.
+ * Decodes a CreateVodSessionRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
+ * @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.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest
+ * @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
*/
- ListVodStitchDetailsRequest.decodeDelimited = function decodeDelimited(reader) {
+ CreateVodSessionRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a ListVodStitchDetailsRequest message.
+ * Verifies a CreateVodSessionRequest message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
+ * @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
*/
- ListVodStitchDetailsRequest.verify = function verify(message) {
+ 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.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.vodSession != null && message.hasOwnProperty("vodSession")) {
+ var error = $root.google.cloud.video.stitcher.v1.VodSession.verify(message.vodSession);
+ if (error)
+ return "vodSession." + error;
+ }
return null;
};
/**
- * Creates a ListVodStitchDetailsRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a CreateVodSessionRequest 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.CreateVodSessionRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest
+ * @returns {google.cloud.video.stitcher.v1.CreateVodSessionRequest} CreateVodSessionRequest
*/
- ListVodStitchDetailsRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest)
+ 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.ListVodStitchDetailsRequest();
+ var message = new $root.google.cloud.video.stitcher.v1.CreateVodSessionRequest();
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.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;
};
/**
- * Creates a plain object from a ListVodStitchDetailsRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a CreateVodSessionRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
* @static
- * @param {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} message ListVodStitchDetailsRequest
+ * @param {google.cloud.video.stitcher.v1.CreateVodSessionRequest} message CreateVodSessionRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ListVodStitchDetailsRequest.toObject = function toObject(message, options) {
+ CreateVodSessionRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
object.parent = "";
- object.pageSize = 0;
- object.pageToken = "";
+ object.vodSession = 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.vodSession != null && message.hasOwnProperty("vodSession"))
+ object.vodSession = $root.google.cloud.video.stitcher.v1.VodSession.toObject(message.vodSession, options);
return object;
};
/**
- * Converts this ListVodStitchDetailsRequest to JSON.
+ * Converts this CreateVodSessionRequest to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
* @instance
* @returns {Object.} JSON object
*/
- ListVodStitchDetailsRequest.prototype.toJSON = function toJSON() {
+ CreateVodSessionRequest.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 CreateVodSessionRequest
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.CreateVodSessionRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- ListVodStitchDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ CreateVodSessionRequest.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.CreateVodSessionRequest";
};
- return ListVodStitchDetailsRequest;
+ return CreateVodSessionRequest;
})();
- v1.ListVodStitchDetailsResponse = (function() {
+ v1.GetVodSessionRequest = (function() {
/**
- * Properties of a ListVodStitchDetailsResponse.
+ * Properties of a GetVodSessionRequest.
* @memberof google.cloud.video.stitcher.v1
- * @interface IListVodStitchDetailsResponse
- * @property {Array.|null} [vodStitchDetails] ListVodStitchDetailsResponse vodStitchDetails
- * @property {string|null} [nextPageToken] ListVodStitchDetailsResponse nextPageToken
+ * @interface IGetVodSessionRequest
+ * @property {string|null} [name] GetVodSessionRequest name
*/
/**
- * Constructs a new ListVodStitchDetailsResponse.
+ * Constructs a new GetVodSessionRequest.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a ListVodStitchDetailsResponse.
- * @implements IListVodStitchDetailsResponse
+ * @classdesc Represents a GetVodSessionRequest.
+ * @implements IGetVodSessionRequest
* @constructor
- * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IGetVodSessionRequest=} [properties] Properties to set
*/
- function ListVodStitchDetailsResponse(properties) {
- this.vodStitchDetails = [];
+ function GetVodSessionRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -11065,92 +12105,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
+ * GetVodSessionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
* @instance
*/
- ListVodStitchDetailsResponse.prototype.nextPageToken = "";
+ GetVodSessionRequest.prototype.name = "";
/**
- * Creates a new ListVodStitchDetailsResponse instance using the specified properties.
+ * Creates a new GetVodSessionRequest instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
* @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.IGetVodSessionRequest=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.GetVodSessionRequest} GetVodSessionRequest instance
*/
- ListVodStitchDetailsResponse.create = function create(properties) {
- return new ListVodStitchDetailsResponse(properties);
+ GetVodSessionRequest.create = function create(properties) {
+ return new GetVodSessionRequest(properties);
};
/**
- * Encodes the specified ListVodStitchDetailsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse.verify|verify} messages.
+ * 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.ListVodStitchDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse} message ListVodStitchDetailsResponse message or plain object to encode
+ * @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
*/
- ListVodStitchDetailsResponse.encode = function encode(message, writer) {
+ GetVodSessionRequest.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 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.ListVodStitchDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse} message ListVodStitchDetailsResponse message or plain object to encode
+ * @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
*/
- ListVodStitchDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ GetVodSessionRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a ListVodStitchDetailsResponse message from the specified reader or buffer.
+ * Decodes a GetVodSessionRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
+ * @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.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse
+ * @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
*/
- ListVodStitchDetailsResponse.decode = function decode(reader, length) {
+ 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.ListVodStitchDetailsResponse();
+ 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: {
- 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:
@@ -11162,148 +12185,124 @@
};
/**
- * Decodes a ListVodStitchDetailsResponse message from the specified reader or buffer, length delimited.
+ * Decodes a GetVodSessionRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
+ * @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.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse
+ * @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
*/
- ListVodStitchDetailsResponse.decodeDelimited = function decodeDelimited(reader) {
+ GetVodSessionRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a ListVodStitchDetailsResponse message.
+ * Verifies a GetVodSessionRequest message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
+ * @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
*/
- ListVodStitchDetailsResponse.verify = function verify(message) {
+ GetVodSessionRequest.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 GetVodSessionRequest 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.GetVodSessionRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse
+ * @returns {google.cloud.video.stitcher.v1.GetVodSessionRequest} GetVodSessionRequest
*/
- ListVodStitchDetailsResponse.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse)
+ 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.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.GetVodSessionRequest();
+ 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 GetVodSessionRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
* @static
- * @param {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} message ListVodStitchDetailsResponse
+ * @param {google.cloud.video.stitcher.v1.GetVodSessionRequest} message GetVodSessionRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ListVodStitchDetailsResponse.toObject = function toObject(message, options) {
+ GetVodSessionRequest.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 GetVodSessionRequest to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
* @instance
* @returns {Object.} JSON object
*/
- ListVodStitchDetailsResponse.prototype.toJSON = function toJSON() {
+ GetVodSessionRequest.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 GetVodSessionRequest
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodSessionRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- ListVodStitchDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ GetVodSessionRequest.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.GetVodSessionRequest";
};
- return ListVodStitchDetailsResponse;
+ return GetVodSessionRequest;
})();
- v1.GetVodStitchDetailRequest = (function() {
+ v1.ListVodStitchDetailsRequest = (function() {
/**
- * Properties of a GetVodStitchDetailRequest.
+ * Properties of a ListVodStitchDetailsRequest.
* @memberof google.cloud.video.stitcher.v1
- * @interface IGetVodStitchDetailRequest
- * @property {string|null} [name] GetVodStitchDetailRequest name
+ * @interface IListVodStitchDetailsRequest
+ * @property {string|null} [parent] ListVodStitchDetailsRequest parent
+ * @property {number|null} [pageSize] ListVodStitchDetailsRequest pageSize
+ * @property {string|null} [pageToken] ListVodStitchDetailsRequest pageToken
*/
/**
- * Constructs a new GetVodStitchDetailRequest.
+ * Constructs a new ListVodStitchDetailsRequest.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a GetVodStitchDetailRequest.
- * @implements IGetVodStitchDetailRequest
+ * @classdesc Represents a ListVodStitchDetailsRequest.
+ * @implements IListVodStitchDetailsRequest
* @constructor
- * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsRequest=} [properties] Properties to set
*/
- function GetVodStitchDetailRequest(properties) {
+ function ListVodStitchDetailsRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -11311,75 +12310,103 @@
}
/**
- * GetVodStitchDetailRequest name.
- * @member {string} name
- * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
+ * ListVodStitchDetailsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
* @instance
*/
- GetVodStitchDetailRequest.prototype.name = "";
+ ListVodStitchDetailsRequest.prototype.parent = "";
/**
- * Creates a new GetVodStitchDetailRequest instance using the specified properties.
+ * ListVodStitchDetailsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
+ * @instance
+ */
+ ListVodStitchDetailsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListVodStitchDetailsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
+ * @instance
+ */
+ ListVodStitchDetailsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListVodStitchDetailsRequest instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
* @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.IListVodStitchDetailsRequest=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest instance
*/
- GetVodStitchDetailRequest.create = function create(properties) {
- return new GetVodStitchDetailRequest(properties);
+ ListVodStitchDetailsRequest.create = function create(properties) {
+ return new ListVodStitchDetailsRequest(properties);
};
/**
- * Encodes the specified GetVodStitchDetailRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodStitchDetailRequest.verify|verify} messages.
+ * 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.GetVodStitchDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest} message GetVodStitchDetailRequest message or plain object to encode
+ * @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
*/
- GetVodStitchDetailRequest.encode = function encode(message, writer) {
+ ListVodStitchDetailsRequest.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);
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 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.GetVodStitchDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest} message GetVodStitchDetailRequest message or plain object to encode
+ * @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
*/
- GetVodStitchDetailRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ ListVodStitchDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a GetVodStitchDetailRequest message from the specified reader or buffer.
+ * Decodes a ListVodStitchDetailsRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
+ * @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.GetVodStitchDetailRequest} GetVodStitchDetailRequest
+ * @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
*/
- GetVodStitchDetailRequest.decode = function decode(reader, length) {
+ 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.GetVodStitchDetailRequest();
+ 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.name = reader.string();
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
break;
}
default:
@@ -11391,124 +12418,141 @@
};
/**
- * Decodes a GetVodStitchDetailRequest message from the specified reader or buffer, length delimited.
+ * Decodes a ListVodStitchDetailsRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
+ * @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.GetVodStitchDetailRequest} GetVodStitchDetailRequest
+ * @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
*/
- GetVodStitchDetailRequest.decodeDelimited = function decodeDelimited(reader) {
+ ListVodStitchDetailsRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a GetVodStitchDetailRequest message.
+ * Verifies a ListVodStitchDetailsRequest message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
+ * @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
*/
- GetVodStitchDetailRequest.verify = function verify(message) {
+ ListVodStitchDetailsRequest.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";
return null;
};
/**
- * Creates a GetVodStitchDetailRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a ListVodStitchDetailsRequest 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.ListVodStitchDetailsRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} GetVodStitchDetailRequest
+ * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} ListVodStitchDetailsRequest
*/
- GetVodStitchDetailRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest)
+ 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.GetVodStitchDetailRequest();
- if (object.name != null)
- message.name = String(object.name);
+ 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;
};
/**
- * Creates a plain object from a GetVodStitchDetailRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a ListVodStitchDetailsRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
* @static
- * @param {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} message GetVodStitchDetailRequest
+ * @param {google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest} message ListVodStitchDetailsRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- GetVodStitchDetailRequest.toObject = function toObject(message, options) {
+ ListVodStitchDetailsRequest.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 = "";
+ }
+ 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 GetVodStitchDetailRequest to JSON.
+ * Converts this ListVodStitchDetailsRequest to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
* @instance
* @returns {Object.} JSON object
*/
- GetVodStitchDetailRequest.prototype.toJSON = function toJSON() {
+ ListVodStitchDetailsRequest.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 ListVodStitchDetailsRequest
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- GetVodStitchDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ ListVodStitchDetailsRequest.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.ListVodStitchDetailsRequest";
};
- return GetVodStitchDetailRequest;
+ return ListVodStitchDetailsRequest;
})();
- v1.ListVodAdTagDetailsRequest = (function() {
+ v1.ListVodStitchDetailsResponse = (function() {
/**
- * Properties of a ListVodAdTagDetailsRequest.
+ * Properties of a ListVodStitchDetailsResponse.
* @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 IListVodStitchDetailsResponse
+ * @property {Array.|null} [vodStitchDetails] ListVodStitchDetailsResponse vodStitchDetails
+ * @property {string|null} [nextPageToken] ListVodStitchDetailsResponse nextPageToken
*/
/**
- * Constructs a new ListVodAdTagDetailsRequest.
+ * Constructs a new ListVodStitchDetailsResponse.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a ListVodAdTagDetailsRequest.
- * @implements IListVodAdTagDetailsRequest
+ * @classdesc Represents a ListVodStitchDetailsResponse.
+ * @implements IListVodStitchDetailsResponse
* @constructor
- * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IListVodStitchDetailsResponse=} [properties] Properties to set
*/
- function ListVodAdTagDetailsRequest(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)
@@ -11516,103 +12560,92 @@
}
/**
- * ListVodAdTagDetailsRequest parent.
- * @member {string} parent
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
- * @instance
- */
- ListVodAdTagDetailsRequest.prototype.parent = "";
-
- /**
- * ListVodAdTagDetailsRequest pageSize.
- * @member {number} pageSize
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
+ * ListVodStitchDetailsResponse vodStitchDetails.
+ * @member {Array.} vodStitchDetails
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
* @instance
*/
- ListVodAdTagDetailsRequest.prototype.pageSize = 0;
+ ListVodStitchDetailsResponse.prototype.vodStitchDetails = $util.emptyArray;
/**
- * ListVodAdTagDetailsRequest pageToken.
- * @member {string} pageToken
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
+ * ListVodStitchDetailsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
* @instance
*/
- ListVodAdTagDetailsRequest.prototype.pageToken = "";
+ ListVodStitchDetailsResponse.prototype.nextPageToken = "";
/**
- * Creates a new ListVodAdTagDetailsRequest instance using the specified properties.
+ * Creates a new ListVodStitchDetailsResponse instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
* @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.IListVodStitchDetailsResponse=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse instance
*/
- ListVodAdTagDetailsRequest.create = function create(properties) {
- return new ListVodAdTagDetailsRequest(properties);
+ ListVodStitchDetailsResponse.create = function create(properties) {
+ return new ListVodStitchDetailsResponse(properties);
};
/**
- * Encodes the specified ListVodAdTagDetailsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest.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.ListVodAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
* @static
- * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest} message ListVodAdTagDetailsRequest 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
*/
- ListVodAdTagDetailsRequest.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.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.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 ListVodAdTagDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest.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.ListVodAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
* @static
- * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest} message ListVodAdTagDetailsRequest 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
*/
- ListVodAdTagDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ ListVodStitchDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a ListVodAdTagDetailsRequest 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.ListVodAdTagDetailsRequest
+ * @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.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest
+ * @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
*/
- ListVodAdTagDetailsRequest.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.ListVodAdTagDetailsRequest();
+ 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.pageSize = reader.int32();
- break;
- }
- case 3: {
- message.pageToken = reader.string();
+ message.nextPageToken = reader.string();
break;
}
default:
@@ -11624,141 +12657,148 @@
};
/**
- * Decodes a ListVodAdTagDetailsRequest 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.ListVodAdTagDetailsRequest
+ * @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.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest
+ * @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
*/
- ListVodAdTagDetailsRequest.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 ListVodAdTagDetailsRequest message.
+ * Verifies a ListVodStitchDetailsResponse message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
+ * @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
*/
- ListVodAdTagDetailsRequest.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.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.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";
return null;
};
/**
- * Creates a ListVodAdTagDetailsRequest 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.ListVodAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest
+ * @returns {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} ListVodStitchDetailsResponse
*/
- ListVodAdTagDetailsRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest)
+ 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.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.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);
return message;
};
/**
- * Creates a plain object from a ListVodAdTagDetailsRequest 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.ListVodAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
* @static
- * @param {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} message ListVodAdTagDetailsRequest
+ * @param {google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse} message ListVodStitchDetailsResponse
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ListVodAdTagDetailsRequest.toObject = function toObject(message, options) {
+ ListVodStitchDetailsResponse.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.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.pageSize != null && message.hasOwnProperty("pageSize"))
- object.pageSize = message.pageSize;
- if (message.pageToken != null && message.hasOwnProperty("pageToken"))
- object.pageToken = message.pageToken;
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
return object;
};
/**
- * Converts this ListVodAdTagDetailsRequest to JSON.
+ * Converts this ListVodStitchDetailsResponse to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
* @instance
* @returns {Object.} JSON object
*/
- ListVodAdTagDetailsRequest.prototype.toJSON = function toJSON() {
+ ListVodStitchDetailsResponse.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 ListVodStitchDetailsResponse
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- ListVodAdTagDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ ListVodStitchDetailsResponse.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.ListVodStitchDetailsResponse";
};
- return ListVodAdTagDetailsRequest;
+ return ListVodStitchDetailsResponse;
})();
- v1.ListVodAdTagDetailsResponse = (function() {
+ v1.GetVodStitchDetailRequest = (function() {
/**
- * Properties of a ListVodAdTagDetailsResponse.
+ * Properties of a GetVodStitchDetailRequest.
* @memberof google.cloud.video.stitcher.v1
- * @interface IListVodAdTagDetailsResponse
- * @property {Array.|null} [vodAdTagDetails] ListVodAdTagDetailsResponse vodAdTagDetails
- * @property {string|null} [nextPageToken] ListVodAdTagDetailsResponse nextPageToken
+ * @interface IGetVodStitchDetailRequest
+ * @property {string|null} [name] GetVodStitchDetailRequest name
*/
/**
- * Constructs a new ListVodAdTagDetailsResponse.
+ * Constructs a new GetVodStitchDetailRequest.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a ListVodAdTagDetailsResponse.
- * @implements IListVodAdTagDetailsResponse
+ * @classdesc Represents a GetVodStitchDetailRequest.
+ * @implements IGetVodStitchDetailRequest
* @constructor
- * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IGetVodStitchDetailRequest=} [properties] Properties to set
*/
- function ListVodAdTagDetailsResponse(properties) {
- this.vodAdTagDetails = [];
+ function GetVodStitchDetailRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -11766,92 +12806,75 @@
}
/**
- * ListVodAdTagDetailsResponse vodAdTagDetails.
- * @member {Array.} vodAdTagDetails
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
- * @instance
- */
- ListVodAdTagDetailsResponse.prototype.vodAdTagDetails = $util.emptyArray;
-
- /**
- * ListVodAdTagDetailsResponse nextPageToken.
- * @member {string} nextPageToken
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
+ * GetVodStitchDetailRequest name.
+ * @member {string} name
+ * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
* @instance
*/
- ListVodAdTagDetailsResponse.prototype.nextPageToken = "";
+ GetVodStitchDetailRequest.prototype.name = "";
/**
- * Creates a new ListVodAdTagDetailsResponse instance using the specified properties.
+ * Creates a new GetVodStitchDetailRequest instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
* @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.IGetVodStitchDetailRequest=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} GetVodStitchDetailRequest instance
*/
- ListVodAdTagDetailsResponse.create = function create(properties) {
- return new ListVodAdTagDetailsResponse(properties);
+ GetVodStitchDetailRequest.create = function create(properties) {
+ return new GetVodStitchDetailRequest(properties);
};
/**
- * Encodes the specified ListVodAdTagDetailsResponse message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse.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.ListVodAdTagDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse} message ListVodAdTagDetailsResponse 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
*/
- ListVodAdTagDetailsResponse.encode = function encode(message, writer) {
+ GetVodStitchDetailRequest.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.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
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 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.ListVodAdTagDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse} message ListVodAdTagDetailsResponse 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
*/
- ListVodAdTagDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ GetVodStitchDetailRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a ListVodAdTagDetailsResponse 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.ListVodAdTagDetailsResponse
+ * @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.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse
+ * @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
*/
- ListVodAdTagDetailsResponse.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.ListVodAdTagDetailsResponse();
+ 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: {
- 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();
+ message.name = reader.string();
break;
}
default:
@@ -11863,148 +12886,124 @@
};
/**
- * Decodes a ListVodAdTagDetailsResponse 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.ListVodAdTagDetailsResponse
+ * @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.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse
+ * @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
*/
- ListVodAdTagDetailsResponse.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 ListVodAdTagDetailsResponse message.
+ * Verifies a GetVodStitchDetailRequest message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
+ * @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
*/
- ListVodAdTagDetailsResponse.verify = function verify(message) {
+ GetVodStitchDetailRequest.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.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 ListVodAdTagDetailsResponse 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.ListVodAdTagDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse
+ * @returns {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} GetVodStitchDetailRequest
*/
- ListVodAdTagDetailsResponse.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse)
+ 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.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);
+ 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 ListVodAdTagDetailsResponse 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.ListVodAdTagDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
* @static
- * @param {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} message ListVodAdTagDetailsResponse
+ * @param {google.cloud.video.stitcher.v1.GetVodStitchDetailRequest} message GetVodStitchDetailRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ListVodAdTagDetailsResponse.toObject = function toObject(message, options) {
+ GetVodStitchDetailRequest.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 (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 ListVodAdTagDetailsResponse to JSON.
+ * Converts this GetVodStitchDetailRequest to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
* @instance
* @returns {Object.} JSON object
*/
- ListVodAdTagDetailsResponse.prototype.toJSON = function toJSON() {
+ GetVodStitchDetailRequest.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 GetVodStitchDetailRequest
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
+ * @memberof google.cloud.video.stitcher.v1.GetVodStitchDetailRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- ListVodAdTagDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ GetVodStitchDetailRequest.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.GetVodStitchDetailRequest";
};
- return ListVodAdTagDetailsResponse;
+ return GetVodStitchDetailRequest;
})();
- v1.GetVodAdTagDetailRequest = (function() {
+ v1.ListVodAdTagDetailsRequest = (function() {
/**
- * Properties of a GetVodAdTagDetailRequest.
+ * Properties of a ListVodAdTagDetailsRequest.
* @memberof google.cloud.video.stitcher.v1
- * @interface IGetVodAdTagDetailRequest
- * @property {string|null} [name] GetVodAdTagDetailRequest name
+ * @interface IListVodAdTagDetailsRequest
+ * @property {string|null} [parent] ListVodAdTagDetailsRequest parent
+ * @property {number|null} [pageSize] ListVodAdTagDetailsRequest pageSize
+ * @property {string|null} [pageToken] ListVodAdTagDetailsRequest pageToken
*/
/**
- * Constructs a new GetVodAdTagDetailRequest.
+ * Constructs a new ListVodAdTagDetailsRequest.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a GetVodAdTagDetailRequest.
- * @implements IGetVodAdTagDetailRequest
+ * @classdesc Represents a ListVodAdTagDetailsRequest.
+ * @implements IListVodAdTagDetailsRequest
* @constructor
- * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsRequest=} [properties] Properties to set
*/
- function GetVodAdTagDetailRequest(properties) {
+ function ListVodAdTagDetailsRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -12012,75 +13011,103 @@
}
/**
- * GetVodAdTagDetailRequest name.
- * @member {string} name
- * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest
+ * ListVodAdTagDetailsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
* @instance
*/
- GetVodAdTagDetailRequest.prototype.name = "";
+ ListVodAdTagDetailsRequest.prototype.parent = "";
/**
- * Creates a new GetVodAdTagDetailRequest instance using the specified properties.
+ * ListVodAdTagDetailsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
+ * @instance
+ */
+ ListVodAdTagDetailsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListVodAdTagDetailsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
+ * @instance
+ */
+ ListVodAdTagDetailsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListVodAdTagDetailsRequest instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
* @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.IListVodAdTagDetailsRequest=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest instance
*/
- GetVodAdTagDetailRequest.create = function create(properties) {
- return new GetVodAdTagDetailRequest(properties);
+ ListVodAdTagDetailsRequest.create = function create(properties) {
+ return new ListVodAdTagDetailsRequest(properties);
};
/**
- * Encodes the specified GetVodAdTagDetailRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest.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.GetVodAdTagDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest} message GetVodAdTagDetailRequest 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
*/
- GetVodAdTagDetailRequest.encode = function encode(message, writer) {
+ ListVodAdTagDetailsRequest.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);
return writer;
};
/**
- * Encodes the specified GetVodAdTagDetailRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest.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.GetVodAdTagDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
* @static
- * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest} message GetVodAdTagDetailRequest 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
*/
- GetVodAdTagDetailRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ ListVodAdTagDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a GetVodAdTagDetailRequest 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.GetVodAdTagDetailRequest
+ * @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.GetVodAdTagDetailRequest} GetVodAdTagDetailRequest
+ * @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
*/
- GetVodAdTagDetailRequest.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.GetVodAdTagDetailRequest();
+ 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: {
- message.name = reader.string();
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
break;
}
default:
@@ -12092,124 +13119,141 @@
};
/**
- * Decodes a GetVodAdTagDetailRequest 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.GetVodAdTagDetailRequest
+ * @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.GetVodAdTagDetailRequest} GetVodAdTagDetailRequest
+ * @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
*/
- GetVodAdTagDetailRequest.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 GetVodAdTagDetailRequest message.
+ * Verifies a ListVodAdTagDetailsRequest message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest
+ * @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
*/
- GetVodAdTagDetailRequest.verify = function verify(message) {
+ ListVodAdTagDetailsRequest.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;
- };
-
- /**
- * Creates a GetVodAdTagDetailRequest message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest
- * @static
+ 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 ListVodAdTagDetailsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
+ * @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} GetVodAdTagDetailRequest
+ * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} ListVodAdTagDetailsRequest
*/
- GetVodAdTagDetailRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest)
+ 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.GetVodAdTagDetailRequest();
- if (object.name != null)
- message.name = String(object.name);
+ 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 GetVodAdTagDetailRequest 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.GetVodAdTagDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
* @static
- * @param {google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest} message GetVodAdTagDetailRequest
+ * @param {google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest} message ListVodAdTagDetailsRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- GetVodAdTagDetailRequest.toObject = function toObject(message, options) {
+ ListVodAdTagDetailsRequest.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 = "";
+ }
+ 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 GetVodAdTagDetailRequest to JSON.
+ * Converts this ListVodAdTagDetailsRequest to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
* @instance
* @returns {Object.} JSON object
*/
- GetVodAdTagDetailRequest.prototype.toJSON = function toJSON() {
+ ListVodAdTagDetailsRequest.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 ListVodAdTagDetailsRequest
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- GetVodAdTagDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ ListVodAdTagDetailsRequest.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.ListVodAdTagDetailsRequest";
};
- return GetVodAdTagDetailRequest;
+ return ListVodAdTagDetailsRequest;
})();
- v1.ListLiveAdTagDetailsRequest = (function() {
+ v1.ListVodAdTagDetailsResponse = (function() {
/**
- * Properties of a ListLiveAdTagDetailsRequest.
+ * Properties of a ListVodAdTagDetailsResponse.
* @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 IListVodAdTagDetailsResponse
+ * @property {Array.|null} [vodAdTagDetails] ListVodAdTagDetailsResponse vodAdTagDetails
+ * @property {string|null} [nextPageToken] ListVodAdTagDetailsResponse nextPageToken
*/
/**
- * Constructs a new ListLiveAdTagDetailsRequest.
+ * Constructs a new ListVodAdTagDetailsResponse.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a ListLiveAdTagDetailsRequest.
- * @implements IListLiveAdTagDetailsRequest
+ * @classdesc Represents a ListVodAdTagDetailsResponse.
+ * @implements IListVodAdTagDetailsResponse
* @constructor
- * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IListVodAdTagDetailsResponse=} [properties] Properties to set
*/
- function ListLiveAdTagDetailsRequest(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)
@@ -12217,103 +13261,92 @@
}
/**
- * ListLiveAdTagDetailsRequest 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
+ * ListVodAdTagDetailsResponse vodAdTagDetails.
+ * @member {Array.} vodAdTagDetails
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
* @instance
*/
- ListLiveAdTagDetailsRequest.prototype.pageSize = 0;
+ ListVodAdTagDetailsResponse.prototype.vodAdTagDetails = $util.emptyArray;
/**
- * ListLiveAdTagDetailsRequest pageToken.
- * @member {string} pageToken
- * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest
+ * ListVodAdTagDetailsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
* @instance
*/
- ListLiveAdTagDetailsRequest.prototype.pageToken = "";
+ ListVodAdTagDetailsResponse.prototype.nextPageToken = "";
/**
- * Creates a new ListLiveAdTagDetailsRequest instance using the specified properties.
+ * Creates a new ListVodAdTagDetailsResponse instance using the specified properties.
* @function create
- * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
* @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.IListVodAdTagDetailsResponse=} [properties] Properties to set
+ * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse instance
*/
- ListLiveAdTagDetailsRequest.create = function create(properties) {
- return new ListLiveAdTagDetailsRequest(properties);
+ ListVodAdTagDetailsResponse.create = function create(properties) {
+ return new ListVodAdTagDetailsResponse(properties);
};
/**
- * Encodes the specified ListLiveAdTagDetailsRequest message. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest.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.ListLiveAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
* @static
- * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest} message ListLiveAdTagDetailsRequest 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
*/
- ListLiveAdTagDetailsRequest.encode = function encode(message, writer) {
+ ListVodAdTagDetailsResponse.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.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 ListLiveAdTagDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest.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.ListLiveAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
* @static
- * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsRequest} message ListLiveAdTagDetailsRequest 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
*/
- ListLiveAdTagDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ ListVodAdTagDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a ListLiveAdTagDetailsRequest 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.ListLiveAdTagDetailsRequest
+ * @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.ListLiveAdTagDetailsRequest} ListLiveAdTagDetailsRequest
+ * @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
*/
- ListLiveAdTagDetailsRequest.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.ListLiveAdTagDetailsRequest();
+ 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.parent = 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.pageSize = reader.int32();
- break;
- }
- case 3: {
- message.pageToken = reader.string();
+ message.nextPageToken = reader.string();
break;
}
default:
@@ -12325,141 +13358,148 @@
};
/**
- * Decodes a ListLiveAdTagDetailsRequest 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.ListLiveAdTagDetailsRequest
+ * @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.ListLiveAdTagDetailsRequest} ListLiveAdTagDetailsRequest
+ * @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
*/
- ListLiveAdTagDetailsRequest.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 ListLiveAdTagDetailsRequest message.
+ * Verifies a ListVodAdTagDetailsResponse message.
* @function verify
- * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest
+ * @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
*/
- ListLiveAdTagDetailsRequest.verify = function verify(message) {
+ ListVodAdTagDetailsResponse.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.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 ListLiveAdTagDetailsRequest 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.ListLiveAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
* @static
* @param {Object.} object Plain object
- * @returns {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} ListLiveAdTagDetailsRequest
+ * @returns {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} ListVodAdTagDetailsResponse
*/
- ListLiveAdTagDetailsRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest)
+ 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.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);
+ 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 ListLiveAdTagDetailsRequest 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.ListLiveAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
* @static
- * @param {google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest} message ListLiveAdTagDetailsRequest
+ * @param {google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse} message ListVodAdTagDetailsResponse
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ListLiveAdTagDetailsRequest.toObject = function toObject(message, options) {
+ ListVodAdTagDetailsResponse.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;
+ 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 (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
return object;
};
/**
- * Converts this ListLiveAdTagDetailsRequest to JSON.
+ * Converts this ListVodAdTagDetailsResponse to JSON.
* @function toJSON
- * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
* @instance
* @returns {Object.} JSON object
*/
- ListLiveAdTagDetailsRequest.prototype.toJSON = function toJSON() {
+ ListVodAdTagDetailsResponse.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 ListVodAdTagDetailsResponse
* @function getTypeUrl
- * @memberof google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest
+ * @memberof google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- ListLiveAdTagDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ ListVodAdTagDetailsResponse.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.ListVodAdTagDetailsResponse";
};
- return ListLiveAdTagDetailsRequest;
+ return ListVodAdTagDetailsResponse;
})();
- v1.ListLiveAdTagDetailsResponse = (function() {
+ v1.GetVodAdTagDetailRequest = (function() {
/**
- * Properties of a ListLiveAdTagDetailsResponse.
+ * Properties of a GetVodAdTagDetailRequest.
* @memberof google.cloud.video.stitcher.v1
- * @interface IListLiveAdTagDetailsResponse
- * @property {Array.|null} [liveAdTagDetails] ListLiveAdTagDetailsResponse liveAdTagDetails
- * @property {string|null} [nextPageToken] ListLiveAdTagDetailsResponse nextPageToken
+ * @interface IGetVodAdTagDetailRequest
+ * @property {string|null} [name] GetVodAdTagDetailRequest name
*/
/**
- * Constructs a new ListLiveAdTagDetailsResponse.
+ * Constructs a new GetVodAdTagDetailRequest.
* @memberof google.cloud.video.stitcher.v1
- * @classdesc Represents a ListLiveAdTagDetailsResponse.
- * @implements IListLiveAdTagDetailsResponse
+ * @classdesc Represents a GetVodAdTagDetailRequest.
+ * @implements IGetVodAdTagDetailRequest
* @constructor
- * @param {google.cloud.video.stitcher.v1.IListLiveAdTagDetailsResponse=} [properties] Properties to set
+ * @param {google.cloud.video.stitcher.v1.IGetVodAdTagDetailRequest=} [properties] Properties to set
*/
- function ListLiveAdTagDetailsResponse(properties) {
- this.liveAdTagDetails = [];
+ function GetVodAdTagDetailRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -12467,92 +13507,75 @@
}
/**
- * ListLiveAdTagDetailsResponse liveAdTagDetails.
- * @member {Array.