google-cloud-media_translation-v1beta1 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56583c9e663369515513dd29f3534e3a439d58d89ede1060d56457763fb7b0db
4
- data.tar.gz: 46db844c9c88e15551b2dbdeee206b75b3090c369cc886e27617fbe0e278d667
3
+ metadata.gz: 4ab09ee765650adb21f47c42822e31acb4bf819367c0eee221a1de40b8774fbc
4
+ data.tar.gz: 1ead5ae467ddf5eb7e285a2ff8390347e2c903b351f98f40dc5e46a0f7ca2725
5
5
  SHA512:
6
- metadata.gz: 1978e12874fd9f39dcb1ebe65f3d075f67bc85b72d31075ad64d32e5d71c8f2ff15fa7b9248f882d742844aa08b9ff30044551139a51f757f04ec9ef0aa3bb19
7
- data.tar.gz: e005affeefd6ff61558c0e3e37811e997fc21bdbc6117fb998f1a201ce36093f03a16a1633d74700c1dc15feef1c2a271a0ff67c83b7f8f690d9b5fe831ec41a
6
+ metadata.gz: cc9493b13d6fbf376cc47aa31da87bf6d40b81443487c37701f56b375ff2895cefc531228608c6c9b5a9a954657f5ae3b60d06d3bcff999947fadf7698a2c33b
7
+ data.tar.gz: 8095c636b8f06426f443e45b91c75d21004711bed8fa1fa1fb8c9c2c0086ddcf7e4d5e5eaa673926d1471e1521e0120780343277c1f5ed1b6d23d8a4c6b81ddb
@@ -166,6 +166,30 @@ module Google
166
166
  #
167
167
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
168
168
  #
169
+ # @example Basic example
170
+ # require "google/cloud/media_translation/v1beta1"
171
+ #
172
+ # # Create a client object. The client can be reused for multiple calls.
173
+ # client = Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new
174
+ #
175
+ # # Create an input stream
176
+ # input = Gapic::StreamInput.new
177
+ #
178
+ # # Call the streaming_translate_speech method to start streaming.
179
+ # output = client.streaming_translate_speech input
180
+ #
181
+ # # Send requests on the stream. For each request, pass in keyword
182
+ # # arguments to set fields. Be sure to close the stream when done.
183
+ # input << Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechRequest.new
184
+ # input << Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechRequest.new
185
+ # input.close
186
+ #
187
+ # # Handle streamed responses. These may be interleaved with inputs.
188
+ # # Each response is of type ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResponse.
189
+ # output.each do |response|
190
+ # p response
191
+ # end
192
+ #
169
193
  def streaming_translate_speech request, options = nil
170
194
  unless request.is_a? ::Enumerable
171
195
  raise ::ArgumentError, "request must be an Enumerable" unless request.respond_to? :to_enum
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module MediaTranslation
23
23
  module V1beta1
24
- VERSION = "0.4.3"
24
+ VERSION = "0.4.4"
25
25
  end
26
26
  end
27
27
  end
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/mediatranslation/v1beta1/media_translation.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/rpc/status_pb'
8
6
  require 'google/api/client_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/mediatranslation/v1beta1/media_translation.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Provides translation from/to media types.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-media_translation-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common