Class IntentSuggestion.Builder

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

public static final class IntentSuggestion.Builder extends com.google.protobuf.GeneratedMessage.Builder<IntentSuggestion.Builder> implements IntentSuggestionOrBuilder
 Represents an intent suggestion.
 
Protobuf type google.cloud.dialogflow.v2.IntentSuggestion
  • 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<IntentSuggestion.Builder>
    • clear

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

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

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

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

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

      public IntentSuggestion.Builder mergeFrom(IntentSuggestion other)
    • isInitialized

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

      public IntentSuggestion.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<IntentSuggestion.Builder>
      Throws:
      IOException
    • getIntentCase

      public IntentSuggestion.IntentCase getIntentCase()
      Specified by:
      getIntentCase in interface IntentSuggestionOrBuilder
    • clearIntent

      public IntentSuggestion.Builder clearIntent()
    • getDisplayName

      public String getDisplayName()
       The display name of the intent.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface IntentSuggestionOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The display name of the intent.
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface IntentSuggestionOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public IntentSuggestion.Builder setDisplayName(String value)
       The display name of the intent.
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public IntentSuggestion.Builder clearDisplayName()
       The display name of the intent.
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public IntentSuggestion.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The display name of the intent.
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasIntentV2

      public boolean hasIntentV2()
       The unique identifier of this
       [intent][google.cloud.dialogflow.v2.Intent]. Format: `projects/<Project
       ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
       
      string intent_v2 = 2;
      Specified by:
      hasIntentV2 in interface IntentSuggestionOrBuilder
      Returns:
      Whether the intentV2 field is set.
    • getIntentV2

      public String getIntentV2()
       The unique identifier of this
       [intent][google.cloud.dialogflow.v2.Intent]. Format: `projects/<Project
       ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
       
      string intent_v2 = 2;
      Specified by:
      getIntentV2 in interface IntentSuggestionOrBuilder
      Returns:
      The intentV2.
    • getIntentV2Bytes

      public com.google.protobuf.ByteString getIntentV2Bytes()
       The unique identifier of this
       [intent][google.cloud.dialogflow.v2.Intent]. Format: `projects/<Project
       ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
       
      string intent_v2 = 2;
      Specified by:
      getIntentV2Bytes in interface IntentSuggestionOrBuilder
      Returns:
      The bytes for intentV2.
    • setIntentV2

      public IntentSuggestion.Builder setIntentV2(String value)
       The unique identifier of this
       [intent][google.cloud.dialogflow.v2.Intent]. Format: `projects/<Project
       ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
       
      string intent_v2 = 2;
      Parameters:
      value - The intentV2 to set.
      Returns:
      This builder for chaining.
    • clearIntentV2

      public IntentSuggestion.Builder clearIntentV2()
       The unique identifier of this
       [intent][google.cloud.dialogflow.v2.Intent]. Format: `projects/<Project
       ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
       
      string intent_v2 = 2;
      Returns:
      This builder for chaining.
    • setIntentV2Bytes

      public IntentSuggestion.Builder setIntentV2Bytes(com.google.protobuf.ByteString value)
       The unique identifier of this
       [intent][google.cloud.dialogflow.v2.Intent]. Format: `projects/<Project
       ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
       
      string intent_v2 = 2;
      Parameters:
      value - The bytes for intentV2 to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Human readable description for better understanding an intent like its
       scope, content, result etc. Maximum character limit: 140 characters.
       
      string description = 5;
      Specified by:
      getDescription in interface IntentSuggestionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Human readable description for better understanding an intent like its
       scope, content, result etc. Maximum character limit: 140 characters.
       
      string description = 5;
      Specified by:
      getDescriptionBytes in interface IntentSuggestionOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public IntentSuggestion.Builder setDescription(String value)
       Human readable description for better understanding an intent like its
       scope, content, result etc. Maximum character limit: 140 characters.
       
      string description = 5;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public IntentSuggestion.Builder clearDescription()
       Human readable description for better understanding an intent like its
       scope, content, result etc. Maximum character limit: 140 characters.
       
      string description = 5;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public IntentSuggestion.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Human readable description for better understanding an intent like its
       scope, content, result etc. Maximum character limit: 140 characters.
       
      string description = 5;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.