Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Initial release of Live Stream API v1 Public Preview
PiperOrigin-RevId: 411133022
- Loading branch information
Google APIs
authored and
Copybara-Service
committed
Nov 19, 2021
1 parent
68b0c8a
commit b35c85c
Showing
6 changed files
with
1,864 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,347 @@ | ||
# 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", | ||
], | ||
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.LivestreamServiceClientTest", | ||
], | ||
runtime_deps = [":livestream_java_gapic_test"], | ||
) | ||
|
||
# Open Source Packages | ||
java_gapic_assembly_gradle_pkg( | ||
name = "google-cloud-video-livestream-v1-java", | ||
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", | ||
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_gapic_library( | ||
name = "livestream_py_gapic", | ||
srcs = [":livestream_proto"], | ||
grpc_service_config = "livestream_grpc_service_config.json", | ||
) | ||
|
||
# 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-gem-name=google-cloud-video-livestream-v1"], | ||
grpc_service_config = "livestream_grpc_service_config.json", | ||
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", | ||
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++ | ||
############################################################################## | ||
# Put your C++ rules here |
35 changes: 35 additions & 0 deletions
35
google/cloud/video/livestream/v1/livestream_grpc_service_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"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" | ||
}] | ||
} |
Oops, something went wrong.