# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/mediatranslation/v1beta1/media_translation.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/rpc/status_pb' require 'google/api/client_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/cloud/mediatranslation/v1beta1/media_translation.proto", :syntax => :proto3) do add_message "google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig" do optional :audio_encoding, :string, 1 optional :source_language_code, :string, 2 optional :target_language_code, :string, 3 optional :sample_rate_hertz, :int32, 4 optional :model, :string, 5 end add_message "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig" do optional :audio_config, :message, 1, "google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig" optional :single_utterance, :bool, 2 end add_message "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest" do oneof :streaming_request do optional :streaming_config, :message, 1, "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig" optional :audio_content, :bytes, 2 end end add_message "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult" do oneof :result do optional :text_translation_result, :message, 1, "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult" end end add_message "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult" do optional :translation, :string, 1 optional :is_final, :bool, 2 end add_message "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse" do optional :error, :message, 1, "google.rpc.Status" optional :result, :message, 2, "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult" optional :speech_event_type, :enum, 3, "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType" end add_enum "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType" do value :SPEECH_EVENT_TYPE_UNSPECIFIED, 0 value :END_OF_SINGLE_UTTERANCE, 1 end end end module Google module Cloud module MediaTranslation module V1beta1 TranslateSpeechConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig").msgclass StreamingTranslateSpeechConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig").msgclass StreamingTranslateSpeechRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest").msgclass StreamingTranslateSpeechResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult").msgclass StreamingTranslateSpeechResult::TextTranslationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult").msgclass StreamingTranslateSpeechResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse").msgclass StreamingTranslateSpeechResponse::SpeechEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType").enummodule end end end end