Class 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.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
    implements IntentSuggestionOrBuilder
     Represents an intent suggestion.
     
    Protobuf type google.cloud.dialogflow.v2beta1.IntentSuggestion
    • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

        public IntentSuggestion.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
      • clearField

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.
      • setUnknownFields

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

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