...

Source file src/google.golang.org/genproto/googleapis/cloud/mediatranslation/v1beta1/alias.go

Documentation: google.golang.org/genproto/googleapis/cloud/mediatranslation/v1beta1

     1  // Copyright 2022 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by aliasgen. DO NOT EDIT.
    16  
    17  // Package mediatranslation aliases all exported identifiers in package
    18  // "cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb".
    19  //
    20  // Deprecated: Please use types in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb.
    21  // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md
    22  // for more details.
    23  package mediatranslation
    24  
    25  import (
    26  	src "cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb"
    27  	grpc "google.golang.org/grpc"
    28  )
    29  
    30  // Deprecated: Please use consts in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
    31  const (
    32  	StreamingTranslateSpeechResponse_END_OF_SINGLE_UTTERANCE       = src.StreamingTranslateSpeechResponse_END_OF_SINGLE_UTTERANCE
    33  	StreamingTranslateSpeechResponse_SPEECH_EVENT_TYPE_UNSPECIFIED = src.StreamingTranslateSpeechResponse_SPEECH_EVENT_TYPE_UNSPECIFIED
    34  )
    35  
    36  // Deprecated: Please use vars in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
    37  var (
    38  	File_google_cloud_mediatranslation_v1beta1_media_translation_proto = src.File_google_cloud_mediatranslation_v1beta1_media_translation_proto
    39  	StreamingTranslateSpeechResponse_SpeechEventType_name              = src.StreamingTranslateSpeechResponse_SpeechEventType_name
    40  	StreamingTranslateSpeechResponse_SpeechEventType_value             = src.StreamingTranslateSpeechResponse_SpeechEventType_value
    41  )
    42  
    43  // SpeechTranslationServiceClient is the client API for
    44  // SpeechTranslationService service. For semantics around ctx use and
    45  // closing/ending streaming RPCs, please refer to
    46  // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
    47  //
    48  // Deprecated: Please use types in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
    49  type SpeechTranslationServiceClient = src.SpeechTranslationServiceClient
    50  
    51  // SpeechTranslationServiceServer is the server API for
    52  // SpeechTranslationService service.
    53  //
    54  // Deprecated: Please use types in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
    55  type SpeechTranslationServiceServer = src.SpeechTranslationServiceServer
    56  type SpeechTranslationService_StreamingTranslateSpeechClient = src.SpeechTranslationService_StreamingTranslateSpeechClient
    57  type SpeechTranslationService_StreamingTranslateSpeechServer = src.SpeechTranslationService_StreamingTranslateSpeechServer
    58  
    59  // Config used for streaming translation.
    60  //
    61  // Deprecated: Please use types in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
    62  type StreamingTranslateSpeechConfig = src.StreamingTranslateSpeechConfig
    63  
    64  // The top-level message sent by the client for the `StreamingTranslateSpeech`
    65  // method. Multiple `StreamingTranslateSpeechRequest` messages are sent. The
    66  // first message must contain a `streaming_config` message and must not contain
    67  // `audio_content` data. All subsequent messages must contain `audio_content`
    68  // data and must not contain a `streaming_config` message.
    69  //
    70  // Deprecated: Please use types in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
    71  type StreamingTranslateSpeechRequest = src.StreamingTranslateSpeechRequest
    72  type StreamingTranslateSpeechRequest_AudioContent = src.StreamingTranslateSpeechRequest_AudioContent
    73  type StreamingTranslateSpeechRequest_StreamingConfig = src.StreamingTranslateSpeechRequest_StreamingConfig
    74  
    75  // A streaming speech translation response corresponding to a portion of the
    76  // audio currently processed.
    77  //
    78  // Deprecated: Please use types in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
    79  type StreamingTranslateSpeechResponse = src.StreamingTranslateSpeechResponse
    80  
    81  // Indicates the type of speech event.
    82  //
    83  // Deprecated: Please use types in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
    84  type StreamingTranslateSpeechResponse_SpeechEventType = src.StreamingTranslateSpeechResponse_SpeechEventType
    85  
    86  // A streaming speech translation result corresponding to a portion of the
    87  // audio that is currently being processed.
    88  //
    89  // Deprecated: Please use types in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
    90  type StreamingTranslateSpeechResult = src.StreamingTranslateSpeechResult
    91  
    92  // Text translation result.
    93  //
    94  // Deprecated: Please use types in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
    95  type StreamingTranslateSpeechResult_TextTranslationResult = src.StreamingTranslateSpeechResult_TextTranslationResult
    96  type StreamingTranslateSpeechResult_TextTranslationResult_ = src.StreamingTranslateSpeechResult_TextTranslationResult_
    97  
    98  // Provides information to the speech translation that specifies how to
    99  // process the request.
   100  //
   101  // Deprecated: Please use types in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
   102  type TranslateSpeechConfig = src.TranslateSpeechConfig
   103  
   104  // UnimplementedSpeechTranslationServiceServer can be embedded to have forward
   105  // compatible implementations.
   106  //
   107  // Deprecated: Please use types in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
   108  type UnimplementedSpeechTranslationServiceServer = src.UnimplementedSpeechTranslationServiceServer
   109  
   110  // Deprecated: Please use funcs in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
   111  func NewSpeechTranslationServiceClient(cc grpc.ClientConnInterface) SpeechTranslationServiceClient {
   112  	return src.NewSpeechTranslationServiceClient(cc)
   113  }
   114  
   115  // Deprecated: Please use funcs in: cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb
   116  func RegisterSpeechTranslationServiceServer(s *grpc.Server, srv SpeechTranslationServiceServer) {
   117  	src.RegisterSpeechTranslationServiceServer(s, srv)
   118  }
   119  

View as plain text