Class IntentInput.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IntentInput.Builder>
com.google.cloud.dialogflow.v2beta1.IntentInput.Builder
All Implemented Interfaces:
IntentInputOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IntentInput

public static final class IntentInput.Builder extends com.google.protobuf.GeneratedMessage.Builder<IntentInput.Builder> implements IntentInputOrBuilder
 Represents the intent to trigger programmatically rather than as a result of
 natural language processing. The intent input is only used for V3 agent.
 
Protobuf type google.cloud.dialogflow.v2beta1.IntentInput
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Required.
    Required.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Required.
    com.google.protobuf.ByteString
    Required.
    Required.
    com.google.protobuf.ByteString
    Required.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Required.
    setIntentBytes(com.google.protobuf.ByteString value)
    Required.
    Required.
    setLanguageCodeBytes(com.google.protobuf.ByteString value)
    Required.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

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

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

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

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

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

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

      public IntentInput.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<IntentInput.Builder>
    • mergeFrom

      public IntentInput.Builder mergeFrom(IntentInput other)
    • isInitialized

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

      public IntentInput.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<IntentInput.Builder>
      Throws:
      IOException
    • getIntent

      public String getIntent()
       Required. The unique identifier of the intent in V3 agent.
       Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location
       ID>/agents/<Agent ID>/intents/<Intent ID>`.
       
      string intent = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIntent in interface IntentInputOrBuilder
      Returns:
      The intent.
    • getIntentBytes

      public com.google.protobuf.ByteString getIntentBytes()
       Required. The unique identifier of the intent in V3 agent.
       Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location
       ID>/agents/<Agent ID>/intents/<Intent ID>`.
       
      string intent = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIntentBytes in interface IntentInputOrBuilder
      Returns:
      The bytes for intent.
    • setIntent

      public IntentInput.Builder setIntent(String value)
       Required. The unique identifier of the intent in V3 agent.
       Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location
       ID>/agents/<Agent ID>/intents/<Intent ID>`.
       
      string intent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The intent to set.
      Returns:
      This builder for chaining.
    • clearIntent

      public IntentInput.Builder clearIntent()
       Required. The unique identifier of the intent in V3 agent.
       Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location
       ID>/agents/<Agent ID>/intents/<Intent ID>`.
       
      string intent = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setIntentBytes

      public IntentInput.Builder setIntentBytes(com.google.protobuf.ByteString value)
       Required. The unique identifier of the intent in V3 agent.
       Format: `projects/<Project ID>/locations/<Location ID>/locations/<Location
       ID>/agents/<Agent ID>/intents/<Intent ID>`.
       
      string intent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for intent to set.
      Returns:
      This builder for chaining.
    • getLanguageCode

      public String getLanguageCode()
       Required. The language of this conversational query. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes.
       
      string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLanguageCode in interface IntentInputOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Required. The language of this conversational query. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes.
       
      string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLanguageCodeBytes in interface IntentInputOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public IntentInput.Builder setLanguageCode(String value)
       Required. The language of this conversational query. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes.
       
      string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public IntentInput.Builder clearLanguageCode()
       Required. The language of this conversational query. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes.
       
      string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public IntentInput.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       Required. The language of this conversational query. See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes.
       
      string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.