Interface Intent.TrainingPhrase.PartOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Intent.TrainingPhrase.Part, Intent.TrainingPhrase.Part.Builder
Enclosing class:
Intent.TrainingPhrase

public static interface Intent.TrainingPhrase.PartOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Required.
    com.google.protobuf.ByteString
    Required.
    boolean
    Optional.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • getText

      String getText()
       Required. The text for this part.
       
      string text = 1;
      Returns:
      The text.
    • getTextBytes

      com.google.protobuf.ByteString getTextBytes()
       Required. The text for this part.
       
      string text = 1;
      Returns:
      The bytes for text.
    • getEntityType

      String getEntityType()
       Optional. The entity type name prefixed with `@`.
       This field is required for annotated parts of the training phrase.
       
      string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The entityType.
    • getEntityTypeBytes

      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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for entityType.
    • getAlias

      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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The alias.
    • getAliasBytes

      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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for alias.
    • getUserDefined

      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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The userDefined.