google-cloud-media_translation-v1beta1 0.4.2 → 0.4.3
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:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 56583c9e663369515513dd29f3534e3a439d58d89ede1060d56457763fb7b0db
         | 
| 4 | 
            +
              data.tar.gz: 46db844c9c88e15551b2dbdeee206b75b3090c369cc886e27617fbe0e278d667
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 1978e12874fd9f39dcb1ebe65f3d075f67bc85b72d31075ad64d32e5d71c8f2ff15fa7b9248f882d742844aa08b9ff30044551139a51f757f04ec9ef0aa3bb19
         | 
| 7 | 
            +
              data.tar.gz: e005affeefd6ff61558c0e3e37811e997fc21bdbc6117fb998f1a201ce36093f03a16a1633d74700c1dc15feef1c2a271a0ff67c83b7f8f690d9b5fe831ec41a
         | 
| @@ -39,13 +39,12 @@ module Google | |
| 39 39 | 
             
                        # See {::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client::Configuration}
         | 
| 40 40 | 
             
                        # for a description of the configuration fields.
         | 
| 41 41 | 
             
                        #
         | 
| 42 | 
            -
                        #  | 
| 42 | 
            +
                        # @example
         | 
| 43 43 | 
             
                        #
         | 
| 44 | 
            -
                        #  | 
| 45 | 
            -
                        #
         | 
| 46 | 
            -
                        #      | 
| 47 | 
            -
                        # | 
| 48 | 
            -
                        #     end
         | 
| 44 | 
            +
                        #   # Modify the configuration for all SpeechTranslationService clients
         | 
| 45 | 
            +
                        #   ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.configure do |config|
         | 
| 46 | 
            +
                        #     config.timeout = 10.0
         | 
| 47 | 
            +
                        #   end
         | 
| 49 48 | 
             
                        #
         | 
| 50 49 | 
             
                        # @yield [config] Configure the Client client.
         | 
| 51 50 | 
             
                        # @yieldparam config [Client::Configuration]
         | 
| @@ -99,19 +98,15 @@ module Google | |
| 99 98 | 
             
                        ##
         | 
| 100 99 | 
             
                        # Create a new SpeechTranslationService client object.
         | 
| 101 100 | 
             
                        #
         | 
| 102 | 
            -
                        #  | 
| 103 | 
            -
                        #
         | 
| 104 | 
            -
                        # To create a new SpeechTranslationService client with the default
         | 
| 105 | 
            -
                        # configuration:
         | 
| 101 | 
            +
                        # @example
         | 
| 106 102 | 
             
                        #
         | 
| 107 | 
            -
                        # | 
| 103 | 
            +
                        #   # Create a client using the default configuration
         | 
| 104 | 
            +
                        #   client = ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new
         | 
| 108 105 | 
             
                        #
         | 
| 109 | 
            -
                        #  | 
| 110 | 
            -
                        #  | 
| 111 | 
            -
                        #
         | 
| 112 | 
            -
                        # | 
| 113 | 
            -
                        #       config.timeout = 10.0
         | 
| 114 | 
            -
                        #     end
         | 
| 106 | 
            +
                        #   # Create a client using a custom configuration
         | 
| 107 | 
            +
                        #   client = ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new do |config|
         | 
| 108 | 
            +
                        #     config.timeout = 10.0
         | 
| 109 | 
            +
                        #   end
         | 
| 115 110 | 
             
                        #
         | 
| 116 111 | 
             
                        # @yield [config] Configure the SpeechTranslationService client.
         | 
| 117 112 | 
             
                        # @yieldparam config [Client::Configuration]
         | 
| @@ -131,10 +126,9 @@ module Google | |
| 131 126 |  | 
| 132 127 | 
             
                          # Create credentials
         | 
| 133 128 | 
             
                          credentials = @config.credentials
         | 
| 134 | 
            -
                          # Use self-signed JWT if the  | 
| 129 | 
            +
                          # Use self-signed JWT if the endpoint is unchanged from default,
         | 
| 135 130 | 
             
                          # but only if the default endpoint does not have a region prefix.
         | 
| 136 | 
            -
                          enable_self_signed_jwt = @config. | 
| 137 | 
            -
                                                   @config.endpoint == Client.configure.endpoint &&
         | 
| 131 | 
            +
                          enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
         | 
| 138 132 | 
             
                                                   !@config.endpoint.split(".").first.include?("-")
         | 
