Class FulfillIntentResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
- com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.Builder
-
- All Implemented Interfaces:
FulfillIntentResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- FulfillIntentResponse
public static final class FulfillIntentResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder> implements FulfillIntentResponseOrBuilder
Response of [FulfillIntent][]
Protobuf typegoogle.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FulfillIntentResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FulfillIntentResponse
build()
FulfillIntentResponse
buildPartial()
FulfillIntentResponse.Builder
clear()
FulfillIntentResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
FulfillIntentResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
FulfillIntentResponse.Builder
clearOutputAudio()
The audio data bytes encoded as specified in the request.FulfillIntentResponse.Builder
clearOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.FulfillIntentResponse.Builder
clearQueryResult()
The result of the conversational query.FulfillIntentResponse.Builder
clearResponseId()
Output only.FulfillIntentResponse.Builder
clone()
FulfillIntentResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.ByteString
getOutputAudio()
The audio data bytes encoded as specified in the request.OutputAudioConfig
getOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.OutputAudioConfig.Builder
getOutputAudioConfigBuilder()
The config used by the speech synthesizer to generate the output audio.OutputAudioConfigOrBuilder
getOutputAudioConfigOrBuilder()
The config used by the speech synthesizer to generate the output audio.QueryResult
getQueryResult()
The result of the conversational query.QueryResult.Builder
getQueryResultBuilder()
The result of the conversational query.QueryResultOrBuilder
getQueryResultOrBuilder()
The result of the conversational query.String
getResponseId()
Output only.com.google.protobuf.ByteString
getResponseIdBytes()
Output only.boolean
hasOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.boolean
hasQueryResult()
The result of the conversational query.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
FulfillIntentResponse.Builder
mergeFrom(FulfillIntentResponse other)
FulfillIntentResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
FulfillIntentResponse.Builder
mergeFrom(com.google.protobuf.Message other)
FulfillIntentResponse.Builder
mergeOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.FulfillIntentResponse.Builder
mergeQueryResult(QueryResult value)
The result of the conversational query.FulfillIntentResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
FulfillIntentResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FulfillIntentResponse.Builder
setOutputAudio(com.google.protobuf.ByteString value)
The audio data bytes encoded as specified in the request.FulfillIntentResponse.Builder
setOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.FulfillIntentResponse.Builder
setOutputAudioConfig(OutputAudioConfig.Builder builderForValue)
The config used by the speech synthesizer to generate the output audio.FulfillIntentResponse.Builder
setQueryResult(QueryResult value)
The result of the conversational query.FulfillIntentResponse.Builder
setQueryResult(QueryResult.Builder builderForValue)
The result of the conversational query.FulfillIntentResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
FulfillIntentResponse.Builder
setResponseId(String value)
Output only.FulfillIntentResponse.Builder
setResponseIdBytes(com.google.protobuf.ByteString value)
Output only.FulfillIntentResponse.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
clear
public FulfillIntentResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
getDefaultInstanceForType
public FulfillIntentResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public FulfillIntentResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FulfillIntentResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FulfillIntentResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
setField
public FulfillIntentResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
clearField
public FulfillIntentResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
clearOneof
public FulfillIntentResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
setRepeatedField
public FulfillIntentResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
addRepeatedField
public FulfillIntentResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
mergeFrom
public FulfillIntentResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FulfillIntentResponse.Builder>
-
mergeFrom
public FulfillIntentResponse.Builder mergeFrom(FulfillIntentResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
mergeFrom
public FulfillIntentResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FulfillIntentResponse.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:
getResponseId
in interfaceFulfillIntentResponseOrBuilder
- 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:
getResponseIdBytes
in interfaceFulfillIntentResponseOrBuilder
- Returns:
- The bytes for responseId.
-
setResponseId
public FulfillIntentResponse.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 FulfillIntentResponse.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 FulfillIntentResponse.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:
hasQueryResult
in interfaceFulfillIntentResponseOrBuilder
- 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:
getQueryResult
in interfaceFulfillIntentResponseOrBuilder
- Returns:
- The queryResult.
-
setQueryResult
public FulfillIntentResponse.Builder setQueryResult(QueryResult value)
The result of the conversational query.
.google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2;
-
setQueryResult
public FulfillIntentResponse.Builder setQueryResult(QueryResult.Builder builderForValue)
The result of the conversational query.
.google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2;
-
mergeQueryResult
public FulfillIntentResponse.Builder mergeQueryResult(QueryResult value)
The result of the conversational query.
.google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2;
-
clearQueryResult
public FulfillIntentResponse.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:
getQueryResultOrBuilder
in interfaceFulfillIntentResponseOrBuilder
-
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 = 3;
- Specified by:
getOutputAudio
in interfaceFulfillIntentResponseOrBuilder
- Returns:
- The outputAudio.
-
setOutputAudio
public FulfillIntentResponse.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 = 3;
- Parameters:
value
- The outputAudio to set.- Returns:
- This builder for chaining.
-
clearOutputAudio
public FulfillIntentResponse.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 = 3;
- 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 = 4;
- Specified by:
hasOutputAudioConfig
in interfaceFulfillIntentResponseOrBuilder
- 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 = 4;
- Specified by:
getOutputAudioConfig
in interfaceFulfillIntentResponseOrBuilder
- Returns:
- The outputAudioConfig.
-
setOutputAudioConfig
public FulfillIntentResponse.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 = 4;
-
setOutputAudioConfig
public FulfillIntentResponse.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 = 4;
-
mergeOutputAudioConfig
public FulfillIntentResponse.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 = 4;
-
clearOutputAudioConfig
public FulfillIntentResponse.Builder clearOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 4;
-
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 = 4;
-
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 = 4;
- Specified by:
getOutputAudioConfigOrBuilder
in interfaceFulfillIntentResponseOrBuilder
-
setUnknownFields
public final FulfillIntentResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
mergeUnknownFields
public final FulfillIntentResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FulfillIntentResponse.Builder>
-
-