Class DetectIntentResponse.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
      • clear

        public DetectIntentResponse.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
      • getDefaultInstanceForType

        public DetectIntentResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public DetectIntentResponse build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public DetectIntentResponse buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public DetectIntentResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
      • setField

        public DetectIntentResponse.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
      • clearField

        public DetectIntentResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
      • clearOneof

        public DetectIntentResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
      • setRepeatedField

        public DetectIntentResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
      • addRepeatedField

        public DetectIntentResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getResponseId in interface DetectIntentResponseOrBuilder
        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 interface DetectIntentResponseOrBuilder
        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.v3.QueryResult query_result = 2;
        Specified by:
        hasQueryResult in interface DetectIntentResponseOrBuilder
        Returns:
        Whether the queryResult field is set.
      • mergeQueryResult

        public DetectIntentResponse.Builder mergeQueryResult​(QueryResult value)
         The result of the conversational query.
         
        .google.cloud.dialogflow.cx.v3.QueryResult query_result = 2;
      • clearQueryResult

        public DetectIntentResponse.Builder clearQueryResult()
         The result of the conversational query.
         
        .google.cloud.dialogflow.cx.v3.QueryResult query_result = 2;
      • getQueryResultBuilder

        public QueryResult.Builder getQueryResultBuilder()
         The result of the conversational query.
         
        .google.cloud.dialogflow.cx.v3.QueryResult query_result = 2;
      • 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.v3.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:
        getOutputAudio in interface DetectIntentResponseOrBuilder
        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.v3.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.v3.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.v3.OutputAudioConfig output_audio_config = 5;
        Specified by:
        hasOutputAudioConfig in interface DetectIntentResponseOrBuilder
        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.v3.OutputAudioConfig output_audio_config = 5;
        Specified by:
        getOutputAudioConfig in interface DetectIntentResponseOrBuilder
        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.v3.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.v3.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.v3.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.v3.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.v3.OutputAudioConfig output_audio_config = 5;
      • getResponseTypeValue

        public int getResponseTypeValue()
         Response type.
         
        .google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType response_type = 6;
        Specified by:
        getResponseTypeValue in interface DetectIntentResponseOrBuilder
        Returns:
        The enum numeric value on the wire for responseType.
      • setResponseTypeValue

        public DetectIntentResponse.Builder setResponseTypeValue​(int value)
         Response type.
         
        .google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType response_type = 6;
        Parameters:
        value - The enum numeric value on the wire for responseType to set.
        Returns:
        This builder for chaining.
      • clearResponseType

        public DetectIntentResponse.Builder clearResponseType()
         Response type.
         
        .google.cloud.dialogflow.cx.v3.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:
        getAllowCancellation in interface DetectIntentResponseOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
      • mergeUnknownFields

        public final DetectIntentResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>