Interface StreamingTranslateSpeechResponseOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
StreamingTranslateSpeechResponse,StreamingTranslateSpeechResponse.Builder
public interface StreamingTranslateSpeechResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.rpc.StatusgetError()Output only.com.google.rpc.StatusOrBuildergetErrorOrBuilder()Output only.StreamingTranslateSpeechResultgetResult()Output only.StreamingTranslateSpeechResultOrBuildergetResultOrBuilder()Output only.StreamingTranslateSpeechResponse.SpeechEventTypegetSpeechEventType()Output only.intgetSpeechEventTypeValue()Output only.booleanhasError()Output only.booleanhasResult()Output only.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasError
boolean hasError()
Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the error field is set.
-
getError
com.google.rpc.Status getError()
Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The error.
-
getErrorOrBuilder
com.google.rpc.StatusOrBuilder getErrorOrBuilder()
Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
hasResult
boolean hasResult()
Output only. The translation result that is currently being processed (is_final could be true or false).
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult result = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the result field is set.
-
getResult
StreamingTranslateSpeechResult getResult()
Output only. The translation result that is currently being processed (is_final could be true or false).
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult result = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The result.
-
getResultOrBuilder
StreamingTranslateSpeechResultOrBuilder getResultOrBuilder()
Output only. The translation result that is currently being processed (is_final could be true or false).
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult result = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getSpeechEventTypeValue
int getSpeechEventTypeValue()
Output only. Indicates the type of speech event.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType speech_event_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for speechEventType.
-
getSpeechEventType
StreamingTranslateSpeechResponse.SpeechEventType getSpeechEventType()
Output only. Indicates the type of speech event.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType speech_event_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The speechEventType.
-
-