Class AnalyzeContentRequest.Builder

  • All Implemented Interfaces:
    AnalyzeContentRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    AnalyzeContentRequest

    public static final class AnalyzeContentRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeContentRequest.Builder>
    implements AnalyzeContentRequestOrBuilder
     The request message for
     [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
     
    Protobuf type google.cloud.dialogflow.v2.AnalyzeContentRequest
    • 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<AnalyzeContentRequest.Builder>
      • clear

        public AnalyzeContentRequest.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<AnalyzeContentRequest.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<AnalyzeContentRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public AnalyzeContentRequest.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<AnalyzeContentRequest.Builder>
      • clearField

        public AnalyzeContentRequest.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<AnalyzeContentRequest.Builder>
      • clearOneof

        public AnalyzeContentRequest.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<AnalyzeContentRequest.Builder>
      • setRepeatedField

        public AnalyzeContentRequest.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<AnalyzeContentRequest.Builder>
      • addRepeatedField

        public AnalyzeContentRequest.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<AnalyzeContentRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeContentRequest.Builder>
      • mergeFrom

        public AnalyzeContentRequest.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<AnalyzeContentRequest.Builder>
        Throws:
        IOException
      • getParticipant

        public String getParticipant()
         Required. The name of the participant this text comes from.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
         
        string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParticipant in interface AnalyzeContentRequestOrBuilder
        Returns:
        The participant.
      • getParticipantBytes

        public com.google.protobuf.ByteString getParticipantBytes()
         Required. The name of the participant this text comes from.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
         
        string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParticipantBytes in interface AnalyzeContentRequestOrBuilder
        Returns:
        The bytes for participant.
      • setParticipant

        public AnalyzeContentRequest.Builder setParticipant​(String value)
         Required. The name of the participant this text comes from.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
         
        string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The participant to set.
        Returns:
        This builder for chaining.
      • clearParticipant

        public AnalyzeContentRequest.Builder clearParticipant()
         Required. The name of the participant this text comes from.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
         
        string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParticipantBytes

        public AnalyzeContentRequest.Builder setParticipantBytes​(com.google.protobuf.ByteString value)
         Required. The name of the participant this text comes from.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
         
        string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for participant to set.
        Returns:
        This builder for chaining.
      • hasTextInput

        public boolean hasTextInput()
         The natural language text to be processed.
         
        .google.cloud.dialogflow.v2.TextInput text_input = 6;
        Specified by:
        hasTextInput in interface AnalyzeContentRequestOrBuilder
        Returns:
        Whether the textInput field is set.
      • clearTextInput

        public AnalyzeContentRequest.Builder clearTextInput()
         The natural language text to be processed.
         
        .google.cloud.dialogflow.v2.TextInput text_input = 6;
      • getTextInputBuilder

        public TextInput.Builder getTextInputBuilder()
         The natural language text to be processed.
         
        .google.cloud.dialogflow.v2.TextInput text_input = 6;
      • hasEventInput

        public boolean hasEventInput()
         An input event to send to Dialogflow.
         
        .google.cloud.dialogflow.v2.EventInput event_input = 8;
        Specified by:
        hasEventInput in interface AnalyzeContentRequestOrBuilder
        Returns:
        Whether the eventInput field is set.
      • clearEventInput

        public AnalyzeContentRequest.Builder clearEventInput()
         An input event to send to Dialogflow.
         
        .google.cloud.dialogflow.v2.EventInput event_input = 8;
      • getEventInputBuilder

        public EventInput.Builder getEventInputBuilder()
         An input event to send to Dialogflow.
         
        .google.cloud.dialogflow.v2.EventInput event_input = 8;
      • hasSuggestionInput

        public boolean hasSuggestionInput()
         An input representing the selection of a suggestion.
         
        .google.cloud.dialogflow.v2.SuggestionInput suggestion_input = 12;
        Specified by:
        hasSuggestionInput in interface AnalyzeContentRequestOrBuilder
        Returns:
        Whether the suggestionInput field is set.
      • setSuggestionInput

        public AnalyzeContentRequest.Builder setSuggestionInput​(SuggestionInput value)
         An input representing the selection of a suggestion.
         
        .google.cloud.dialogflow.v2.SuggestionInput suggestion_input = 12;
      • mergeSuggestionInput

        public AnalyzeContentRequest.Builder mergeSuggestionInput​(SuggestionInput value)
         An input representing the selection of a suggestion.
         
        .google.cloud.dialogflow.v2.SuggestionInput suggestion_input = 12;
      • clearSuggestionInput

        public AnalyzeContentRequest.Builder clearSuggestionInput()
         An input representing the selection of a suggestion.
         
        .google.cloud.dialogflow.v2.SuggestionInput suggestion_input = 12;
      • getSuggestionInputBuilder

        public SuggestionInput.Builder getSuggestionInputBuilder()
         An input representing the selection of a suggestion.
         
        .google.cloud.dialogflow.v2.SuggestionInput suggestion_input = 12;
      • hasReplyAudioConfig

        public boolean hasReplyAudioConfig()
         Speech synthesis configuration.
         The speech synthesis settings for a virtual agent that may be configured
         for the associated conversation profile are not used when calling
         AnalyzeContent. If this configuration is not supplied, speech synthesis
         is disabled.
         
        .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5;
        Specified by:
        hasReplyAudioConfig in interface AnalyzeContentRequestOrBuilder
        Returns:
        Whether the replyAudioConfig field is set.
      • getReplyAudioConfig

        public OutputAudioConfig getReplyAudioConfig()
         Speech synthesis configuration.
         The speech synthesis settings for a virtual agent that may be configured
         for the associated conversation profile are not used when calling
         AnalyzeContent. If this configuration is not supplied, speech synthesis
         is disabled.
         
        .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5;
        Specified by:
        getReplyAudioConfig in interface AnalyzeContentRequestOrBuilder
        Returns:
        The replyAudioConfig.
      • setReplyAudioConfig

        public AnalyzeContentRequest.Builder setReplyAudioConfig​(OutputAudioConfig value)
         Speech synthesis configuration.
         The speech synthesis settings for a virtual agent that may be configured
         for the associated conversation profile are not used when calling
         AnalyzeContent. If this configuration is not supplied, speech synthesis
         is disabled.
         
        .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5;
      • setReplyAudioConfig

        public AnalyzeContentRequest.Builder setReplyAudioConfig​(OutputAudioConfig.Builder builderForValue)
         Speech synthesis configuration.
         The speech synthesis settings for a virtual agent that may be configured
         for the associated conversation profile are not used when calling
         AnalyzeContent. If this configuration is not supplied, speech synthesis
         is disabled.
         
        .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5;
      • mergeReplyAudioConfig

        public AnalyzeContentRequest.Builder mergeReplyAudioConfig​(OutputAudioConfig value)
         Speech synthesis configuration.
         The speech synthesis settings for a virtual agent that may be configured
         for the associated conversation profile are not used when calling
         AnalyzeContent. If this configuration is not supplied, speech synthesis
         is disabled.
         
        .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5;
      • clearReplyAudioConfig

        public AnalyzeContentRequest.Builder clearReplyAudioConfig()
         Speech synthesis configuration.
         The speech synthesis settings for a virtual agent that may be configured
         for the associated conversation profile are not used when calling
         AnalyzeContent. If this configuration is not supplied, speech synthesis
         is disabled.
         
        .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5;
      • getReplyAudioConfigBuilder

        public OutputAudioConfig.Builder getReplyAudioConfigBuilder()
         Speech synthesis configuration.
         The speech synthesis settings for a virtual agent that may be configured
         for the associated conversation profile are not used when calling
         AnalyzeContent. If this configuration is not supplied, speech synthesis
         is disabled.
         
        .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5;
      • getReplyAudioConfigOrBuilder

        public OutputAudioConfigOrBuilder getReplyAudioConfigOrBuilder()
         Speech synthesis configuration.
         The speech synthesis settings for a virtual agent that may be configured
         for the associated conversation profile are not used when calling
         AnalyzeContent. If this configuration is not supplied, speech synthesis
         is disabled.
         
        .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5;
        Specified by:
        getReplyAudioConfigOrBuilder in interface AnalyzeContentRequestOrBuilder
      • hasQueryParams

        public boolean hasQueryParams()
         Parameters for a Dialogflow virtual-agent query.
         
        .google.cloud.dialogflow.v2.QueryParameters query_params = 9;
        Specified by:
        hasQueryParams in interface AnalyzeContentRequestOrBuilder
        Returns:
        Whether the queryParams field is set.
      • clearQueryParams

        public AnalyzeContentRequest.Builder clearQueryParams()
         Parameters for a Dialogflow virtual-agent query.
         
        .google.cloud.dialogflow.v2.QueryParameters query_params = 9;
      • getQueryParamsBuilder

        public QueryParameters.Builder getQueryParamsBuilder()
         Parameters for a Dialogflow virtual-agent query.
         
        .google.cloud.dialogflow.v2.QueryParameters query_params = 9;
      • hasAssistQueryParams

        public boolean hasAssistQueryParams()
         Parameters for a human assist query.
         
        .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14;
        Specified by:
        hasAssistQueryParams in interface AnalyzeContentRequestOrBuilder
        Returns:
        Whether the assistQueryParams field is set.
      • clearAssistQueryParams

        public AnalyzeContentRequest.Builder clearAssistQueryParams()
         Parameters for a human assist query.
         
        .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14;
      • getAssistQueryParamsBuilder

        public AssistQueryParameters.Builder getAssistQueryParamsBuilder()
         Parameters for a human assist query.
         
        .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14;
      • hasCxParameters

        public boolean hasCxParameters()
         Additional parameters to be put into Dialogflow CX session parameters. To
         remove a parameter from the session, clients should explicitly set the
         parameter value to null.
        
         Note: this field should only be used if you are connecting to a Dialogflow
         CX agent.
         
        .google.protobuf.Struct cx_parameters = 18;
        Specified by:
        hasCxParameters in interface AnalyzeContentRequestOrBuilder
        Returns:
        Whether the cxParameters field is set.
      • getCxParameters

        public com.google.protobuf.Struct getCxParameters()
         Additional parameters to be put into Dialogflow CX session parameters. To
         remove a parameter from the session, clients should explicitly set the
         parameter value to null.
        
         Note: this field should only be used if you are connecting to a Dialogflow
         CX agent.
         
        .google.protobuf.Struct cx_parameters = 18;
        Specified by:
        getCxParameters in interface AnalyzeContentRequestOrBuilder
        Returns:
        The cxParameters.
      • setCxParameters

        public AnalyzeContentRequest.Builder setCxParameters​(com.google.protobuf.Struct value)
         Additional parameters to be put into Dialogflow CX session parameters. To
         remove a parameter from the session, clients should explicitly set the
         parameter value to null.
        
         Note: this field should only be used if you are connecting to a Dialogflow
         CX agent.
         
        .google.protobuf.Struct cx_parameters = 18;
      • setCxParameters

        public AnalyzeContentRequest.Builder setCxParameters​(com.google.protobuf.Struct.Builder builderForValue)
         Additional parameters to be put into Dialogflow CX session parameters. To
         remove a parameter from the session, clients should explicitly set the
         parameter value to null.
        
         Note: this field should only be used if you are connecting to a Dialogflow
         CX agent.
         
        .google.protobuf.Struct cx_parameters = 18;
      • mergeCxParameters

        public AnalyzeContentRequest.Builder mergeCxParameters​(com.google.protobuf.Struct value)
         Additional parameters to be put into Dialogflow CX session parameters. To
         remove a parameter from the session, clients should explicitly set the
         parameter value to null.
        
         Note: this field should only be used if you are connecting to a Dialogflow
         CX agent.
         
        .google.protobuf.Struct cx_parameters = 18;
      • clearCxParameters

        public AnalyzeContentRequest.Builder clearCxParameters()
         Additional parameters to be put into Dialogflow CX session parameters. To
         remove a parameter from the session, clients should explicitly set the
         parameter value to null.
        
         Note: this field should only be used if you are connecting to a Dialogflow
         CX agent.
         
        .google.protobuf.Struct cx_parameters = 18;
      • getCxParametersBuilder

        public com.google.protobuf.Struct.Builder getCxParametersBuilder()
         Additional parameters to be put into Dialogflow CX session parameters. To
         remove a parameter from the session, clients should explicitly set the
         parameter value to null.
        
         Note: this field should only be used if you are connecting to a Dialogflow
         CX agent.
         
        .google.protobuf.Struct cx_parameters = 18;
      • getCxParametersOrBuilder

        public com.google.protobuf.StructOrBuilder getCxParametersOrBuilder()
         Additional parameters to be put into Dialogflow CX session parameters. To
         remove a parameter from the session, clients should explicitly set the
         parameter value to null.
        
         Note: this field should only be used if you are connecting to a Dialogflow
         CX agent.
         
        .google.protobuf.Struct cx_parameters = 18;
        Specified by:
        getCxParametersOrBuilder in interface AnalyzeContentRequestOrBuilder
      • getRequestId

        public String getRequestId()
         A unique identifier for this request. Restricted to 36 ASCII characters.
         A random UUID is recommended.
         This request is only idempotent if a `request_id` is provided.
         
        string request_id = 11;
        Specified by:
        getRequestId in interface AnalyzeContentRequestOrBuilder
        Returns:
        The requestId.
      • getRequestIdBytes

        public com.google.protobuf.ByteString getRequestIdBytes()
         A unique identifier for this request. Restricted to 36 ASCII characters.
         A random UUID is recommended.
         This request is only idempotent if a `request_id` is provided.
         
        string request_id = 11;
        Specified by:
        getRequestIdBytes in interface AnalyzeContentRequestOrBuilder
        Returns:
        The bytes for requestId.
      • setRequestId

        public AnalyzeContentRequest.Builder setRequestId​(String value)
         A unique identifier for this request. Restricted to 36 ASCII characters.
         A random UUID is recommended.
         This request is only idempotent if a `request_id` is provided.
         
        string request_id = 11;
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • clearRequestId

        public AnalyzeContentRequest.Builder clearRequestId()
         A unique identifier for this request. Restricted to 36 ASCII characters.
         A random UUID is recommended.
         This request is only idempotent if a `request_id` is provided.
         
        string request_id = 11;
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public AnalyzeContentRequest.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         A unique identifier for this request. Restricted to 36 ASCII characters.
         A random UUID is recommended.
         This request is only idempotent if a `request_id` is provided.
         
        string request_id = 11;
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AnalyzeContentRequest.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<AnalyzeContentRequest.Builder>
      • mergeUnknownFields

        public final AnalyzeContentRequest.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<AnalyzeContentRequest.Builder>