Class WebhookRequest.IntentInfo.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.Builder>
      • getDefaultInstanceForType

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

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

        public WebhookRequest.IntentInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

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

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

        public WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.Builder>
        Throws:
        IOException
      • getLastMatchedIntent

        public String getLastMatchedIntent()
         Always present. The unique identifier of the last matched
         [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         
        string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getLastMatchedIntent in interface WebhookRequest.IntentInfoOrBuilder
        Returns:
        The lastMatchedIntent.
      • getLastMatchedIntentBytes

        public com.google.protobuf.ByteString getLastMatchedIntentBytes()
         Always present. The unique identifier of the last matched
         [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         
        string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getLastMatchedIntentBytes in interface WebhookRequest.IntentInfoOrBuilder
        Returns:
        The bytes for lastMatchedIntent.
      • setLastMatchedIntent

        public WebhookRequest.IntentInfo.Builder setLastMatchedIntent​(String value)
         Always present. The unique identifier of the last matched
         [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         
        string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The lastMatchedIntent to set.
        Returns:
        This builder for chaining.
      • clearLastMatchedIntent

        public WebhookRequest.IntentInfo.Builder clearLastMatchedIntent()
         Always present. The unique identifier of the last matched
         [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         
        string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setLastMatchedIntentBytes

        public WebhookRequest.IntentInfo.Builder setLastMatchedIntentBytes​(com.google.protobuf.ByteString value)
         Always present. The unique identifier of the last matched
         [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         
        string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for lastMatchedIntent to set.
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         Always present. The display name of the last matched
         [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
         
        string display_name = 3;
        Specified by:
        getDisplayName in interface WebhookRequest.IntentInfoOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Always present. The display name of the last matched
         [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
         
        string display_name = 3;
        Specified by:
        getDisplayNameBytes in interface WebhookRequest.IntentInfoOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public WebhookRequest.IntentInfo.Builder setDisplayName​(String value)
         Always present. The display name of the last matched
         [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
         
        string display_name = 3;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public WebhookRequest.IntentInfo.Builder clearDisplayName()
         Always present. The display name of the last matched
         [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
         
        string display_name = 3;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public WebhookRequest.IntentInfo.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Always present. The display name of the last matched
         [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
         
        string display_name = 3;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getParametersCount

        public int getParametersCount()
        Description copied from interface: WebhookRequest.IntentInfoOrBuilder
         Parameters identified as a result of intent matching. This is a map of
         the name of the identified parameter to the value of the parameter
         identified from the user's utterance. All parameters defined in the
         matched intent that are identified will be surfaced here.
         
        map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
        Specified by:
        getParametersCount in interface WebhookRequest.IntentInfoOrBuilder
      • containsParameters

        public boolean containsParameters​(String key)
         Parameters identified as a result of intent matching. This is a map of
         the name of the identified parameter to the value of the parameter
         identified from the user's utterance. All parameters defined in the
         matched intent that are identified will be surfaced here.
         
        map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
        Specified by:
        containsParameters in interface WebhookRequest.IntentInfoOrBuilder
      • getParametersMap

        public Map<String,​WebhookRequest.IntentInfo.IntentParameterValue> getParametersMap()
         Parameters identified as a result of intent matching. This is a map of
         the name of the identified parameter to the value of the parameter
         identified from the user's utterance. All parameters defined in the
         matched intent that are identified will be surfaced here.
         
        map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
        Specified by:
        getParametersMap in interface WebhookRequest.IntentInfoOrBuilder
      • getParametersOrThrow

        public WebhookRequest.IntentInfo.IntentParameterValue getParametersOrThrow​(String key)
         Parameters identified as a result of intent matching. This is a map of
         the name of the identified parameter to the value of the parameter
         identified from the user's utterance. All parameters defined in the
         matched intent that are identified will be surfaced here.
         
        map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
        Specified by:
        getParametersOrThrow in interface WebhookRequest.IntentInfoOrBuilder
      • removeParameters

        public WebhookRequest.IntentInfo.Builder removeParameters​(String key)
         Parameters identified as a result of intent matching. This is a map of
         the name of the identified parameter to the value of the parameter
         identified from the user's utterance. All parameters defined in the
         matched intent that are identified will be surfaced here.
         
        map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
      • putParameters

        public WebhookRequest.IntentInfo.Builder putParameters​(String key,
                                                               WebhookRequest.IntentInfo.IntentParameterValue value)
         Parameters identified as a result of intent matching. This is a map of
         the name of the identified parameter to the value of the parameter
         identified from the user's utterance. All parameters defined in the
         matched intent that are identified will be surfaced here.
         
        map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
      • putAllParameters

        public WebhookRequest.IntentInfo.Builder putAllParameters​(Map<String,​WebhookRequest.IntentInfo.IntentParameterValue> values)
         Parameters identified as a result of intent matching. This is a map of
         the name of the identified parameter to the value of the parameter
         identified from the user's utterance. All parameters defined in the
         matched intent that are identified will be surfaced here.
         
        map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
      • getConfidence

        public float getConfidence()
         The confidence of the matched intent. Values range from 0.0 (completely
         uncertain) to 1.0 (completely certain).
         
        float confidence = 4;
        Specified by:
        getConfidence in interface WebhookRequest.IntentInfoOrBuilder
        Returns:
        The confidence.
      • setConfidence

        public WebhookRequest.IntentInfo.Builder setConfidence​(float value)
         The confidence of the matched intent. Values range from 0.0 (completely
         uncertain) to 1.0 (completely certain).
         
        float confidence = 4;
        Parameters:
        value - The confidence to set.
        Returns:
        This builder for chaining.
      • clearConfidence

        public WebhookRequest.IntentInfo.Builder clearConfidence()
         The confidence of the matched intent. Values range from 0.0 (completely
         uncertain) to 1.0 (completely certain).
         
        float confidence = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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