google-cloud-video-stitcher-v1 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d748bd6471451f789ee3b596cd63a64754c6cdd4cae50948e7f5255732d0830e
4
- data.tar.gz: 3061662d50c3be3a475be7784fbd81cb7a4965c76b62e133c682d3c28cc2a47d
3
+ metadata.gz: d2dc6c704ac4c99f988a6b1670b7cd44f67aa576738a285f5cd0d22ba4935377
4
+ data.tar.gz: 0723dae3b827b323f1ab0f41052ecf38d509e8dd9ff47c78fb905a424bd67907
5
5
  SHA512:
6
- metadata.gz: 6206b8dc72cd478eb2a128c67e6ccdcb2a4c7fdfd9e6950e5dd1efe78cbb0de67058858a044a43611eb476d623ece4a706b2600aa3ad106d3e6b76bd012ab9c8
7
- data.tar.gz: e3fea4825d5a98e662d7538b9aa2d16a7d592aca2b23ef02841c110c7784973de220c5bfad9f60512462a1576644d100836e6c1ff09e0bff9a5c3f08a59c2315
6
+ metadata.gz: 69f74fccf79ef4fb3fb72b2a9a769e57d2e92983efcc83cbcd36d83717a33a54d556bc7b751d092238bb686f3b19771f4cee9764798fae95f439539a9d337873
7
+ data.tar.gz: 493468b92350208a86bd303e29f6ba7187210f264be1ef39b0f5a2467e55ba0e6bb14bcf086993a40c4d13ba18a8c1a7b7db5261ce4296617f45773369fbddfb
data/README.md CHANGED
@@ -69,6 +69,11 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
79
  This library is supported on Ruby 2.5+.
@@ -1,10 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/video/stitcher/v1/ad_tag_details.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/resource_pb'
5
7
  require 'google/protobuf/duration_pb'
6
8
  require 'google/protobuf/struct_pb'
7
- require 'google/protobuf'
8
9
 
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  add_file("google/cloud/video/stitcher/v1/ad_tag_details.proto", :syntax => :proto3) do
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/video/stitcher/v1/cdn_keys.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
- require 'google/protobuf'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/cloud/video/stitcher/v1/cdn_keys.proto", :syntax => :proto3) do
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/video/stitcher/v1/companions.proto
3
3
 
4
- require 'google/cloud/video/stitcher/v1/events_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'google/cloud/video/stitcher/v1/events_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("google/cloud/video/stitcher/v1/companions.proto", :syntax => :proto3) do
9
10
  add_message "google.cloud.video.stitcher.v1.CompanionAds" do
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/video/stitcher/v1/events.proto
3
3
 
4
- require 'google/protobuf/duration_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'google/protobuf/duration_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("google/cloud/video/stitcher/v1/events.proto", :syntax => :proto3) do
9
10
  add_message "google.cloud.video.stitcher.v1.Event" do
@@ -1,12 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/video/stitcher/v1/sessions.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/cloud/video/stitcher/v1/companions_pb'
7
9
  require 'google/cloud/video/stitcher/v1/events_pb'
8
10
  require 'google/protobuf/duration_pb'
9
- require 'google/protobuf'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/video/stitcher/v1/sessions.proto", :syntax => :proto3) do
@@ -19,6 +20,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
19
20
  map :ad_tag_macro_map, :string, :string, 7
20
21
  optional :client_ad_tracking, :bool, 8
21
22
  optional :manifest_options, :message, 9, "google.cloud.video.stitcher.v1.ManifestOptions"
23
+ optional :asset_id, :string, 10
22
24
  end
23
25
  add_message "google.cloud.video.stitcher.v1.Interstitials" do
24
26
  repeated :ad_breaks, :message, 1, "google.cloud.video.stitcher.v1.VodSessionAdBreak"
@@ -49,11 +51,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
49
51
  optional :default_slate_id, :string, 8
50
52
  optional :stitching_policy, :enum, 9, "google.cloud.video.stitcher.v1.LiveSession.StitchingPolicy"
51
53
  optional :manifest_options, :message, 10, "google.cloud.video.stitcher.v1.ManifestOptions"
54
+ optional :stream_id, :string, 11
52
55
  end
53
56
  add_enum "google.cloud.video.stitcher.v1.LiveSession.StitchingPolicy" do
54
57
  value :STITCHING_POLICY_UNSPECIFIED, 0
55
58
  value :COMPLETE_AD, 1
56
- value :COMPLETE_POD, 2
57
59
  value :CUT_CURRENT, 3
58
60
  end
59
61
  add_message "google.cloud.video.stitcher.v1.AdTag" do
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/video/stitcher/v1/slates.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
- require 'google/protobuf'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/cloud/video/stitcher/v1/slates.proto", :syntax => :proto3) do
@@ -1,11 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/video/stitcher/v1/stitch_details.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/protobuf/duration_pb'
7
9
  require 'google/protobuf/struct_pb'
