Class Intent.TrainingPhrase.Part.Builder

    • 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<Intent.TrainingPhrase.Part.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<Intent.TrainingPhrase.Part.Builder>
      • getDefaultInstanceForType

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

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

        public Intent.TrainingPhrase.Part buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public Intent.TrainingPhrase.Part.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<Intent.TrainingPhrase.Part.Builder>
        Throws:
        IOException
      • setText

        public Intent.TrainingPhrase.Part.Builder setText​(String value)
         Required. The text for this part.
         
        string text = 1;
        Parameters:
        value - The text to set.
        Returns:
        This builder for chaining.
      • setTextBytes

        public Intent.TrainingPhrase.Part.Builder setTextBytes​(com.google.protobuf.ByteString value)
         Required. The text for this part.
         
        string text = 1;
        Parameters:
        value - The bytes for text to set.
        Returns:
        This builder for chaining.
      • getEntityType

        public String getEntityType()
         Optional. The entity type name prefixed with `@`.
         This field is required for annotated parts of the training phrase.
         
        string entity_type = 2;
        Specified by:
        getEntityType in interface Intent.TrainingPhrase.PartOrBuilder
        Returns:
        The entityType.
      • getEntityTypeBytes

        public com.google.protobuf.ByteString getEntityTypeBytes()
         Optional. The entity type name prefixed with `@`.
         This field is required for annotated parts of the training phrase.
         
        string entity_type = 2;
        Specified by:
        getEntityTypeBytes in interface Intent.TrainingPhrase.PartOrBuilder
        Returns:
        The bytes for entityType.
      • setEntityType

        public Intent.TrainingPhrase.Part.Builder setEntityType​(String value)
         Optional. The entity type name prefixed with `@`.
         This field is required for annotated parts of the training phrase.
         
        string entity_type = 2;
        Parameters:
        value - The entityType to set.
        Returns:
        This builder for chaining.
      • clearEntityType

        public Intent.TrainingPhrase.Part.Builder clearEntityType()
         Optional. The entity type name prefixed with `@`.
         This field is required for annotated parts of the training phrase.
         
        string entity_type = 2;
        Returns:
        This builder for chaining.
      • setEntityTypeBytes

        public Intent.TrainingPhrase.Part.Builder setEntityTypeBytes​(com.google.protobuf.ByteString value)
         Optional. The entity type name prefixed with `@`.
         This field is required for annotated parts of the training phrase.
         
        string entity_type = 2;
        Parameters:
        value - The bytes for entityType to set.
        Returns:
        This builder for chaining.
      • getAlias

        public String getAlias()
         Optional. The parameter name for the value extracted from the
         annotated part of the example.
         This field is required for annotated parts of the training phrase.
         
        string alias = 3;
        Specified by:
        getAlias in interface Intent.TrainingPhrase.PartOrBuilder
        Returns:
        The alias.
      • getAliasBytes

        public com.google.protobuf.ByteString getAliasBytes()
         Optional. The parameter name for the value extracted from the
         annotated part of the example.
         This field is required for annotated parts of the training phrase.
         
        string alias = 3;
        Specified by:
        getAliasBytes in interface Intent.TrainingPhrase.PartOrBuilder
        Returns:
        The bytes for alias.
      • setAlias

        public Intent.TrainingPhrase.Part.Builder setAlias​(String value)
         Optional. The parameter name for the value extracted from the
         annotated part of the example.
         This field is required for annotated parts of the training phrase.
         
        string alias = 3;
        Parameters:
        value - The alias to set.
        Returns:
        This builder for chaining.
      • clearAlias

        public Intent.TrainingPhrase.Part.Builder clearAlias()
         Optional. The parameter name for the value extracted from the
         annotated part of the example.
         This field is required for annotated parts of the training phrase.
         
        string alias = 3;
        Returns:
        This builder for chaining.
      • setAliasBytes

        public Intent.TrainingPhrase.Part.Builder setAliasBytes​(com.google.protobuf.ByteString value)
         Optional. The parameter name for the value extracted from the
         annotated part of the example.
         This field is required for annotated parts of the training phrase.
         
        string alias = 3;
        Parameters:
        value - The bytes for alias to set.
        Returns:
        This builder for chaining.
      • getUserDefined

        public boolean getUserDefined()
         Optional. Indicates whether the text was manually annotated.
         This field is set to true when the Dialogflow Console is used to
         manually annotate the part. When creating an annotated part with the
         API, you must set this to true.
         
        bool user_defined = 4;
        Specified by:
        getUserDefined in interface Intent.TrainingPhrase.PartOrBuilder
        Returns:
        The userDefined.
      • setUserDefined

        public Intent.TrainingPhrase.Part.Builder setUserDefined​(boolean value)
         Optional. Indicates whether the text was manually annotated.
         This field is set to true when the Dialogflow Console is used to
         manually annotate the part. When creating an annotated part with the
         API, you must set this to true.
         
        bool user_defined = 4;
        Parameters:
        value - The userDefined to set.
        Returns:
        This builder for chaining.
      • clearUserDefined

        public Intent.TrainingPhrase.Part.Builder clearUserDefined()
         Optional. Indicates whether the text was manually annotated.
         This field is set to true when the Dialogflow Console is used to
         manually annotate the part. When creating an annotated part with the
         API, you must set this to true.
         
        bool user_defined = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Intent.TrainingPhrase.Part.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<Intent.TrainingPhrase.Part.Builder>
      • mergeUnknownFields

        public final Intent.TrainingPhrase.Part.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<Intent.TrainingPhrase.Part.Builder>