diff options
Diffstat (limited to 'third_party/googleapis/google/cloud/video/livestream/v1')
6 files changed, 0 insertions, 2017 deletions
diff --git a/third_party/googleapis/google/cloud/video/livestream/v1/BUILD.bazel b/third_party/googleapis/google/cloud/video/livestream/v1/BUILD.bazel deleted file mode 100644 index d54d33b..0000000 --- a/third_party/googleapis/google/cloud/video/livestream/v1/BUILD.bazel +++ /dev/null @@ -1,393 +0,0 @@ -# This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/rules_gapic/tree/master/bazel - -# Most of the manual changes to this file will be overwritten. -# It's **only** allowed to change the following rule attribute values: -# - names of *_gapic_assembly_* rules -# - certain parameters of *_gapic_library rules, including but not limited to: -#    * extra_protoc_parameters -#    * extra_protoc_file_parameters -# The complete list of preserved parameters can be found in the source code. - -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - -############################################################################## -# Common -############################################################################## -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") - -proto_library( -    name = "livestream_proto", -    srcs = [ -        "outputs.proto", -        "resources.proto", -        "service.proto", -    ], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:field_behavior_proto", -        "//google/api:resource_proto", -        "//google/longrunning:operations_proto", -        "//google/rpc:status_proto", -        "@com_google_protobuf//:duration_proto", -        "@com_google_protobuf//:empty_proto", -        "@com_google_protobuf//:field_mask_proto", -        "@com_google_protobuf//:timestamp_proto", -    ], -) - -proto_library_with_info( -    name = "livestream_proto_with_info", -    deps = [ -        ":livestream_proto", -        "//google/cloud:common_resources_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "livestream_java_proto", -    deps = [":livestream_proto"], -) - -java_grpc_library( -    name = "livestream_java_grpc", -    srcs = [":livestream_proto"], -    deps = [":livestream_java_proto"], -) - -java_gapic_library( -    name = "livestream_java_gapic", -    srcs = [":livestream_proto_with_info"], -    gapic_yaml = None, -    grpc_service_config = "livestream_grpc_service_config.json", -    service_yaml = "livestream_v1.yaml", -    test_deps = [ -        ":livestream_java_grpc", -    ], -    transport = "grpc+rest", -    deps = [ -        ":livestream_java_proto", -        "//google/api:api_java_proto", -    ], -) - -java_gapic_test( -    name = "livestream_java_gapic_test_suite", -    test_classes = [ -        "com.google.cloud.video.livestream.v1.LivestreamServiceClientHttpJsonTest", -        "com.google.cloud.video.livestream.v1.LivestreamServiceClientTest", -    ], -    runtime_deps = [":livestream_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-cloud-video-livestream-v1-java", -    include_samples = True, -    transport = "grpc+rest", -    deps = [ -        ":livestream_java_gapic", -        ":livestream_java_grpc", -        ":livestream_java_proto", -        ":livestream_proto", -    ], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_proto_library( -    name = "livestream_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/cloud/video/livestream/v1", -    protos = [":livestream_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -        "//google/longrunning:longrunning_go_proto", -        "//google/rpc:status_go_proto", -    ], -) - -go_gapic_library( -    name = "livestream_go_gapic", -    srcs = [":livestream_proto_with_info"], -    grpc_service_config = "livestream_grpc_service_config.json", -    importpath = "cloud.google.com/go/video/livestream/apiv1;livestream", -    metadata = True, -    service_yaml = "livestream_v1.yaml", -    transport = "grpc+rest", -    deps = [ -        ":livestream_go_proto", -        "//google/longrunning:longrunning_go_proto", -        "@com_google_cloud_go//longrunning:go_default_library", -        "@com_google_cloud_go//longrunning/autogen:go_default_library", -        "@io_bazel_rules_go//proto/wkt:duration_go_proto", -    ], -) - -go_test( -    name = "livestream_go_gapic_test", -    srcs = [":livestream_go_gapic_srcjar_test"], -    embed = [":livestream_go_gapic"], -    importpath = "cloud.google.com/go/video/livestream/apiv1", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapi-cloud-video-livestream-v1-go", -    deps = [ -        ":livestream_go_gapic", -        ":livestream_go_gapic_srcjar-metadata.srcjar", -        ":livestream_go_gapic_srcjar-test.srcjar", -        ":livestream_go_proto", -    ], -) - -############################################################################## -# Python -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "py_gapic_assembly_pkg", -    "py_gapic_library", -    "py_test", -) - -py_gapic_library( -    name = "livestream_py_gapic", -    srcs = [":livestream_proto"], -    grpc_service_config = "livestream_grpc_service_config.json", -    opt_args = [ -        "warehouse-package-name=google-cloud-video-live-stream", -        "python-gapic-namespace=google.cloud.video", -        "python-gapic-name=live_stream", -    ], -    transport = "grpc", -) - -py_test( -    name = "livestream_py_gapic_test", -    srcs = [ -        "livestream_py_gapic_pytest.py", -        "livestream_py_gapic_test.py", -    ], -    legacy_create_init = False, -    deps = [":livestream_py_gapic"], -) - -# Open Source Packages -py_gapic_assembly_pkg( -    name = "video-livestream-v1-py", -    deps = [ -        ":livestream_py_gapic", -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_gapic_assembly_pkg", -    "php_gapic_library", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "livestream_php_proto", -    deps = [":livestream_proto"], -) - -php_grpc_library( -    name = "livestream_php_grpc", -    srcs = [":livestream_proto"], -    deps = [":livestream_php_proto"], -) - -php_gapic_library( -    name = "livestream_php_gapic", -    srcs = [":livestream_proto_with_info"], -    grpc_service_config = "livestream_grpc_service_config.json", -    service_yaml = "livestream_v1.yaml", -    deps = [ -        ":livestream_php_grpc", -        ":livestream_php_proto", -    ], -) - -# Open Source Packages -php_gapic_assembly_pkg( -    name = "google-cloud-video-livestream-v1-php", -    deps = [ -        ":livestream_php_gapic", -        ":livestream_php_grpc", -        ":livestream_php_proto", -    ], -) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - -nodejs_gapic_library( -    name = "livestream_nodejs_gapic", -    package_name = "@google-cloud/livestream", -    src = ":livestream_proto_with_info", -    extra_protoc_parameters = ["metadata"], -    grpc_service_config = "livestream_grpc_service_config.json", -    package = "google.cloud.video.livestream.v1", -    service_yaml = "livestream_v1.yaml", -    deps = [], -) - -nodejs_gapic_assembly_pkg( -    name = "video-livestream-v1-nodejs", -    deps = [ -        ":livestream_nodejs_gapic", -        ":livestream_proto", -    ], -) - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_cloud_gapic_library", -    "ruby_gapic_assembly_pkg", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "livestream_ruby_proto", -    deps = [":livestream_proto"], -) - -ruby_grpc_library( -    name = "livestream_ruby_grpc", -    srcs = [":livestream_proto"], -    deps = [":livestream_ruby_proto"], -) - -ruby_cloud_gapic_library( -    name = "livestream_ruby_gapic", -    srcs = [":livestream_proto_with_info"], -    extra_protoc_parameters = [ -        "ruby-cloud-api-id=livestream.googleapis.com", -        "ruby-cloud-api-shortname=livestream", -        "ruby-cloud-gem-name=google-cloud-video-live_stream-v1", -        "ruby-cloud-product-url=https://cloud.google.com/livestream/", -    ], -    grpc_service_config = "livestream_grpc_service_config.json", -    ruby_cloud_description = "The Live Stream API transcodes mezzanine live signals into direct-to-consumer streaming formats, including Dynamic Adaptive Streaming over HTTP (DASH/MPEG-DASH), and HTTP Live Streaming (HLS), for multiple device platforms.", -    ruby_cloud_title = "Live Stream V1", -    deps = [ -        ":livestream_ruby_grpc", -        ":livestream_ruby_proto", -    ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( -    name = "google-cloud-video-livestream-v1-ruby", -    deps = [ -        ":livestream_ruby_gapic", -        ":livestream_ruby_grpc", -        ":livestream_ruby_proto", -    ], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_gapic_assembly_pkg", -    "csharp_gapic_library", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "livestream_csharp_proto", -    deps = [":livestream_proto"], -) - -csharp_grpc_library( -    name = "livestream_csharp_grpc", -    srcs = [":livestream_proto"], -    deps = [":livestream_csharp_proto"], -) - -csharp_gapic_library( -    name = "livestream_csharp_gapic", -    srcs = [":livestream_proto_with_info"], -    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -    grpc_service_config = "livestream_grpc_service_config.json", -    service_yaml = "livestream_v1.yaml", -    deps = [ -        ":livestream_csharp_grpc", -        ":livestream_csharp_proto", -    ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( -    name = "google-cloud-video-livestream-v1-csharp", -    deps = [ -        ":livestream_csharp_gapic", -        ":livestream_csharp_grpc", -        ":livestream_csharp_proto", -    ], -) - -############################################################################## -# C++ -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "cc_grpc_library", -    "cc_proto_library", -) - -cc_proto_library( -    name = "livestream_cc_proto", -    deps = [":livestream_proto"], -) - -cc_grpc_library( -    name = "livestream_cc_grpc", -    srcs = [":livestream_proto"], -    grpc_only = True, -    deps = [":livestream_cc_proto"], -) diff --git a/third_party/googleapis/google/cloud/video/livestream/v1/livestream_grpc_service_config.json b/third_party/googleapis/google/cloud/video/livestream/v1/livestream_grpc_service_config.json deleted file mode 100644 index 3c26846..0000000 --- a/third_party/googleapis/google/cloud/video/livestream/v1/livestream_grpc_service_config.json +++ /dev/null @@ -1,35 +0,0 @@ -{ -  "methodConfig": [{ -    "name": [ -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "ListChannels" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "GetChannel" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "ListInputs" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "GetInput" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "ListEvents" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "GetEvent" } -    ], -    "timeout": "60s", -    "retryPolicy": { -      "maxAttempts": 5, -      "initialBackoff": "1s", -      "maxBackoff": "10s", -      "backoffMultiplier": 1.3, -      "retryableStatusCodes": ["UNAVAILABLE"] -    } -  }, -  { -    "name": [ -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "CreateChannel" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "DeleteChannel" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "UpdateChannel" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "StartChannel" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "StopChannel" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "CreateInput" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "DeleteInput" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "UpdateInput" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "CreateEvent" }, -      { "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "DeleteEvent" } -    ], -    "timeout": "60s" -  }] -} diff --git a/third_party/googleapis/google/cloud/video/livestream/v1/livestream_v1.yaml b/third_party/googleapis/google/cloud/video/livestream/v1/livestream_v1.yaml deleted file mode 100644 index 4fe15dd..0000000 --- a/third_party/googleapis/google/cloud/video/livestream/v1/livestream_v1.yaml +++ /dev/null @@ -1,65 +0,0 @@ -type: google.api.Service -config_version: 3 -name: livestream.googleapis.com -title: Live Stream API - -apis: -- name: google.cloud.video.livestream.v1.LivestreamService - -types: -- name: google.cloud.video.livestream.v1.ChannelOperationResponse -- name: google.cloud.video.livestream.v1.OperationMetadata - -documentation: -  rules: -  - selector: google.cloud.location.Locations.GetLocation -    description: Gets information about a location. - -  - selector: google.cloud.location.Locations.ListLocations -    description: Lists information about the supported locations for this service. - -backend: -  rules: -  - selector: google.cloud.location.Locations.GetLocation -    deadline: 60.0 -  - selector: google.cloud.location.Locations.ListLocations -    deadline: 60.0 -  - selector: 'google.cloud.video.livestream.v1.LivestreamService.*' -    deadline: 60.0 -  - selector: 'google.longrunning.Operations.*' -    deadline: 60.0 - -http: -  rules: -  - selector: google.cloud.location.Locations.GetLocation -    get: '/v1/{name=projects/*/locations/*}' -  - selector: google.cloud.location.Locations.ListLocations -    get: '/v1/{name=projects/*}/locations' -  - selector: google.longrunning.Operations.CancelOperation -    post: '/v1/{name=projects/*/locations/*/operations/*}:cancel' -    body: '*' -  - selector: google.longrunning.Operations.DeleteOperation -    delete: '/v1/{name=projects/*/locations/*/operations/*}' -  - selector: google.longrunning.Operations.GetOperation -    get: '/v1/{name=projects/*/locations/*/operations/*}' -  - selector: google.longrunning.Operations.ListOperations -    get: '/v1/{name=projects/*/locations/*}/operations' - -authentication: -  rules: -  - selector: google.cloud.location.Locations.GetLocation -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform -  - selector: google.cloud.location.Locations.ListLocations -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform -  - selector: 'google.cloud.video.livestream.v1.LivestreamService.*' -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform -  - selector: 'google.longrunning.Operations.*' -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform diff --git a/third_party/googleapis/google/cloud/video/livestream/v1/outputs.proto b/third_party/googleapis/google/cloud/video/livestream/v1/outputs.proto deleted file mode 100644 index 90ab85b..0000000 --- a/third_party/googleapis/google/cloud/video/livestream/v1/outputs.proto +++ /dev/null @@ -1,397 +0,0 @@ -// Copyright 2022 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.livestream.v1; - -import "google/api/field_behavior.proto"; -import "google/protobuf/duration.proto"; - -option csharp_namespace = "Google.Cloud.Video.LiveStream.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/livestream/v1;livestream"; -option java_multiple_files = true; -option java_outer_classname = "OutputsProto"; -option java_package = "com.google.cloud.video.livestream.v1"; -option php_namespace = "Google\\Cloud\\Video\\LiveStream\\V1"; -option ruby_package = "Google::Cloud::Video::LiveStream::V1"; - -// Encoding of an input element such as an audio, video, or text track. -// Elementary streams must be packaged before mapping and sharing between -// different output formats. -message ElementaryStream { -  // A unique key for this elementary stream. -  string key = 4; - -  // Required. Encoding of an audio, video, or text track. -  oneof elementary_stream { -    // Encoding of a video stream. -    VideoStream video_stream = 1; - -    // Encoding of an audio stream. -    AudioStream audio_stream = 2; - -    // Encoding of a text stream. For example, closed captions or subtitles. -    TextStream text_stream = 3; -  } -} - -// Multiplexing settings for output stream. -message MuxStream { -  // A unique key for this multiplexed stream. -  string key = 1; - -  // The container format. The default is `fmp4`. -  // -  // Supported container formats: -  // -  // - `fmp4` - the corresponding file extension is `.m4s` -  // - `ts` - the corresponding file extension is `.ts` -  string container = 3; - -  // List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this -  // stream. -  // -  // - For `fmp4` container, must contain either one video or one audio stream. -  // - For `ts` container, must contain exactly one audio stream and up to one -  // video stream. -  repeated string elementary_streams = 4; - -  // Segment settings for `fmp4` and `ts`. -  SegmentSettings segment_settings = 5; -} - -// Manifest configuration. -message Manifest { -  // The manifest type can be either `HLS` or `DASH`. -  enum ManifestType { -    // The manifest type is not specified. -    MANIFEST_TYPE_UNSPECIFIED = 0; - -    // Create an `HLS` manifest. The corresponding file extension is `.m3u8`. -    HLS = 1; - -    // Create a `DASH` manifest. The corresponding file extension is `.mpd`. -    DASH = 2; -  } - -  // The name of the generated file. The default is `manifest` with the -  // extension suffix corresponding to the `Manifest` [type][google.cloud.video.livestream.v1.Manifest.type]. If multiple -  // manifests are added to the channel, each must have a unique file name. -  string file_name = 1; - -  // Required. Type of the manifest, can be `HLS` or `DASH`. -  ManifestType type = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Required. List of `MuxStream` [key][google.cloud.video.livestream.v1.MuxStream.key]s that should appear in this -  // manifest. -  // -  // - For HLS, either `fmp4` or `ts` mux streams can be specified but not -  // mixed. -  // - For DASH, only `fmp4` mux streams can be specified. -  repeated string mux_streams = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Maximum number of segments that this manifest holds. Once the manifest -  // reaches this maximum number of segments, whenever a new segment is added to -  // the manifest, the oldest segment will be removed from the manifest. -  // The minimum value is 3 and the default value is 5. -  int32 max_segment_count = 4; - -  // How long to keep a segment on the output Google Cloud Storage bucket after -  // it is removed from the manifest. This field should be large enough to cover -  // the manifest propagation delay. Otherwise, a player could receive 404 -  // errors while accessing segments which are listed in the manifest that the -  // player has, but were already deleted from the output Google Cloud Storage -  // bucket. Default value is `60s`. -  google.protobuf.Duration segment_keep_duration = 5; -} - -// Sprite sheet configuration. -message SpriteSheet { -  // Format type. The default is `jpeg`. -  // -  // Supported formats: -  // -  // - `jpeg` -  string format = 1; - -  // Required. File name prefix for the generated sprite sheets. If multiple -  // sprite sheets are added to the channel, each must have a unique file -  // prefix. -  // Each sprite sheet has an incremental 10-digit zero-padded suffix starting -  // from 0 before the extension, such as `sprite_sheet0000000123.jpeg`. -  string file_prefix = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The width of the sprite in pixels. Must be an even integer. -  int32 sprite_width_pixels = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The height of the sprite in pixels. Must be an even integer. -  int32 sprite_height_pixels = 4 [(google.api.field_behavior) = REQUIRED]; - -  // The maximum number of sprites per row in a sprite sheet. Valid range is -  // [1, 10] and the default value is 1. -  int32 column_count = 5; - -  // The maximum number of rows per sprite sheet. When the sprite sheet is full, -  // a new sprite sheet is created. Valid range is [1, 10] and the default value -  // is 1. -  int32 row_count = 6; - -  // Create sprites at regular intervals. Valid range is [1 second, 1 hour] and -  // the default value is `10s`. -  google.protobuf.Duration interval = 7; - -  // The quality of the generated sprite sheet. Enter a value between 1 -  // and 100, where 1 is the lowest quality and 100 is the highest quality. -  // The default is 100. A high quality value corresponds to a low image data -  // compression ratio. -  int32 quality = 8; -} - -// Preprocessing configurations. -message PreprocessingConfig { -  // Video cropping configuration for the input video. The cropped input video -  // is scaled to match the output resolution. -  message Crop { -    // The number of pixels to crop from the top. The default is 0. -    int32 top_pixels = 1; - -    // The number of pixels to crop from the bottom. The default is 0. -    int32 bottom_pixels = 2; - -    // The number of pixels to crop from the left. The default is 0. -    int32 left_pixels = 3; - -    // The number of pixels to crop from the right. The default is 0. -    int32 right_pixels = 4; -  } - -  // Pad filter configuration for the input video. The padded input video -  // is scaled after padding with black to match the output resolution. -  message Pad { -    // The number of pixels to add to the top. The default is 0. -    int32 top_pixels = 1; - -    // The number of pixels to add to the bottom. The default is 0. -    int32 bottom_pixels = 2; - -    // The number of pixels to add to the left. The default is 0. -    int32 left_pixels = 3; - -    // The number of pixels to add to the right. The default is 0. -    int32 right_pixels = 4; -  } - -  // Specify the video cropping configuration. -  Crop crop = 2; - -  // Specify the video pad filter configuration. -  Pad pad = 3; -} - -// Video stream resource. -message VideoStream { -  // H264 codec settings. -  message H264CodecSettings { -    // Required. The width of the video in pixels. Must be an even integer. -    // Valid range is [320, 1920]. -    int32 width_pixels = 1; - -    // Required. The height of the video in pixels. Must be an even integer. -    // Valid range is [180, 1080]. -    int32 height_pixels = 2; - -    // Required. The target video frame rate in frames per second (FPS). Must be less -    // than or equal to 60. Will default to the input frame rate if larger -    // than the input frame rate. The API will generate an output FPS that is -    // divisible by the input FPS, and smaller or equal to the target FPS. See -    // [Calculating frame -    // rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for -    // more information. -    double frame_rate = 3 [(google.api.field_behavior) = REQUIRED]; - -    // Required. The video bitrate in bits per second. Minimum value is 10,000. -    // -    // - For SD resolution (< 720p), must be <= 3,000,000 (3 Mbps). -    // - For HD resolution (<= 1080p), must be <= 15,000,000 (15 Mbps). -    int32 bitrate_bps = 4 [(google.api.field_behavior) = REQUIRED]; - -    // Specifies whether an open Group of Pictures (GOP) structure should be -    // allowed or not. The default is `false`. -    bool allow_open_gop = 6; - -    // GOP mode can be either by frame count or duration. -    oneof gop_mode { -      // Select the GOP size based on the specified frame count. -      // If GOP frame count is set instead of GOP duration, GOP duration will be -      // calculated by `gopFrameCount`/`frameRate`. The calculated GOP duration -      // must satisfy the limitations on `gopDuration` as well. -      // Valid range is [60, 600]. -      int32 gop_frame_count = 7; - -      // Select the GOP size based on the specified duration. The default is -      // `2s`. Note that `gopDuration` must be less than or equal to -      // [segment_duration][google.cloud.video.livestream.v1.SegmentSettings.segment_duration], and -      // [segment_duration][google.cloud.video.livestream.v1.SegmentSettings.segment_duration] must be divisible -      // by `gopDuration`. Valid range is [2s, 20s]. -      // -      // All video streams in the same channel must have the same GOP size. -      google.protobuf.Duration gop_duration = 8; -    } - -    // Size of the Video Buffering Verifier (VBV) buffer in bits. Must be -    // greater than zero. The default is equal to [bitrate_bps][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.bitrate_bps]. -    int32 vbv_size_bits = 9; - -    // Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. -    // Must be greater than zero. The default is equal to 90% of -    // [vbv_size_bits][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.vbv_size_bits]. -    int32 vbv_fullness_bits = 10; - -    // The entropy coder to use. The default is `cabac`. -    // -    // Supported entropy coders: -    // -    // - `cavlc` -    // - `cabac` -    string entropy_coder = 11; - -    // Allow B-pyramid for reference frame selection. This may not be supported -    // on all decoders. The default is `false`. -    bool b_pyramid = 12; - -    // The number of consecutive B-frames. Must be greater than or equal to -    // zero. Must be less than [gop_frame_count][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_frame_count] if set. The default -    // is 0. -    int32 b_frame_count = 13; - -    // Specify the intensity of the adaptive quantizer (AQ). Must be between 0 -    // and 1, where 0 disables the quantizer and 1 maximizes the quantizer. A -    // higher value equals a lower bitrate but smoother image. The default is 0. -    double aq_strength = 14; - -    // Enforces the specified codec profile. The following profiles are -    // supported: -    // -    // *   `baseline` -    // *   `main` (default) -    // *   `high` -    // -    // The available options are [FFmpeg-compatible Profile -    // Options](https://trac.ffmpeg.org/wiki/Encode/H.264#Profile). -    // Note that certain values for this field may cause the -    // transcoder to override other fields you set in the [H264CodecSettings][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings] -    // message. -    string profile = 15; - -    // Enforces the specified codec tune. The available options are -    // [FFmpeg-compatible Encode -    // Options](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune) -    // Note that certain values for this field may cause the transcoder to -    // override other fields you set in the [H264CodecSettings][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings] message. -    string tune = 16; -  } - -  // Codec settings. -  oneof codec_settings { -    // H264 codec settings. -    H264CodecSettings h264 = 20; -  } -} - -// Audio stream resource. -message AudioStream { -  // The mapping for the input streams and audio channels. -  message AudioMapping { -    // Required. The `Channel` [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key] that identifies the input that this -    // audio mapping applies to. If an active input doesn't have an audio -    // mapping, the primary audio track in the input stream will be selected. -    string input_key = 6 [(google.api.field_behavior) = REQUIRED]; - -    // Required. The zero-based index of the track in the input stream. -    // All [mapping][google.cloud.video.livestream.v1.AudioStream.mapping]s in the same [AudioStream][google.cloud.video.livestream.v1.AudioStream] -    // must have the same input track. -    int32 input_track = 2 [(google.api.field_behavior) = REQUIRED]; - -    // Required. The zero-based index of the channel in the input stream. -    int32 input_channel = 3 [(google.api.field_behavior) = REQUIRED]; - -    // Required. The zero-based index of the channel in the output audio stream. -    // Must be consistent with the [input_channel][google.cloud.video.livestream.v1.AudioStream.AudioMapping.input_channel]. -    int32 output_channel = 4 [(google.api.field_behavior) = REQUIRED]; -  } - -  // Specifies whether pass through (transmuxing) is enabled or not. -  // If set to `true`, the rest of the settings, other than `mapping`, will be -  // ignored. The default is `false`. -  bool transmux = 8; - -  // The codec for this audio stream. The default is `aac`. -  // -  // Supported audio codecs: -  // -  // - `aac` -  string codec = 1; - -  // Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000. -  int32 bitrate_bps = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Number of audio channels. Must be between 1 and 6. The default is 2. -  int32 channel_count = 3; - -  // A list of channel names specifying layout of the audio channels. -  // This only affects the metadata embedded in the container headers, if -  // supported by the specified format. The default is `[fl, fr]`. -  // -  // Supported channel names: -  // -  // - `fl` - Front left channel -  // - `fr` - Front right channel -  // - `sl` - Side left channel -  // - `sr` - Side right channel -  // - `fc` - Front center channel -  // - `lfe` - Low frequency -  repeated string channel_layout = 4; - -  // The mapping for the input streams and audio channels. -  repeated AudioMapping mapping = 5; - -  // The audio sample rate in Hertz. The default is 48000 Hertz. -  int32 sample_rate_hertz = 6; -} - -// Encoding of a text stream. For example, closed captions or subtitles. -message TextStream { -  // Required. The codec for this text stream. -  // -  // Supported text codecs: -  // -  // - `cea608` -  // - `cea708` -  string codec = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Segment settings for `fmp4` and `ts`. -message SegmentSettings { -  // Duration of the segments in seconds. The default is `6s`. Note that -  // `segmentDuration` must be greater than or equal to -  // [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration], and -  // `segmentDuration` must be divisible by -  // [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration]. -  // Valid range is [2s, 20s]. -  // -  // All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in the same manifest must have the -  // same segment duration. -  google.protobuf.Duration segment_duration = 1; -} diff --git a/third_party/googleapis/google/cloud/video/livestream/v1/resources.proto b/third_party/googleapis/google/cloud/video/livestream/v1/resources.proto deleted file mode 100644 index b9159ec..0000000 --- a/third_party/googleapis/google/cloud/video/livestream/v1/resources.proto +++ /dev/null @@ -1,408 +0,0 @@ -// Copyright 2022 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.livestream.v1; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/video/livestream/v1/outputs.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Cloud.Video.LiveStream.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/livestream/v1;livestream"; -option java_multiple_files = true; -option java_outer_classname = "ResourcesProto"; -option java_package = "com.google.cloud.video.livestream.v1"; -option php_namespace = "Google\\Cloud\\Video\\LiveStream\\V1"; -option ruby_package = "Google::Cloud::Video::LiveStream::V1"; - -// Input resource represents the endpoint from which the channel ingests -// the input stream. -message Input { -  option (google.api.resource) = { -    type: "livestream.googleapis.com/Input" -    pattern: "projects/{project}/locations/{location}/inputs/{input}" -  }; - -  // The type of the input. -  enum Type { -    // Input type is not specified. -    TYPE_UNSPECIFIED = 0; - -    // Input will take an rtmp input stream. -    RTMP_PUSH = 1; - -    // Input will take an srt (Secure Reliable Transport) input stream. -    SRT_PUSH = 2; -  } - -  // Tier of the input specification. -  enum Tier { -    // Tier is not specified. -    TIER_UNSPECIFIED = 0; - -    // Resolution < 1280x720. Bitrate <= 6 Mbps. FPS <= 60. -    SD = 1; - -    // Resolution <= 1920x1080. Bitrate <= 25 Mbps. FPS <= 60. -    HD = 2; - -    // Resolution <= 4096x2160. Not supported yet. -    UHD = 3; -  } - -  // Security rules for access control. Each field represents one security rule. -  // Only when the source of the input stream satisfies all the fields, this -  // input stream can be accepted. -  message SecurityRule { -    // At least one ip range must match unless none specified. The IP range is -    // defined by CIDR block: for example, `192.0.1.0/24` for a range and -    // `192.0.1.0/32` for a single IP address. -    repeated string ip_ranges = 1; -  } - -  // The resource name of the input, in the form of: -  // `projects/{project}/locations/{location}/inputs/{inputId}`. -  string name = 1; - -  // Output only. The creation time. -  google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The update time. -  google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // User-defined key/value metadata. -  map<string, string> labels = 4; - -  // Source type. -  Type type = 5; - -  // Tier defines the maximum input specification that is accepted by the -  // video pipeline. The billing is charged based on the tier specified here. -  // See [Pricing](https://cloud.google.com/livestream/pricing) for more detail. -  // The default is `HD`. -  Tier tier = 14; - -  // Output only. URI to push the input stream to. -  // Its format depends on the input [type][google.cloud.video.livestream.v1.Input.type], for example: -  // -  // *  `RTMP_PUSH`: `rtmp://1.2.3.4/live/{STREAM-ID}` -  // *  `SRT_PUSH`: `srt://1.2.3.4:4201?streamid={STREAM-ID}` -  string uri = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Preprocessing configurations. -  PreprocessingConfig preprocessing_config = 9; - -  // Security rule for access control. -  SecurityRule security_rules = 12; - -  // Output only. The information for the input stream. This field will be present only when -  // this input receives the input stream. -  InputStreamProperty input_stream_property = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Channel resource represents the processor that does a user-defined -// "streaming" operation, which includes getting an input stream through an -// input, transcoding it to multiple renditions, and publishing output live -// streams in certain formats (for example, HLS or DASH) to the specified -// location. -message Channel { -  option (google.api.resource) = { -    type: "livestream.googleapis.com/Channel" -    pattern: "projects/{project}/locations/{location}/channels/{channel}" -  }; - -  // Location of output file(s) in a Google Cloud Storage bucket. -  message Output { -    // URI for the output file(s). For example, `gs://my-bucket/outputs/`. -    string uri = 1; -  } - -  // State of streaming operation that the channel is running. -  enum StreamingState { -    // Streaming state is not specified. -    STREAMING_STATE_UNSPECIFIED = 0; - -    // Channel is getting the input stream, generating the live streams to the -    // specified output location. -    STREAMING = 1; - -    // Channel is waiting for the input stream through the input. -    AWAITING_INPUT = 2; - -    // Channel is running, but has trouble publishing the live streams onto the -    // specified output location (for example, the specified Cloud Storage -    // bucket is not writable). -    STREAMING_ERROR = 4; - -    // Channel is generating live streams with no input stream. Live streams are -    // filled out with black screen, while input stream is missing. -    // Not supported yet. -    STREAMING_NO_INPUT = 5; - -    // Channel is stopped, finishing live streams. -    STOPPED = 6; - -    // Channel is starting. -    STARTING = 7; - -    // Channel is stopping. -    STOPPING = 8; -  } - -  // The resource name of the channel, in the form of: -  // `projects/{project}/locations/{location}/channels/{channelId}`. -  string name = 1; - -  // Output only. The creation time. -  google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The update time. -  google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // User-defined key/value metadata. -  map<string, string> labels = 4; - -  // A list of input attachments that this channel uses. -  // One channel can have multiple inputs as the input sources. Only one -  // input can be selected as the input source at one time. -  repeated InputAttachment input_attachments = 16; - -  // Output only. The [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key] that serves as the current input source. The -  // first input in the [input_attachments][google.cloud.video.livestream.v1.Channel.input_attachments] is the initial input source. -  string active_input = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Required. Information about the output (that is, the Cloud Storage bucket to store -  // the generated live stream). -  Output output = 9 [(google.api.field_behavior) = REQUIRED]; - -  // List of elementary streams. -  repeated ElementaryStream elementary_streams = 10; - -  // List of multiplexing settings for output streams. -  repeated MuxStream mux_streams = 11; - -  // List of output manifests. -  repeated Manifest manifests = 12; - -  // List of output sprite sheets. -  repeated SpriteSheet sprite_sheets = 13; - -  // Output only. State of the streaming operation. -  StreamingState streaming_state = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. A description of the reason for the streaming error. This property is -  // always present when [streaming_state][google.cloud.video.livestream.v1.Channel.streaming_state] is -  // [STREAMING_ERROR][google.cloud.video.livestream.v1.Channel.StreamingState.STREAMING_ERROR]. -  google.rpc.Status streaming_error = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Configuration of platform logs for this channel. -  LogConfig log_config = 19; -} - -// Configuration of platform logs. -// See [Using and managing platform -// logs](https://cloud.google.com/logging/docs/api/platform-logs#managing-logs) -// for more information about how to view platform logs through Cloud Logging. -message LogConfig { -  // The severity level of platform logging for this channel. Logs with a -  // severity level higher than or equal to the chosen severity level will be -  // logged and can be viewed through Cloud Logging. -  // The severity level of a log is ranked as followed from low to high: DEBUG < -  // INFO < NOTICE < WARNING < ERROR < CRITICAL < ALERT < EMERGENCY. -  // See -  // [LogSeverity](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#logseverity) -  // for more information. -  enum LogSeverity { -    // Log severity is not specified. This is the same as log severity is OFF. -    LOG_SEVERITY_UNSPECIFIED = 0; - -    // Log is turned off. -    OFF = 1; - -    // Log with severity higher than or equal to DEBUG are logged. -    DEBUG = 100; - -    // Logs with severity higher than or equal to INFO are logged. -    INFO = 200; - -    // Logs with severity higher than or equal to WARNING are logged. -    WARNING = 400; - -    // Logs with severity higher than or equal to ERROR are logged. -    ERROR = 500; -  } - -  // The severity level of platform logging for this resource. -  LogSeverity log_severity = 1; -} - -// Properties of the input stream. -message InputStreamProperty { -  // The time that the current input stream is accepted and the connection is -  // established. -  google.protobuf.Timestamp last_establish_time = 1; - -  // Properties of the video streams. -  repeated VideoStreamProperty video_streams = 2; - -  // Properties of the audio streams. -  repeated AudioStreamProperty audio_streams = 3; -} - -// Properties of the video stream. -message VideoStreamProperty { -  // Index of this video stream. -  int32 index = 1; - -  // Properties of the video format. -  VideoFormat video_format = 2; -} - -// Properties of the video format. -message VideoFormat { -  // Video codec used in this video stream. -  string codec = 1; - -  // The width of the video stream in pixels. -  int32 width_pixels = 2; - -  // The height of the video stream in pixels. -  int32 height_pixels = 3; - -  // The frame rate of the input video stream. -  double frame_rate = 4; -} - -// Properties of the audio stream. -message AudioStreamProperty { -  // Index of this audio stream. -  int32 index = 1; - -  // Properties of the audio format. -  AudioFormat audio_format = 2; -} - -// Properties of the audio format. -message AudioFormat { -  // Audio codec used in this audio stream. -  string codec = 1; - -  // The number of audio channels. -  int32 channel_count = 2; - -  // A list of channel names specifying the layout of the audio channels. -  repeated string channel_layout = 3; -} - -// A group of information for attaching an input resource to this channel. -message InputAttachment { -  // Configurations to follow when automatic failover happens. -  message AutomaticFailover { -    // The [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s of inputs to failover to when this input is -    // disconnected. Currently, only up to one backup input is supported. -    repeated string input_keys = 1; -  } - -  // A unique key for this input attachment. -  string key = 1; - -  // The resource name of an existing input, in the form of: -  // `projects/{project}/locations/{location}/inputs/{inputId}`. -  string input = 2 [(google.api.resource_reference) = { -                      type: "livestream.googleapis.com/Input" -                    }]; - -  // Automatic failover configurations. -  AutomaticFailover automatic_failover = 3; -} - -// Event is a sub-resource of a channel, which can be scheduled by the user to -// execute operations on a channel resource without having to stop the channel. -message Event { -  option (google.api.resource) = { -    type: "livestream.googleapis.com/Event" -    pattern: "projects/{project}/locations/{location}/channels/{channel}/events/{event}" -  }; - -  // Inserts a new ad opportunity. -  message AdBreakTask { -    // Duration of an ad opportunity. Must be greater than 0. -    google.protobuf.Duration duration = 1; -  } - -  // State of the event -  enum State { -    // Event state is not specified. -    STATE_UNSPECIFIED = 0; - -    // Event is scheduled but not executed yet. -    SCHEDULED = 1; - -    // Event is being executed. -    RUNNING = 2; - -    // Event has been successfully executed. -    SUCCEEDED = 3; - -    // Event fails to be executed. -    FAILED = 4; - -    // Event has been created but not scheduled yet. -    PENDING = 5; - -    // Event was stopped before running for its full duration. -    STOPPED = 6; -  } - -  // The resource name of the event, in the form of: -  // `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`. -  string name = 1; - -  // Output only. The creation time. -  google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The update time. -  google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // User-defined key/value metadata. -  map<string, string> labels = 4; - -  // Required. Operation to be executed by this event. -  oneof task { -    // Required. Inserts a new ad opportunity. -    AdBreakTask ad_break = 6 [(google.api.field_behavior) = REQUIRED]; -  } - -  // When this field is set to true, the event will be executed at the earliest -  // time that the server can schedule the event and [execution_time][google.cloud.video.livestream.v1.Event.execution_time] will be -  // populated with the time that the server actually schedules the event. -  bool execute_now = 9; - -  // The time when the event should be executed. When [execute_now][google.cloud.video.livestream.v1.Event.execute_now] is set to -  // `true`, this field should not be set in `CreateEvent` request and will be -  // populated with the time that the server schedules the event. -  google.protobuf.Timestamp execution_time = 10; - -  // Output only. The state of the event. -  State state = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. An error object that describes the reason for the failure. -  // This property is always present when `state` is `FAILED`. -  google.rpc.Status error = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/cloud/video/livestream/v1/service.proto b/third_party/googleapis/google/cloud/video/livestream/v1/service.proto deleted file mode 100644 index 8ef65d8..0000000 --- a/third_party/googleapis/google/cloud/video/livestream/v1/service.proto +++ /dev/null @@ -1,719 +0,0 @@ -// Copyright 2022 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.livestream.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/video/livestream/v1/resources.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.Video.LiveStream.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/livestream/v1;livestream"; -option java_multiple_files = true; -option java_outer_classname = "ServiceProto"; -option java_package = "com.google.cloud.video.livestream.v1"; -option php_namespace = "Google\\Cloud\\Video\\LiveStream\\V1"; -option ruby_package = "Google::Cloud::Video::LiveStream::V1"; - -// Using Live Stream API, you can generate live streams in the various -// renditions and streaming formats. The streaming format include HTTP Live -// Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH). You can send -// a source stream in the various ways, including Real-Time Messaging -// Protocol (RTMP) and Secure Reliable Transport (SRT). -service LivestreamService { -  option (google.api.default_host) = "livestream.googleapis.com"; -  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - -  // Creates a channel with the provided unique ID in the specified -  // region. -  rpc CreateChannel(CreateChannelRequest) returns (google.longrunning.Operation) { -    option (google.api.http) = { -      post: "/v1/{parent=projects/*/locations/*}/channels" -      body: "channel" -    }; -    option (google.api.method_signature) = "parent,channel,channel_id"; -    option (google.longrunning.operation_info) = { -      response_type: "Channel" -      metadata_type: "OperationMetadata" -    }; -  } - -  // Returns a list of all channels in the specified region. -  rpc ListChannels(ListChannelsRequest) returns (ListChannelsResponse) { -    option (google.api.http) = { -      get: "/v1/{parent=projects/*/locations/*}/channels" -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Returns the specified channel. -  rpc GetChannel(GetChannelRequest) returns (Channel) { -    option (google.api.http) = { -      get: "/v1/{name=projects/*/locations/*/channels/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Deletes the specified channel. -  rpc DeleteChannel(DeleteChannelRequest) returns (google.longrunning.Operation) { -    option (google.api.http) = { -      delete: "/v1/{name=projects/*/locations/*/channels/*}" -    }; -    option (google.api.method_signature) = "name"; -    option (google.longrunning.operation_info) = { -      response_type: "google.protobuf.Empty" -      metadata_type: "OperationMetadata" -    }; -  } - -  // Updates the specified channel. -  rpc UpdateChannel(UpdateChannelRequest) returns (google.longrunning.Operation) { -    option (google.api.http) = { -      patch: "/v1/{channel.name=projects/*/locations/*/channels/*}" -      body: "channel" -    }; -    option (google.api.method_signature) = "channel,update_mask"; -    option (google.longrunning.operation_info) = { -      response_type: "Channel" -      metadata_type: "OperationMetadata" -    }; -  } - -  // Starts the specified channel. Part of the video pipeline will be created -  // only when the StartChannel request is received by the server. -  rpc StartChannel(StartChannelRequest) returns (google.longrunning.Operation) { -    option (google.api.http) = { -      post: "/v1/{name=projects/*/locations/*/channels/*}:start" -      body: "*" -    }; -    option (google.api.method_signature) = "name"; -    option (google.longrunning.operation_info) = { -      response_type: "ChannelOperationResponse" -      metadata_type: "OperationMetadata" -    }; -  } - -  // Stops the specified channel. Part of the video pipeline will be released -  // when the StopChannel request is received by the server. -  rpc StopChannel(StopChannelRequest) returns (google.longrunning.Operation) { -    option (google.api.http) = { -      post: "/v1/{name=projects/*/locations/*/channels/*}:stop" -      body: "*" -    }; -    option (google.api.method_signature) = "name"; -    option (google.longrunning.operation_info) = { -      response_type: "ChannelOperationResponse" -      metadata_type: "OperationMetadata" -    }; -  } - -  // Creates an input with the provided unique ID in the specified region. -  rpc CreateInput(CreateInputRequest) returns (google.longrunning.Operation) { -    option (google.api.http) = { -      post: "/v1/{parent=projects/*/locations/*}/inputs" -      body: "input" -    }; -    option (google.api.method_signature) = "parent,input,input_id"; -    option (google.longrunning.operation_info) = { -      response_type: "Input" -      metadata_type: "OperationMetadata" -    }; -  } - -  // Returns a list of all inputs in the specified region. -  rpc ListInputs(ListInputsRequest) returns (ListInputsResponse) { -    option (google.api.http) = { -      get: "/v1/{parent=projects/*/locations/*}/inputs" -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Returns the specified input. -  rpc GetInput(GetInputRequest) returns (Input) { -    option (google.api.http) = { -      get: "/v1/{name=projects/*/locations/*/inputs/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Deletes the specified input. -  rpc DeleteInput(DeleteInputRequest) returns (google.longrunning.Operation) { -    option (google.api.http) = { -      delete: "/v1/{name=projects/*/locations/*/inputs/*}" -    }; -    option (google.api.method_signature) = "name"; -    option (google.longrunning.operation_info) = { -      response_type: "google.protobuf.Empty" -      metadata_type: "OperationMetadata" -    }; -  } - -  // Updates the specified input. -  rpc UpdateInput(UpdateInputRequest) returns (google.longrunning.Operation) { -    option (google.api.http) = { -      patch: "/v1/{input.name=projects/*/locations/*/inputs/*}" -      body: "input" -    }; -    option (google.api.method_signature) = "input,update_mask"; -    option (google.longrunning.operation_info) = { -      response_type: "Input" -      metadata_type: "OperationMetadata" -    }; -  } - -  // Creates an event with the provided unique ID in the specified channel. -  rpc CreateEvent(CreateEventRequest) returns (Event) { -    option (google.api.http) = { -      post: "/v1/{parent=projects/*/locations/*/channels/*}/events" -      body: "event" -    }; -    option (google.api.method_signature) = "parent,event,event_id"; -  } - -  // Returns a list of all events in the specified channel. -  rpc ListEvents(ListEventsRequest) returns (ListEventsResponse) { -    option (google.api.http) = { -      get: "/v1/{parent=projects/*/locations/*/channels/*}/events" -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Returns the specified event. -  rpc GetEvent(GetEventRequest) returns (Event) { -    option (google.api.http) = { -      get: "/v1/{name=projects/*/locations/*/channels/*/events/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Deletes the specified event. -  rpc DeleteEvent(DeleteEventRequest) returns (google.protobuf.Empty) { -    option (google.api.http) = { -      delete: "/v1/{name=projects/*/locations/*/channels/*/events/*}" -    }; -    option (google.api.method_signature) = "name"; -  } -} - -// Request message for "LivestreamService.CreateChannel". -message CreateChannelRequest { -  // Required. The parent location for the resource, in the form of: -  // `projects/{project}/locations/{location}`. -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      child_type: "livestream.googleapis.com/Channel" -    } -  ]; - -  // Required. The channel resource to be created. -  Channel channel = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The ID of the channel resource to be created. -  // This value must be 1-63 characters, begin and end with `[a-z0-9]`, -  // could contain dashes (-) in between. -  string channel_id = 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 "LivestreamService.ListChannels". -message ListChannelsRequest { -  // Required. The parent location for the resource, in the form of: -  // `projects/{project}/locations/{location}`. -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      child_type: "livestream.googleapis.com/Channel" -    } -  ]; - -  // The maximum number of items to return. If unspecified, server -  // will pick an appropriate default. Server may return fewer items than -  // requested. A caller should only rely on response's -  // [next_page_token][google.cloud.video.livestream.v1.ListChannelsResponse.next_page_token] to -  // determine if there are more items left to be queried. -  int32 page_size = 2; - -  // The next_page_token value returned from a previous List request, if any. -  string page_token = 3; - -  // The filter to apply to list results. -  string filter = 4; - -  // Specifies the ordering of results following syntax at -  // https://cloud.google.com/apis/design/design_patterns#sorting_order. -  string order_by = 5; -} - -// Response message for "LivestreamService.ListChannels". -message ListChannelsResponse { -  // A list of channels. -  repeated Channel channels = 1; - -  // Token to retrieve the next page of results, or empty if there are no more -  // results in the list. -  string next_page_token = 2; - -  // Locations that could not be reached. -  repeated string unreachable = 3; -} - -// Request message for "LivestreamService.GetChannel". -message GetChannelRequest { -  // Required. The name of the channel resource, in the form of: -  // `projects/{project}/locations/{location}/channels/{channelId}`. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "livestream.googleapis.com/Channel" -    } -  ]; -} - -// Request message for "LivestreamService.DeleteChannel". -message DeleteChannelRequest { -  // Required. The name of the channel resource, in the form of: -  // `projects/{project}/locations/{location}/channels/{channelId}`. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "livestream.googleapis.com/Channel" -    } -  ]; - -  // 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 after 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 = 2; - -  // If the `force` field is set to the default value of `false`, you must -  // delete all of a channel's events before you can delete the channel itself. -  // If the field is set to `true`, requests to delete a channel also delete -  // associated channel events. -  bool force = 3; -} - -// Request message for "LivestreamService.UpdateChannel". -message UpdateChannelRequest { -  // Field mask is used to specify the fields to be overwritten in the Channel -  // resource by the update. You can only update the following fields: -  // -  // * [`inputAttachments`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#inputattachment) -  // * [`output`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#output) -  // * [`elementaryStreams`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#ElementaryStream) -  // * [`muxStreams`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#muxstream) -  // * [`manifests`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#Manifest) -  // * [`spritesheets`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#spritesheet) -  // -  // The fields specified in the update_mask are relative to the resource, not -  // the full request. A field will be overwritten if it is in the mask. -  google.protobuf.FieldMask update_mask = 1; - -  // Required. The channel resource to be updated. -  Channel channel = 2 [(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 = 3; -} - -// Request message for "LivestreamService.StartChannel". -message StartChannelRequest { -  // Required. The name of the channel resource, in the form of: -  // `projects/{project}/locations/{location}/channels/{channelId}`. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "livestream.googleapis.com/Channel" -    } -  ]; - -  // 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 = 2; -} - -// Request message for "LivestreamService.StopChannel". -message StopChannelRequest { -  // Required. The name of the channel resource, in the form of: -  // `projects/{project}/locations/{location}/channels/{channelId}`. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "livestream.googleapis.com/Channel" -    } -  ]; - -  // 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 = 2; -} - -// Request message for "LivestreamService.CreateInput". -message CreateInputRequest { -  // Required. The parent location for the resource, in the form of: -  // `projects/{project}/locations/{location}`. -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      child_type: "livestream.googleapis.com/Input" -    } -  ]; - -  // Required. The input resource to be created. -  Input input = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The ID of the input resource to be created. -  // This value must be 1-63 characters, begin and end with `[a-z0-9]`, -  // could contain dashes (-) in between. -  string input_id = 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 "LivestreamService.ListInputs". -message ListInputsRequest { -  // Required. The parent location for the resource, in the form of: -  // `projects/{project}/locations/{location}`. -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      child_type: "livestream.googleapis.com/Input" -    } -  ]; - -  // The maximum number of items to return. If unspecified, server -  // will pick an appropriate default. Server may return fewer items than -  // requested. A caller should only rely on response's -  // [next_page_token][google.cloud.video.livestream.v1.ListInputsResponse.next_page_token] to -  // determine if there are more items left to be queried. -  int32 page_size = 2; - -  // The next_page_token value returned from a previous List request, if any. -  string page_token = 3; - -  // The filter to apply to list results. -  string filter = 4; - -  // Specifies the ordering of results following syntax at [Sorting -  // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). -  string order_by = 5; -} - -// Response message for "LivestreamService.ListInputs". -message ListInputsResponse { -  // A list of inputs. -  repeated Input inputs = 1; - -  // Token to retrieve the next page of results, or empty if there are no more -  // results in the list. -  string next_page_token = 2; - -  // Locations that could not be reached. -  repeated string unreachable = 3; -} - -// Request message for "LivestreamService.GetInput". -message GetInputRequest { -  // Required. The name of the input resource, in the form of: -  // `projects/{project}/locations/{location}/inputs/{inputId}`. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "livestream.googleapis.com/Input" -    } -  ]; -} - -// Request message for "LivestreamService.DeleteInput". -message DeleteInputRequest { -  // Required. The name of the input resource, in the form of: -  // `projects/{project}/locations/{location}/inputs/{inputId}`. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "livestream.googleapis.com/Input" -    } -  ]; - -  // 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 = 2; -} - -// Request message for "LivestreamService.UpdateInput". -message UpdateInputRequest { -  // Field mask is used to specify the fields to be overwritten in the Input -  // resource by the update. You can only update the following fields: -  // -  // * [`preprocessingConfig`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.inputs#PreprocessingConfig) -  // * [`securityRules`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.inputs#SecurityRule) -  // -  // The fields specified in the update_mask are relative to the resource, not -  // the full request. A field will be overwritten if it is in the mask. -  google.protobuf.FieldMask update_mask = 1; - -  // Required. The input resource to be updated. -  Input input = 2 [(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 = 3; -} - -// Request message for "LivestreamService.CreateEvent". -message CreateEventRequest { -  // Required. The parent channel for the resource, in the form of: -  // `projects/{project}/locations/{location}/channels/{channelId}`. -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      child_type: "livestream.googleapis.com/Event" -    } -  ]; - -  // Required. The event resource to be created. -  Event event = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The ID of the event resource to be created. -  // This value must be 1-63 characters, begin and end with `[a-z0-9]`, -  // could contain dashes (-) in between. -  string event_id = 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 "LivestreamService.ListEvents". -message ListEventsRequest { -  // Required. The parent channel for the resource, in the form of: -  // `projects/{project}/locations/{location}/channels/{channelId}`. -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      child_type: "livestream.googleapis.com/Event" -    } -  ]; - -  // The maximum number of items to return. If unspecified, server -  // will pick an appropriate default. Server may return fewer items than -  // requested. A caller should only rely on response's -  // [next_page_token][google.cloud.video.livestream.v1.ListEventsResponse.next_page_token] to -  // determine if there are more items left to be queried. -  int32 page_size = 2; - -  // The next_page_token value returned from a previous List request, if any. -  string page_token = 3; - -  // The filter to apply to list results. -  string filter = 4; - -  // Specifies the ordering of results following syntax at -  // https://cloud.google.com/apis/design/design_patterns#sorting_order. -  string order_by = 5; -} - -// Response message for "LivestreamService.ListEvents". -message ListEventsResponse { -  // A list of events. -  repeated Event events = 1; - -  // Token to retrieve the next page of results, or empty if there are no more -  // results in the list. -  string next_page_token = 2; - -  // Locations that could not be reached. -  repeated string unreachable = 3; -} - -// Request message for "LivestreamService.GetEvent". -message GetEventRequest { -  // Required. The name of the event resource, in the form of: -  // `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "livestream.googleapis.com/Event" -    } -  ]; -} - -// Request message for "LivestreamService.DeleteEvent". -message DeleteEventRequest { -  // Required. The name of the event resource, in the form of: -  // `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "livestream.googleapis.com/Event" -    } -  ]; - -  // 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 = 2; -} - -// Response message for Start/Stop Channel long-running operations. -message ChannelOperationResponse { - -} - -// 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. 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][google.rpc.Status.code] of 1, corresponding to -  // `Code.CANCELLED`. -  bool requested_cancellation = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. API version used to start the operation. -  string api_version = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -}  | 
