public static final class Intent.TrainingPhrase.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder> implements Intent.TrainingPhraseOrBuilder
Represents an example that the agent is trained on.Protobuf type
google.cloud.dialogflow.v2beta1.Intent.TrainingPhrasegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Intent.TrainingPhrase build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Intent.TrainingPhrase buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Intent.TrainingPhrase.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder mergeFrom(Intent.TrainingPhrase other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Intent.TrainingPhrase.Builder>IOExceptionpublic String getName()
Output only. The unique identifier of this training phrase.
string name = 1;getName in interface Intent.TrainingPhraseOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The unique identifier of this training phrase.
string name = 1;getNameBytes in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Builder setName(String value)
Output only. The unique identifier of this training phrase.
string name = 1;value - The name to set.public Intent.TrainingPhrase.Builder clearName()
Output only. The unique identifier of this training phrase.
string name = 1;public Intent.TrainingPhrase.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The unique identifier of this training phrase.
string name = 1;value - The bytes for name to set.public int getTypeValue()
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
getTypeValue in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Builder setTypeValue(int value)
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
value - The enum numeric value on the wire for type to set.public Intent.TrainingPhrase.Type getType()
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
getType in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Builder setType(Intent.TrainingPhrase.Type value)
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
value - The type to set.public Intent.TrainingPhrase.Builder clearType()
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
getPartsList in interface Intent.TrainingPhraseOrBuilderpublic 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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
getPartsCount in interface Intent.TrainingPhraseOrBuilderpublic 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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
getParts in interface Intent.TrainingPhraseOrBuilderpublic 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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
public Intent.TrainingPhrase.Builder addParts(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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
public Intent.TrainingPhrase.Builder addParts(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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
getPartsOrBuilder in interface Intent.TrainingPhraseOrBuilderpublic 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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
getPartsOrBuilderList in interface Intent.TrainingPhraseOrBuilderpublic 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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
public int getTimesAddedCount()
Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL];getTimesAddedCount in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Builder setTimesAddedCount(int value)
Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL];value - The timesAddedCount to set.public Intent.TrainingPhrase.Builder clearTimesAddedCount()
Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL];public final Intent.TrainingPhrase.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public final Intent.TrainingPhrase.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>Copyright © 2023 Google LLC. All rights reserved.