8
- require 'google/protobuf'
9
10
 
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  add_file("google/cloud/video/stitcher/v1/stitch_details.proto", :syntax => :proto3) do
@@ -22,7 +22,7 @@ module Google
22
22
  module Video
23
23
  module Stitcher
24
24
  module V1
25
- VERSION = "0.1.0"
25
+ VERSION = "0.2.0"
26
26
  end
27
27
  end
28
28
  end
@@ -1853,15 +1853,6 @@ module Google
1853
1853
  # @param parent [::String]
1854
1854
  # Required. The project and location in which the live session should be created,
1855
1855
  # in the form of `projects/{project_number}/locations/{location}`.
1856
- #
1857
- # Valid locations:
1858
- #
1859
- # * `-` (Video Stitcher API will pick a location that is closest to the
1860
- # caller.)
1861
- # * `us-east1`
1862
- # * `us-west1`
1863
- # * `us-central1`
1864
- # * `europe-west1`
1865
1856
  # @param live_session [::Google::Cloud::Video::Stitcher::V1::LiveSession, ::Hash]
1866
1857
  # Required. Parameters for creating a live session.
1867
1858
  #
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/video/stitcher/v1/video_stitcher_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -10,11 +12,8 @@ require 'google/cloud/video/stitcher/v1/cdn_keys_pb'
10
12
  require 'google/cloud/video/stitcher/v1/sessions_pb'
11
13
  require 'google/cloud/video/stitcher/v1/slates_pb'
12
14
  require 'google/cloud/video/stitcher/v1/stitch_details_pb'
13
- require 'google/protobuf/duration_pb'
14
15
  require 'google/protobuf/empty_pb'
15
16
  require 'google/protobuf/field_mask_pb'
16
- require 'google/protobuf/timestamp_pb'
17
- require 'google/protobuf'
18
17
 
19
18
  Google::Protobuf::DescriptorPool.generated_pool.build do
20
19
  add_file("google/cloud/video/stitcher/v1/video_stitcher_service.proto", :syntax => :proto3) do
@@ -26,6 +26,8 @@ module Google
26
26
  ##
27
27
  # To load this package, including all its services, and instantiate a client:
28
28
  #
29
+ # @example
30
+ #
29
31
  # require "google/cloud/video/stitcher/v1"
30
32
  # client = ::Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new
31
33
  #
@@ -64,6 +64,9 @@ module Google
64
64
  # @!attribute [rw] manifest_options
65
65
  # @return [::Google::Cloud::Video::Stitcher::V1::ManifestOptions]
66
66
  # Additional options that affect the output of the manifest.
67
+ # @!attribute [r] asset_id
68
+ # @return [::String]
69
+ # Output only. The generated ID of the VodSession's source media.
67
70
  class VodSession
68
71
  include ::Google::Protobuf::MessageExts
69
72
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -193,6 +196,9 @@ module Google
193
196
  # @!attribute [rw] manifest_options
194
197
  # @return [::Google::Cloud::Video::Stitcher::V1::ManifestOptions]
195
198
  # Additional options that affect the output of the manifest.
199
+ # @!attribute [r] stream_id
200
+ # @return [::String]
201
+ # Output only. The generated ID of the LiveSession's source stream.
196
202
  class LiveSession
197
203
  include ::Google::Protobuf::MessageExts
198
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -224,9 +230,6 @@ module Google
224
230
  # Finishes stitching the current ad before returning to content.
225
231
  COMPLETE_AD = 1
226
232
 
227
- # Finishes stitching the current pod before returning to content.
228
- COMPLETE_POD = 2
229
-
230
233
  # Cuts an ad short and returns to content in the middle of the ad.
231
234
  CUT_CURRENT = 3
232
235
  end
@@ -345,15 +345,6 @@ module Google
345
345
  # @return [::String]
346
346
  # Required. The project and location in which the live session should be created,
347
347
  # in the form of `projects/{project_number}/locations/{location}`.
348
- #
349
- # Valid locations:
350
- #
351
- # * `-` (Video Stitcher API will pick a location that is closest to the
352
- # caller.)
353
- # * `us-east1`
354
- # * `us-west1`
355
- # * `us-central1`
356
- # * `europe-west1`
357
348
  # @!attribute [rw] live_session
358
349
  # @return [::Google::Cloud::Video::Stitcher::V1::LiveSession]
359
350
  # Required. Parameters for creating a live session.
@@ -46,8 +46,8 @@ module Google
46
46
 
47
47
  # `Value` represents a dynamically typed value which can be either
48
48
  # null, a number, a string, a boolean, a recursive struct value, or a
49
- # list of values. A producer of value is expected to set one of that
50
- # variants, absence of any variant indicates an error.
49
+ # list of values. A producer of value is expected to set one of these
50
+ # variants. Absence of any variant indicates an error.
51
51
  #
