Interface StreamingTranslateSpeechResponseOrBuilder (0.50.0)

public interface StreamingTranslateSpeechResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getError()

public abstract Status getError()

Output only. If set, returns a google.rpc.Status message that specifies the error for the operation.

.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The error.

getErrorOrBuilder()

public abstract StatusOrBuilder getErrorOrBuilder()

Output only. If set, returns a google.rpc.Status message that specifies the error for the operation.

.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getResult()

public abstract 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
Type Description
StreamingTranslateSpeechResult

The result.

getResultOrBuilder()

public abstract 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];

Returns
Type Description
StreamingTranslateSpeechResultOrBuilder

getSpeechEventType()

public abstract 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
Type Description
StreamingTranslateSpeechResponse.SpeechEventType

The speechEventType.

getSpeechEventTypeValue()

public abstract 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
Type Description
int

The enum numeric value on the wire for speechEventType.

hasError()

public abstract boolean hasError()

Output only. If set, returns a google.rpc.Status message that specifies the error for the operation.

.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the error field is set.

hasResult()

public abstract 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
Type Description
boolean

Whether the result field is set.