public final class StreamingAnalyzeContentResponse extends GeneratedMessageV3 implements StreamingAnalyzeContentResponseOrBuilder
The top-level message returned from the StreamingAnalyzeContent
method.
Multiple response messages can be returned in order:
If the input was set to streaming audio, the first one or more messages
contain recognition_result
. Each recognition_result
represents a more
complete transcript of what the user said. The last recognition_result
has is_final
set to true
.
In virtual agent stage: if enable_partial_automated_agent_reply
is
true, the following N (currently 1 <= N <= 4) messages
contain automated_agent_reply
and optionally reply_audio
returned by the virtual agent. The first (N-1)
automated_agent_reply
s will have automated_agent_reply_type
set to
PARTIAL
. The last automated_agent_reply
has
automated_agent_reply_type
set to FINAL
.
If enable_partial_automated_agent_reply
is not enabled, response stream
only contains the final reply.
In human assist stage: the following N (N >= 1) messages contain
human_agent_suggestion_results
, end_user_suggestion_results
or
message
.
Protobuf type google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
AUTOMATED_AGENT_REPLY_FIELD_NUMBER
public static final int AUTOMATED_AGENT_REPLY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DEBUGGING_INFO_FIELD_NUMBER
public static final int DEBUGGING_INFO_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DTMF_PARAMETERS_FIELD_NUMBER
public static final int DTMF_PARAMETERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
END_USER_SUGGESTION_RESULTS_FIELD_NUMBER
public static final int END_USER_SUGGESTION_RESULTS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
HUMAN_AGENT_SUGGESTION_RESULTS_FIELD_NUMBER
public static final int HUMAN_AGENT_SUGGESTION_RESULTS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
RECOGNITION_RESULT_FIELD_NUMBER
public static final int RECOGNITION_RESULT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REPLY_AUDIO_FIELD_NUMBER
public static final int REPLY_AUDIO_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REPLY_TEXT_FIELD_NUMBER
public static final int REPLY_TEXT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static StreamingAnalyzeContentResponse getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static StreamingAnalyzeContentResponse.Builder newBuilder()
newBuilder(StreamingAnalyzeContentResponse prototype)
public static StreamingAnalyzeContentResponse.Builder newBuilder(StreamingAnalyzeContentResponse prototype)
parseDelimitedFrom(InputStream input)
public static StreamingAnalyzeContentResponse parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingAnalyzeContentResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static StreamingAnalyzeContentResponse parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static StreamingAnalyzeContentResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static StreamingAnalyzeContentResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StreamingAnalyzeContentResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static StreamingAnalyzeContentResponse parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingAnalyzeContentResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static StreamingAnalyzeContentResponse parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingAnalyzeContentResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static StreamingAnalyzeContentResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static StreamingAnalyzeContentResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<StreamingAnalyzeContentResponse> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAutomatedAgentReply()
public AutomatedAgentReply getAutomatedAgentReply()
Note that in [AutomatedAgentReply.DetectIntentResponse][],
[Sessions.DetectIntentResponse.output_audio][]
and [Sessions.DetectIntentResponse.output_audio_config][]
are always empty, use
reply_audio
instead.
.google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 4;
getAutomatedAgentReplyOrBuilder()
public AutomatedAgentReplyOrBuilder getAutomatedAgentReplyOrBuilder()
Note that in [AutomatedAgentReply.DetectIntentResponse][],
[Sessions.DetectIntentResponse.output_audio][]
and [Sessions.DetectIntentResponse.output_audio_config][]
are always empty, use
reply_audio
instead.
.google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 4;
getDebuggingInfo()
public CloudConversationDebuggingInfo getDebuggingInfo()
Debugging info that would get populated when
StreamingAnalyzeContentRequest.enable_debugging_info
is set to true.
.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 11;
getDebuggingInfoOrBuilder()
public CloudConversationDebuggingInfoOrBuilder getDebuggingInfoOrBuilder()
Debugging info that would get populated when
StreamingAnalyzeContentRequest.enable_debugging_info
is set to true.
.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 11;
getDefaultInstanceForType()
public StreamingAnalyzeContentResponse getDefaultInstanceForType()
getDtmfParameters()
public DtmfParameters getDtmfParameters()
Indicates the parameters of DTMF.
.google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 10;
getDtmfParametersOrBuilder()
public DtmfParametersOrBuilder getDtmfParametersOrBuilder()
Indicates the parameters of DTMF.
.google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 10;
getEndUserSuggestionResults(int index)
public SuggestionResult getEndUserSuggestionResults(int index)
The suggestions for end user. The order is the same as
HumanAgentAssistantConfig.SuggestionConfig.feature_configs
of
HumanAgentAssistantConfig.end_user_suggestion_config.
repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 8;
Parameter |
Name |
Description |
index |
int
|
getEndUserSuggestionResultsCount()
public int getEndUserSuggestionResultsCount()
The suggestions for end user. The order is the same as
HumanAgentAssistantConfig.SuggestionConfig.feature_configs
of
HumanAgentAssistantConfig.end_user_suggestion_config.
repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 8;
Returns |
Type |
Description |
int |
|
getEndUserSuggestionResultsList()
public List<SuggestionResult> getEndUserSuggestionResultsList()
The suggestions for end user. The order is the same as
HumanAgentAssistantConfig.SuggestionConfig.feature_configs
of
HumanAgentAssistantConfig.end_user_suggestion_config.
repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 8;
getEndUserSuggestionResultsOrBuilder(int index)
public SuggestionResultOrBuilder getEndUserSuggestionResultsOrBuilder(int index)
The suggestions for end user. The order is the same as
HumanAgentAssistantConfig.SuggestionConfig.feature_configs
of
HumanAgentAssistantConfig.end_user_suggestion_config.
repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 8;
Parameter |
Name |
Description |
index |
int
|
getEndUserSuggestionResultsOrBuilderList()
public List<? extends SuggestionResultOrBuilder> getEndUserSuggestionResultsOrBuilderList()
The suggestions for end user. The order is the same as
HumanAgentAssistantConfig.SuggestionConfig.feature_configs
of
HumanAgentAssistantConfig.end_user_suggestion_config.
repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 8;
Returns |
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> |
|
getHumanAgentSuggestionResults(int index)
public SuggestionResult getHumanAgentSuggestionResults(int index)
The suggestions for most recent human agent. The order is the same as
HumanAgentAssistantConfig.SuggestionConfig.feature_configs
of
HumanAgentAssistantConfig.human_agent_suggestion_config.
repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 7;
Parameter |
Name |
Description |
index |
int
|
getHumanAgentSuggestionResultsCount()
public int getHumanAgentSuggestionResultsCount()
The suggestions for most recent human agent. The order is the same as
HumanAgentAssistantConfig.SuggestionConfig.feature_configs
of
HumanAgentAssistantConfig.human_agent_suggestion_config.
repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 7;
Returns |
Type |
Description |
int |
|
getHumanAgentSuggestionResultsList()
public List<SuggestionResult> getHumanAgentSuggestionResultsList()
The suggestions for most recent human agent. The order is the same as
HumanAgentAssistantConfig.SuggestionConfig.feature_configs
of
HumanAgentAssistantConfig.human_agent_suggestion_config.
repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 7;
getHumanAgentSuggestionResultsOrBuilder(int index)
public SuggestionResultOrBuilder getHumanAgentSuggestionResultsOrBuilder(int index)
The suggestions for most recent human agent. The order is the same as
HumanAgentAssistantConfig.SuggestionConfig.feature_configs
of
HumanAgentAssistantConfig.human_agent_suggestion_config.
repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 7;
Parameter |
Name |
Description |
index |
int
|
getHumanAgentSuggestionResultsOrBuilderList()
public List<? extends SuggestionResultOrBuilder> getHumanAgentSuggestionResultsOrBuilderList()
The suggestions for most recent human agent. The order is the same as
HumanAgentAssistantConfig.SuggestionConfig.feature_configs
of
HumanAgentAssistantConfig.human_agent_suggestion_config.
repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 7;
Returns |
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> |
|
getMessage()
public Message getMessage()
Message analyzed by CCAI.
.google.cloud.dialogflow.v2.Message message = 6;
Returns |
Type |
Description |
Message |
The message.
|
getMessageOrBuilder()
public MessageOrBuilder getMessageOrBuilder()
Message analyzed by CCAI.
.google.cloud.dialogflow.v2.Message message = 6;
getParserForType()
public Parser<StreamingAnalyzeContentResponse> getParserForType()
Overrides
getRecognitionResult()
public StreamingRecognitionResult getRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 1;
getRecognitionResultOrBuilder()
public StreamingRecognitionResultOrBuilder getRecognitionResultOrBuilder()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 1;
getReplyAudio()
public OutputAudio getReplyAudio()
The audio data bytes encoded as specified in the request.
This field is set if:
- The
reply_audio_config
field is specified in the request.
The automated agent, which this output comes from, responded with audio.
In such case, the reply_audio.config
field contains settings used to
synthesize the speech.
In some scenarios, multiple output audio fields may be present in the
response structure. In these cases, only the top-most-level audio output
has content.
.google.cloud.dialogflow.v2.OutputAudio reply_audio = 3;
getReplyAudioOrBuilder()
public OutputAudioOrBuilder getReplyAudioOrBuilder()
The audio data bytes encoded as specified in the request.
This field is set if:
- The
reply_audio_config
field is specified in the request.
The automated agent, which this output comes from, responded with audio.
In such case, the reply_audio.config
field contains settings used to
synthesize the speech.
In some scenarios, multiple output audio fields may be present in the
response structure. In these cases, only the top-most-level audio output
has content.
.google.cloud.dialogflow.v2.OutputAudio reply_audio = 3;
getReplyText()
public String getReplyText()
The output text content.
This field is set if an automated agent responded with a text for the user.
string reply_text = 2;
Returns |
Type |
Description |
String |
The replyText.
|
getReplyTextBytes()
public ByteString getReplyTextBytes()
The output text content.
This field is set if an automated agent responded with a text for the user.
string reply_text = 2;
Returns |
Type |
Description |
ByteString |
The bytes for replyText.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasAutomatedAgentReply()
public boolean hasAutomatedAgentReply()
Note that in [AutomatedAgentReply.DetectIntentResponse][],
[Sessions.DetectIntentResponse.output_audio][]
and [Sessions.DetectIntentResponse.output_audio_config][]
are always empty, use
reply_audio
instead.
.google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 4;
Returns |
Type |
Description |
boolean |
Whether the automatedAgentReply field is set.
|
hasDebuggingInfo()
public boolean hasDebuggingInfo()
Debugging info that would get populated when
StreamingAnalyzeContentRequest.enable_debugging_info
is set to true.
.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 11;
Returns |
Type |
Description |
boolean |
Whether the debuggingInfo field is set.
|
hasDtmfParameters()
public boolean hasDtmfParameters()
Indicates the parameters of DTMF.
.google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 10;
Returns |
Type |
Description |
boolean |
Whether the dtmfParameters field is set.
|
hasMessage()
public boolean hasMessage()
Message analyzed by CCAI.
.google.cloud.dialogflow.v2.Message message = 6;
Returns |
Type |
Description |
boolean |
Whether the message field is set.
|
hasRecognitionResult()
public boolean hasRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 1;
Returns |
Type |
Description |
boolean |
Whether the recognitionResult field is set.
|
hasReplyAudio()
public boolean hasReplyAudio()
The audio data bytes encoded as specified in the request.
This field is set if:
- The
reply_audio_config
field is specified in the request.
The automated agent, which this output comes from, responded with audio.
In such case, the reply_audio.config
field contains settings used to
synthesize the speech.
In some scenarios, multiple output audio fields may be present in the
response structure. In these cases, only the top-most-level audio output
has content.
.google.cloud.dialogflow.v2.OutputAudio reply_audio = 3;
Returns |
Type |
Description |
boolean |
Whether the replyAudio field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public StreamingAnalyzeContentResponse.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected StreamingAnalyzeContentResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public StreamingAnalyzeContentResponse.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides