Class DetectIntentResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
- com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.Builder
-
- All Implemented Interfaces:
DetectIntentResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DetectIntentResponse
public static final class DetectIntentResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder> implements DetectIntentResponseOrBuilder
The message returned from the DetectIntent method.
Protobuf typegoogle.cloud.dialogflow.cx.v3beta1.DetectIntentResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DetectIntentResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DetectIntentResponsebuild()DetectIntentResponsebuildPartial()DetectIntentResponse.Builderclear()DetectIntentResponse.BuilderclearAllowCancellation()Indicates whether the partial response can be cancelled when a later response arrives.DetectIntentResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DetectIntentResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DetectIntentResponse.BuilderclearOutputAudio()The audio data bytes encoded as specified in the request.DetectIntentResponse.BuilderclearOutputAudioConfig()The config used by the speech synthesizer to generate the output audio.DetectIntentResponse.BuilderclearQueryResult()The result of the conversational query.DetectIntentResponse.BuilderclearResponseId()Output only.DetectIntentResponse.BuilderclearResponseType()Response type.DetectIntentResponse.Builderclone()booleangetAllowCancellation()Indicates whether the partial response can be cancelled when a later response arrives.DetectIntentResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.ByteStringgetOutputAudio()The audio data bytes encoded as specified in the request.OutputAudioConfiggetOutputAudioConfig()The config used by the speech synthesizer to generate the output audio.OutputAudioConfig.BuildergetOutputAudioConfigBuilder()The config used by the speech synthesizer to generate the output audio.OutputAudioConfigOrBuildergetOutputAudioConfigOrBuilder()The config used by the speech synthesizer to generate the output audio.QueryResultgetQueryResult()The result of the conversational query.QueryResult.BuildergetQueryResultBuilder()The result of the conversational query.QueryResultOrBuildergetQueryResultOrBuilder()The result of the conversational query.StringgetResponseId()Output only.com.google.protobuf.ByteStringgetResponseIdBytes()Output only.DetectIntentResponse.ResponseTypegetResponseType()Response type.intgetResponseTypeValue()Response type.booleanhasOutputAudioConfig()The config used by the speech synthesizer to generate the output audio.booleanhasQueryResult()The result of the conversational query.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DetectIntentResponse.BuildermergeFrom(DetectIntentResponse other)DetectIntentResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DetectIntentResponse.BuildermergeFrom(com.google.protobuf.Message other)DetectIntentResponse.BuildermergeOutputAudioConfig(OutputAudioConfig value)The config used by the speech synthesizer to generate the output audio.DetectIntentResponse.BuildermergeQueryResult(QueryResult value)The result of the conversational query.DetectIntentResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DetectIntentResponse.BuildersetAllowCancellation(boolean value)Indicates whether the partial response can be cancelled when a later response arrives.DetectIntentResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DetectIntentResponse.BuildersetOutputAudio(com.google.protobuf.ByteString value)The audio data bytes encoded as specified in the request.DetectIntentResponse.BuildersetOutputAudioConfig(OutputAudioConfig value)The config used by the speech synthesizer to generate the output audio.DetectIntentResponse.BuildersetOutputAudioConfig(OutputAudioConfig.Builder builderForValue)The config used by the speech synthesizer to generate the output audio.DetectIntentResponse.BuildersetQueryResult(QueryResult value)The result of the conversational query.DetectIntentResponse.BuildersetQueryResult(QueryResult.Builder builderForValue)The result of the conversational query.DetectIntentResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DetectIntentResponse.BuildersetResponseId(String value)Output only.DetectIntentResponse.BuildersetResponseIdBytes(com.google.protobuf.ByteString value)Output only.DetectIntentResponse.BuildersetResponseType(DetectIntentResponse.ResponseType value)Response type.DetectIntentResponse.BuildersetResponseTypeValue(int value)Response type.DetectIntentResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
clear
public DetectIntentResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
getDefaultInstanceForType
public DetectIntentResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DetectIntentResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DetectIntentResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DetectIntentResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
setField
public DetectIntentResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
clearField
public DetectIntentResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
clearOneof
public DetectIntentResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
setRepeatedField
public DetectIntentResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
addRepeatedField
public DetectIntentResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
mergeFrom
public DetectIntentResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DetectIntentResponse.Builder>
-
mergeFrom
public DetectIntentResponse.Builder mergeFrom(DetectIntentResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
mergeFrom
public DetectIntentResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DetectIntentResponse.Builder>- Throws:
IOException
-
getResponseId
public String getResponseId()
Output only. The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;- Specified by:
getResponseIdin interfaceDetectIntentResponseOrBuilder- Returns:
- The responseId.
-
getResponseIdBytes
public com.google.protobuf.ByteString getResponseIdBytes()
Output only. The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;- Specified by:
getResponseIdBytesin interfaceDetectIntentResponseOrBuilder- Returns:
- The bytes for responseId.
-
setResponseId
public DetectIntentResponse.Builder setResponseId(String value)
Output only. The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;- Parameters:
value- The responseId to set.- Returns:
- This builder for chaining.
-
clearResponseId
public DetectIntentResponse.Builder clearResponseId()
Output only. The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;- Returns:
- This builder for chaining.
-
setResponseIdBytes
public DetectIntentResponse.Builder setResponseIdBytes(com.google.protobuf.ByteString value)
Output only. The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;- Parameters:
value- The bytes for responseId to set.- Returns:
- This builder for chaining.
-
hasQueryResult
public boolean hasQueryResult()
The result of the conversational query.
.google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2;- Specified by:
hasQueryResultin interfaceDetectIntentResponseOrBuilder- Returns:
- Whether the queryResult field is set.
-
getQueryResult
public QueryResult getQueryResult()
The result of the conversational query.
.google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2;- Specified by:
getQueryResultin interfaceDetectIntentResponseOrBuilder- Returns:
- The queryResult.
-
setQueryResult
public DetectIntentResponse.Builder setQueryResult(QueryResult value)
The result of the conversational query.
.google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2;
-
setQueryResult
public DetectIntentResponse.Builder setQueryResult(QueryResult.Builder builderForValue)
The result of the conversational query.
.google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2;
-
mergeQueryResult
public DetectIntentResponse.Builder mergeQueryResult(QueryResult value)
The result of the conversational query.
.google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2;
-
clearQueryResult
public DetectIntentResponse.Builder clearQueryResult()
The result of the conversational query.
.google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2;
-
getQueryResultBuilder
public QueryResult.Builder getQueryResultBuilder()
The result of the conversational query.
.google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2;
-
getQueryResultOrBuilder
public QueryResultOrBuilder getQueryResultOrBuilder()
The result of the conversational query.
.google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2;- Specified by:
getQueryResultOrBuilderin interfaceDetectIntentResponseOrBuilder
-
getOutputAudio
public com.google.protobuf.ByteString getOutputAudio()
The audio data bytes encoded as specified in the request. Note: The output audio is generated based on the values of default platform text responses found in the [`query_result.response_messages`][google.cloud.dialogflow.cx.v3beta1.QueryResult.response_messages] field. If multiple default text responses exist, they will be concatenated when generating audio. If no default platform text responses exist, the generated audio content will be empty. 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.
bytes output_audio = 4;- Specified by:
getOutputAudioin interfaceDetectIntentResponseOrBuilder- Returns:
- The outputAudio.
-
setOutputAudio
public DetectIntentResponse.Builder setOutputAudio(com.google.protobuf.ByteString value)
The audio data bytes encoded as specified in the request. Note: The output audio is generated based on the values of default platform text responses found in the [`query_result.response_messages`][google.cloud.dialogflow.cx.v3beta1.QueryResult.response_messages] field. If multiple default text responses exist, they will be concatenated when generating audio. If no default platform text responses exist, the generated audio content will be empty. 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.
bytes output_audio = 4;- Parameters:
value- The outputAudio to set.- Returns:
- This builder for chaining.
-
clearOutputAudio
public DetectIntentResponse.Builder clearOutputAudio()
The audio data bytes encoded as specified in the request. Note: The output audio is generated based on the values of default platform text responses found in the [`query_result.response_messages`][google.cloud.dialogflow.cx.v3beta1.QueryResult.response_messages] field. If multiple default text responses exist, they will be concatenated when generating audio. If no default platform text responses exist, the generated audio content will be empty. 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.
bytes output_audio = 4;- Returns:
- This builder for chaining.
-
hasOutputAudioConfig
public boolean hasOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 5;- Specified by:
hasOutputAudioConfigin interfaceDetectIntentResponseOrBuilder- Returns:
- Whether the outputAudioConfig field is set.
-
getOutputAudioConfig
public OutputAudioConfig getOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 5;- Specified by:
getOutputAudioConfigin interfaceDetectIntentResponseOrBuilder- Returns:
- The outputAudioConfig.
-
setOutputAudioConfig
public DetectIntentResponse.Builder setOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 5;
-
setOutputAudioConfig
public DetectIntentResponse.Builder setOutputAudioConfig(OutputAudioConfig.Builder builderForValue)
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 5;
-
mergeOutputAudioConfig
public DetectIntentResponse.Builder mergeOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 5;
-
clearOutputAudioConfig
public DetectIntentResponse.Builder clearOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 5;
-
getOutputAudioConfigBuilder
public OutputAudioConfig.Builder getOutputAudioConfigBuilder()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 5;
-
getOutputAudioConfigOrBuilder
public OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 5;- Specified by:
getOutputAudioConfigOrBuilderin interfaceDetectIntentResponseOrBuilder
-
getResponseTypeValue
public int getResponseTypeValue()
Response type.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6;- Specified by:
getResponseTypeValuein interfaceDetectIntentResponseOrBuilder- Returns:
- The enum numeric value on the wire for responseType.
-
setResponseTypeValue
public DetectIntentResponse.Builder setResponseTypeValue(int value)
Response type.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6;- Parameters:
value- The enum numeric value on the wire for responseType to set.- Returns:
- This builder for chaining.
-
getResponseType
public DetectIntentResponse.ResponseType getResponseType()
Response type.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6;- Specified by:
getResponseTypein interfaceDetectIntentResponseOrBuilder- Returns:
- The responseType.
-
setResponseType
public DetectIntentResponse.Builder setResponseType(DetectIntentResponse.ResponseType value)
Response type.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6;- Parameters:
value- The responseType to set.- Returns:
- This builder for chaining.
-
clearResponseType
public DetectIntentResponse.Builder clearResponseType()
Response type.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6;- Returns:
- This builder for chaining.
-
getAllowCancellation
public boolean getAllowCancellation()
Indicates whether the partial response can be cancelled when a later response arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
bool allow_cancellation = 7;- Specified by:
getAllowCancellationin interfaceDetectIntentResponseOrBuilder- Returns:
- The allowCancellation.
-
setAllowCancellation
public DetectIntentResponse.Builder setAllowCancellation(boolean value)
Indicates whether the partial response can be cancelled when a later response arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
bool allow_cancellation = 7;- Parameters:
value- The allowCancellation to set.- Returns:
- This builder for chaining.
-
clearAllowCancellation
public DetectIntentResponse.Builder clearAllowCancellation()
Indicates whether the partial response can be cancelled when a later response arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
bool allow_cancellation = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final DetectIntentResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
mergeUnknownFields
public final DetectIntentResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
-