- 0.89.0 (latest)
- 0.88.0
- 0.87.0
- 0.86.0
- 0.84.0
- 0.82.0
- 0.81.0
- 0.80.0
- 0.79.0
- 0.78.0
- 0.76.0
- 0.74.0
- 0.73.0
- 0.70.0
- 0.69.0
- 0.68.0
- 0.66.0
- 0.65.0
- 0.64.0
- 0.63.0
- 0.62.0
- 0.61.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.6
- 0.7.10
public static final class StreamingTranslateSpeechResponse.Builder extends GeneratedMessage.Builder<StreamingTranslateSpeechResponse.Builder> implements StreamingTranslateSpeechResponseOrBuilderA streaming speech translation response corresponding to a portion of the audio currently processed.
Protobuf type google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StreamingTranslateSpeechResponse.BuilderImplements
StreamingTranslateSpeechResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public StreamingTranslateSpeechResponse build()| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse |
|
buildPartial()
public StreamingTranslateSpeechResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse |
|
clear()
public StreamingTranslateSpeechResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
|
clearError()
public StreamingTranslateSpeechResponse.Builder clearError()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 |
StreamingTranslateSpeechResponse.Builder |
|
clearResult()
public StreamingTranslateSpeechResponse.Builder clearResult()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 |
StreamingTranslateSpeechResponse.Builder |
|
clearSpeechEventType()
public StreamingTranslateSpeechResponse.Builder clearSpeechEventType()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.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public StreamingTranslateSpeechResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getError()
public 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. |
getErrorBuilder()
public Status.Builder getErrorBuilder()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.Builder |
|
getErrorOrBuilder()
public 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 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. |
getResultBuilder()
public StreamingTranslateSpeechResult.Builder getResultBuilder()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.Builder |
|
getResultOrBuilder()
public 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 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 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeError(Status value)
public StreamingTranslateSpeechResponse.Builder mergeError(Status value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
|
mergeFrom(StreamingTranslateSpeechResponse other)
public StreamingTranslateSpeechResponse.Builder mergeFrom(StreamingTranslateSpeechResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
StreamingTranslateSpeechResponse |
| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StreamingTranslateSpeechResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StreamingTranslateSpeechResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
|
mergeResult(StreamingTranslateSpeechResult value)
public StreamingTranslateSpeechResponse.Builder mergeResult(StreamingTranslateSpeechResult value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StreamingTranslateSpeechResult |
| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
|
setError(Status value)
public StreamingTranslateSpeechResponse.Builder setError(Status value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
|
setError(Status.Builder builderForValue)
public StreamingTranslateSpeechResponse.Builder setError(Status.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.rpc.Status.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
|
setResult(StreamingTranslateSpeechResult value)
public StreamingTranslateSpeechResponse.Builder setResult(StreamingTranslateSpeechResult value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StreamingTranslateSpeechResult |
| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
|
setResult(StreamingTranslateSpeechResult.Builder builderForValue)
public StreamingTranslateSpeechResponse.Builder setResult(StreamingTranslateSpeechResult.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
StreamingTranslateSpeechResult.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
|
setSpeechEventType(StreamingTranslateSpeechResponse.SpeechEventType value)
public StreamingTranslateSpeechResponse.Builder setSpeechEventType(StreamingTranslateSpeechResponse.SpeechEventType value)Output only. Indicates the type of speech event.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType speech_event_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StreamingTranslateSpeechResponse.SpeechEventTypeThe speechEventType to set. |
| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
This builder for chaining. |
setSpeechEventTypeValue(int value)
public StreamingTranslateSpeechResponse.Builder setSpeechEventTypeValue(int value)Output only. Indicates the type of speech event.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType speech_event_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for speechEventType to set. |
| Returns | |
|---|---|
| Type | Description |
StreamingTranslateSpeechResponse.Builder |
This builder for chaining. |