public static final class StreamingTranslateSpeechResponse.Builder extends GeneratedMessageV3.Builder<StreamingTranslateSpeechResponse.Builder> implements StreamingTranslateSpeechResponseOrBuilder
A streaming speech translation response corresponding to a portion of
the audio currently processed.
Protobuf type google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public StreamingTranslateSpeechResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public StreamingTranslateSpeechResponse build()
public StreamingTranslateSpeechResponse buildPartial()
public StreamingTranslateSpeechResponse.Builder clear()
Overrides
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];
public StreamingTranslateSpeechResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public StreamingTranslateSpeechResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
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];
public StreamingTranslateSpeechResponse.Builder clone()
Overrides
public StreamingTranslateSpeechResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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 | |
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 | |
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];
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];
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];
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];
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.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
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
|
public StreamingTranslateSpeechResponse.Builder mergeFrom(StreamingTranslateSpeechResponse other)
public StreamingTranslateSpeechResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public StreamingTranslateSpeechResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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];
public final StreamingTranslateSpeechResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
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
|
public StreamingTranslateSpeechResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public StreamingTranslateSpeechResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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];
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];
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];
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 | int
The enum numeric value on the wire for speechEventType to set.
|
public final StreamingTranslateSpeechResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides