Class WebhookRequest.IntentInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WebhookRequest.IntentInfo.Builder>
com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.Builder
All Implemented Interfaces:
WebhookRequest.IntentInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WebhookRequest.IntentInfo

public static final class WebhookRequest.IntentInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<WebhookRequest.IntentInfo.Builder> implements WebhookRequest.IntentInfoOrBuilder
 Represents intent information communicated to the webhook.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<WebhookRequest.IntentInfo.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<WebhookRequest.IntentInfo.Builder>
    • internalGetFieldAccessorTable

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

      public WebhookRequest.IntentInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WebhookRequest.IntentInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      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
    • getParameters

      Deprecated.
      Use getParametersMap() instead.
      Specified by:
      getParameters in interface WebhookRequest.IntentInfoOrBuilder
    • 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
    • getParametersOrDefault

       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:
      getParametersOrDefault 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
    • clearParameters

      public WebhookRequest.IntentInfo.Builder clearParameters()
    • 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;
    • getMutableParameters

      Deprecated.
      Use alternate mutation accessors instead.
    • putParameters

       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

       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;
    • putParametersBuilderIfAbsent

      public WebhookRequest.IntentInfo.IntentParameterValue.Builder putParametersBuilderIfAbsent(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;
    • 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.