| 139 133 | 
             
                          credentials ||= Credentials.default scope: @config.scope,
         | 
| 140 134 | 
             
                                                              enable_self_signed_jwt: enable_self_signed_jwt
         | 
| @@ -197,7 +191,9 @@ module Google | |
| 197 191 | 
             
                          options.apply_defaults timeout:      @config.rpcs.streaming_translate_speech.timeout,
         | 
| 198 192 | 
             
                                                 metadata:     metadata,
         | 
| 199 193 | 
             
                                                 retry_policy: @config.rpcs.streaming_translate_speech.retry_policy
         | 
| 200 | 
            -
             | 
| 194 | 
            +
             | 
| 195 | 
            +
                          options.apply_defaults timeout:      @config.timeout,
         | 
| 196 | 
            +
                                                 metadata:     @config.metadata,
         | 
| 201 197 | 
             
                                                 retry_policy: @config.retry_policy
         | 
| 202 198 |  | 
| 203 199 | 
             
                          @speech_translation_service_stub.call_rpc :streaming_translate_speech, request, options: options do |response, operation|
         | 
| @@ -221,22 +217,21 @@ module Google | |
| 221 217 | 
             
                        # Configuration can be applied globally to all clients, or to a single client
         | 
| 222 218 | 
             
                        # on construction.
         | 
| 223 219 | 
             
                        #
         | 
| 224 | 
            -
                        #  | 
| 225 | 
            -
                        #
         | 
| 226 | 
            -
                        #  | 
| 227 | 
            -
                        # to 20 seconds, | 
| 228 | 
            -
                        #
         | 
| 229 | 
            -
                        # | 
| 230 | 
            -
                        # | 
| 231 | 
            -
                        # | 
| 232 | 
            -
                        # | 
| 233 | 
            -
                        #
         | 
| 234 | 
            -
                        #  | 
| 235 | 
            -
                        #
         | 
| 236 | 
            -
                        #      | 
| 237 | 
            -
                        # | 
| 238 | 
            -
                        # | 
| 239 | 
            -
                        #     end
         | 
| 220 | 
            +
                        # @example
         | 
| 221 | 
            +
                        #
         | 
| 222 | 
            +
                        #   # Modify the global config, setting the timeout for
         | 
| 223 | 
            +
                        #   # streaming_translate_speech to 20 seconds,
         | 
| 224 | 
            +
                        #   # and all remaining timeouts to 10 seconds.
         | 
| 225 | 
            +
                        #   ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.configure do |config|
         | 
| 226 | 
            +
                        #     config.timeout = 10.0
         | 
| 227 | 
            +
                        #     config.rpcs.streaming_translate_speech.timeout = 20.0
         | 
| 228 | 
            +
                        #   end
         | 
| 229 | 
            +
                        #
         | 
| 230 | 
            +
                        #   # Apply the above configuration only to a new client.
         | 
| 231 | 
            +
                        #   client = ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new do |config|
         | 
| 232 | 
            +
                        #     config.timeout = 10.0
         | 
| 233 | 
            +
                        #     config.rpcs.streaming_translate_speech.timeout = 20.0
         | 
| 234 | 
            +
                        #   end
         | 
| 240 235 | 
             
                        #
         | 
| 241 236 | 
             
                        # @!attribute [rw] endpoint
         | 
| 242 237 | 
             
                        #   The hostname or hostname:port of the service endpoint.
         | 
    
        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. | 
| 4 | 
            +
              version: 0.4.3
         | 
| 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- | 
| 11 | 
            +
            date: 2021-08-11 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: gapic-common
         | 
| @@ -16,7 +16,7 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - ">="
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: '0. | 
| 19 | 
            +
                    version: '0.7'
         | 
| 20 20 | 
             
                - - "<"
         | 
| 21 21 | 
             
                  - !ruby/object:Gem::Version
         | 
| 22 22 | 
             
                    version: 2.a
         | 
| @@ -26,7 +26,7 @@ dependencies: | |
| 26 26 | 
             
                requirements:
         | 
| 27 27 | 
             
                - - ">="
         | 
| 28 28 | 
             
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            -
                    version: '0. | 
| 29 | 
            +
                    version: '0.7'
         | 
| 30 30 | 
             
                - - "<"
         | 
| 31 31 | 
             
                  - !ruby/object:Gem::Version
         | 
| 32 32 | 
             
                    version: 2.a
         |