52
52
  # The JSON representation for `Value` is JSON value.
53
53
  # @!attribute [rw] null_value
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-video-stitcher-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-15 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -203,7 +203,6 @@ files:
203
203
  - proto_docs/google/protobuf/empty.rb
204
204
  - proto_docs/google/protobuf/field_mask.rb
205
205
  - proto_docs/google/protobuf/struct.rb
206
- - proto_docs/google/protobuf/timestamp.rb
207
206
  homepage: https://github.com/googleapis/google-cloud-ruby
208
207
  licenses:
209
208
  - Apache-2.0
@@ -223,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
222
  - !ruby/object:Gem::Version
224
223
  version: '0'
225
224
  requirements: []
226
- rubygems_version: 3.3.5
225
+ rubygems_version: 3.3.14
227
226
  signing_key:
228
227
  specification_version: 4
229
228
  summary: API Client library for the Video Stitcher V1 API
@@ -1,129 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2022 Google LLC
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # https://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
-
19
-
20
- module Google
21
- module Protobuf
22
- # A Timestamp represents a point in time independent of any time zone or local
23
- # calendar, encoded as a count of seconds and fractions of seconds at
24
- # nanosecond resolution. The count is relative to an epoch at UTC midnight on
25
- # January 1, 1970, in the proleptic Gregorian calendar which extends the
26
- # Gregorian calendar backwards to year one.
27
- #
28
- # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
29
- # second table is needed for interpretation, using a [24-hour linear
30
- # smear](https://developers.google.com/time/smear).
31
- #
32
- # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
33
- # restricting to that range, we ensure that we can convert to and from [RFC
34
- # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
35
- #
36
- # # Examples
37
- #
38
- # Example 1: Compute Timestamp from POSIX `time()`.
39
- #
40
- # Timestamp timestamp;
41
- # timestamp.set_seconds(time(NULL));
42
- # timestamp.set_nanos(0);
43
- #
44
- # Example 2: Compute Timestamp from POSIX `gettimeofday()`.
45
- #
46
- # struct timeval tv;
47
- # gettimeofday(&tv, NULL);
48
- #
49
- # Timestamp timestamp;
50
- # timestamp.set_seconds(tv.tv_sec);
51
- # timestamp.set_nanos(tv.tv_usec * 1000);
52
- #
53
- # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
54
- #
55
- # FILETIME ft;
56
- # GetSystemTimeAsFileTime(&ft);
57
- # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
58
- #
59
- # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
60
- # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
61
- # Timestamp timestamp;
62
- # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
63
- # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
64
- #
65
- # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
66
- #
67
- # long millis = System.currentTimeMillis();
68
- #
69
- # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
- # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
- #
72
- #
73
- # Example 5: Compute Timestamp from Java `Instant.now()`.
74
- #
75
- # Instant now = Instant.now();
76
- #
77
- # Timestamp timestamp =
78
- # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
- # .setNanos(now.getNano()).build();
80
- #
81
- #
82
- # Example 6: Compute Timestamp from current time in Python.
83
- #
84
- # timestamp = Timestamp()
85
- # timestamp.GetCurrentTime()
86
- #
87
- # # JSON Mapping
88
- #
89
- # In JSON format, the Timestamp type is encoded as a string in the
90
- # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
91
- # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
92
- # where \\{year} is always expressed using four digits while \\{month}, \\{day},
93
- # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
94
- # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
95
- # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
96
- # is required. A proto3 JSON serializer should always use UTC (as indicated by
97
- # "Z") when printing the Timestamp type and a proto3 JSON parser should be
98
- # able to accept both UTC and other timezones (as indicated by an offset).
99
- #
100
- # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
101
- # 01:30 UTC on January 15, 2017.
102
- #
103
- # In JavaScript, one can convert a Date object to this format using the
104
- # standard
105
- # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
106
- # method. In Python, a standard `datetime.datetime` object can be converted
107
- # to this format using
108
- # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
- # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
- # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
112
- # ) to obtain a formatter capable of generating timestamps in this format.
113
- # @!attribute [rw] seconds
114
- # @return [::Integer]
115
- # Represents seconds of UTC time since Unix epoch
116
- # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
117
- # 9999-12-31T23:59:59Z inclusive.
118
- # @!attribute [rw] nanos
119
- # @return [::Integer]
120
- # Non-negative fractions of a second at nanosecond resolution. Negative
121
- # second values with fractions must still have non-negative nanos values
122
- # that count forward in time. Must be from 0 to 999,999,999
123
- # inclusive.
124
- class Timestamp
125
- include ::Google::Protobuf::MessageExts
126
- extend ::Google::Protobuf::MessageExts::ClassMethods
127
- end
128
- end
129
- end