public final class StreamingTranslateSpeechResponse extends com.google.protobuf.GeneratedMessageV3 implements StreamingTranslateSpeechResponseOrBuilder
A streaming speech translation response corresponding to a portion of the audio currently processed.Protobuf type
google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse| Modifier and Type | Class and Description |
|---|---|
static class |
StreamingTranslateSpeechResponse.Builder
A streaming speech translation response corresponding to a portion of
the audio currently processed.
|
static class |
StreamingTranslateSpeechResponse.SpeechEventType
Indicates the type of speech event.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_FIELD_NUMBER |
static int |
RESULT_FIELD_NUMBER |
static int |
SPEECH_EVENT_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static StreamingTranslateSpeechResponse |
getDefaultInstance() |
StreamingTranslateSpeechResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.rpc.Status |
getError()
Output only.
|
com.google.rpc.StatusOrBuilder |
getErrorOrBuilder()
Output only.
|
com.google.protobuf.Parser<StreamingTranslateSpeechResponse> |
getParserForType() |
StreamingTranslateSpeechResult |
getResult()
Output only.
|
StreamingTranslateSpeechResultOrBuilder |
getResultOrBuilder()
Output only.
|
int |
getSerializedSize() |
StreamingTranslateSpeechResponse.SpeechEventType |
getSpeechEventType()
Output only.
|
int |
getSpeechEventTypeValue()
Output only.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasError()
Output only.
|
int |
hashCode() |
boolean |
hasResult()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static StreamingTranslateSpeechResponse.Builder |
newBuilder() |
static StreamingTranslateSpeechResponse.Builder |
newBuilder(StreamingTranslateSpeechResponse prototype) |
StreamingTranslateSpeechResponse.Builder |
newBuilderForType() |
protected StreamingTranslateSpeechResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static StreamingTranslateSpeechResponse |
parseDelimitedFrom(InputStream input) |
static StreamingTranslateSpeechResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingTranslateSpeechResponse |
parseFrom(byte[] data) |
static StreamingTranslateSpeechResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingTranslateSpeechResponse |
parseFrom(ByteBuffer data) |
static StreamingTranslateSpeechResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingTranslateSpeechResponse |
parseFrom(com.google.protobuf.ByteString data) |
static StreamingTranslateSpeechResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingTranslateSpeechResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static StreamingTranslateSpeechResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingTranslateSpeechResponse |
parseFrom(InputStream input) |
static StreamingTranslateSpeechResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<StreamingTranslateSpeechResponse> |
parser() |
StreamingTranslateSpeechResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ERROR_FIELD_NUMBER
public static final int RESULT_FIELD_NUMBER
public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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];hasError in interface StreamingTranslateSpeechResponseOrBuilderpublic 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];getError in interface StreamingTranslateSpeechResponseOrBuilderpublic 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];getErrorOrBuilder in interface StreamingTranslateSpeechResponseOrBuilderpublic 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];
hasResult in interface StreamingTranslateSpeechResponseOrBuilderpublic 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];
getResult in interface StreamingTranslateSpeechResponseOrBuilderpublic 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];
getResultOrBuilder in interface StreamingTranslateSpeechResponseOrBuilderpublic 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];
getSpeechEventTypeValue in interface StreamingTranslateSpeechResponseOrBuilderpublic 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];
getSpeechEventType in interface StreamingTranslateSpeechResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static StreamingTranslateSpeechResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingTranslateSpeechResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingTranslateSpeechResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingTranslateSpeechResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingTranslateSpeechResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingTranslateSpeechResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingTranslateSpeechResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static StreamingTranslateSpeechResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StreamingTranslateSpeechResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static StreamingTranslateSpeechResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StreamingTranslateSpeechResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static StreamingTranslateSpeechResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic StreamingTranslateSpeechResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static StreamingTranslateSpeechResponse.Builder newBuilder()
public static StreamingTranslateSpeechResponse.Builder newBuilder(StreamingTranslateSpeechResponse prototype)
public StreamingTranslateSpeechResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected StreamingTranslateSpeechResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static StreamingTranslateSpeechResponse getDefaultInstance()
public static com.google.protobuf.Parser<StreamingTranslateSpeechResponse> parser()
public com.google.protobuf.Parser<StreamingTranslateSpeechResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public StreamingTranslateSpeechResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.