Class Intent.TrainingPhrase.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Intent.TrainingPhrase.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Builder
All Implemented Interfaces:
Intent.TrainingPhraseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Intent.TrainingPhrase

public static final class Intent.TrainingPhrase.Builder extends com.google.protobuf.GeneratedMessage.Builder<Intent.TrainingPhrase.Builder> implements Intent.TrainingPhraseOrBuilder
 Represents an example that the agent is trained on to identify the intent.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase
  • 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<Intent.TrainingPhrase.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<Intent.TrainingPhrase.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<Intent.TrainingPhrase.Builder>
    • getDefaultInstanceForType

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

      public Intent.TrainingPhrase 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 buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

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

      public String getId()
       Output only. The unique identifier of the training phrase.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface Intent.TrainingPhraseOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Output only. The unique identifier of the training phrase.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIdBytes in interface Intent.TrainingPhraseOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Intent.TrainingPhrase.Builder setId(String value)
       Output only. The unique identifier of the training phrase.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

       Output only. The unique identifier of the training phrase.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIdBytes

      public Intent.TrainingPhrase.Builder setIdBytes(com.google.protobuf.ByteString value)
       Output only. The unique identifier of the training phrase.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getPartsList

      public List<Intent.TrainingPhrase.Part> getPartsList()
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPartsList in interface Intent.TrainingPhraseOrBuilder
    • getPartsCount

      public int getPartsCount()
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPartsCount in interface Intent.TrainingPhraseOrBuilder
    • getParts

      public Intent.TrainingPhrase.Part getParts(int index)
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParts in interface Intent.TrainingPhraseOrBuilder
    • setParts

      public Intent.TrainingPhrase.Builder setParts(int index, Intent.TrainingPhrase.Part value)
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • setParts

      public Intent.TrainingPhrase.Builder setParts(int index, Intent.TrainingPhrase.Part.Builder builderForValue)
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • addParts

       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • addParts

      public Intent.TrainingPhrase.Builder addParts(int index, Intent.TrainingPhrase.Part value)
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • addParts

       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • addParts

      public Intent.TrainingPhrase.Builder addParts(int index, Intent.TrainingPhrase.Part.Builder builderForValue)
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllParts

      public Intent.TrainingPhrase.Builder addAllParts(Iterable<? extends Intent.TrainingPhrase.Part> values)
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearParts

      public Intent.TrainingPhrase.Builder clearParts()
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeParts

      public Intent.TrainingPhrase.Builder removeParts(int index)
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPartsBuilder

      public Intent.TrainingPhrase.Part.Builder getPartsBuilder(int index)
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPartsOrBuilder

      public Intent.TrainingPhrase.PartOrBuilder getPartsOrBuilder(int index)
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPartsOrBuilder in interface Intent.TrainingPhraseOrBuilder
    • getPartsOrBuilderList

      public List<? extends Intent.TrainingPhrase.PartOrBuilder> getPartsOrBuilderList()
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPartsOrBuilderList in interface Intent.TrainingPhraseOrBuilder
    • addPartsBuilder

      public Intent.TrainingPhrase.Part.Builder addPartsBuilder()
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • addPartsBuilder

      public Intent.TrainingPhrase.Part.Builder addPartsBuilder(int index)
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPartsBuilderList

      public List<Intent.TrainingPhrase.Part.Builder> getPartsBuilderList()
       Required. The ordered list of training phrase parts.
       The parts are concatenated in order to form the training phrase.
      
       Note: The API does not automatically annotate training phrases like the
       Dialogflow Console does.
      
       Note: Do not forget to include whitespace at part boundaries, so the
       training phrase is well formatted when the parts are concatenated.
      
       If the training phrase does not need to be annotated with parameters,
       you just need a single part with only the
       [Part.text][google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.text]
       field set.
      
       If you want to annotate the training phrase, you must create multiple
       parts, where the fields of each part are populated in one of two ways:
      
       -   `Part.text` is set to a part of the phrase that has no parameters.
       -   `Part.text` is set to a part of the phrase that you want to annotate,
       and the `parameter_id` field is set.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRepeatCount

      public int getRepeatCount()
       Indicates how many times this example was added to the intent.
       
      int32 repeat_count = 3;
      Specified by:
      getRepeatCount in interface Intent.TrainingPhraseOrBuilder
      Returns:
      The repeatCount.
    • setRepeatCount

      public Intent.TrainingPhrase.Builder setRepeatCount(int value)
       Indicates how many times this example was added to the intent.
       
      int32 repeat_count = 3;
      Parameters:
      value - The repeatCount to set.
      Returns:
      This builder for chaining.
    • clearRepeatCount

      public Intent.TrainingPhrase.Builder clearRepeatCount()
       Indicates how many times this example was added to the intent.
       
      int32 repeat_count = 3;
      Returns:
      This builder for chaining.